]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei-reindex.t
tests: add some basic "lei reindex" tests
[public-inbox.git] / t / lei-reindex.t
diff --git a/t/lei-reindex.t b/t/lei-reindex.t
new file mode 100644 (file)
index 0000000..73346ee
--- /dev/null
@@ -0,0 +1,12 @@
+#!perl -w
+# Copyright (C) all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
+use v5.12; use PublicInbox::TestCommon;
+require_mods(qw(lei));
+my ($tmpdir, $for_destroy) = tmpdir;
+test_lei(sub {
+       ok(!lei('reindex'), 'reindex fails w/o store');
+       like $lei_err, qr/nothing indexed/, "`nothing indexed' noted";
+});
+
+done_testing;