]> git.notmuchmail.org Git - notmuch/blobdiff - test/T040-setup.sh
CLI: make gpg binary used by libgmime configurable.
[notmuch] / test / T040-setup.sh
index 124ef1c8e04b94959453b0630d7f9e320e1c1507..0e9f279a6e714c6359261bb6d44d38d6442e68c8 100755 (executable)
@@ -3,6 +3,12 @@
 test_description='"notmuch setup"'
 . ./test-lib.sh
 
+test_begin_subtest "Notmuch new without a config suggests notmuch setup"
+output=$(notmuch --config=new-notmuch-config new 2>&1)
+test_expect_equal "$output" "\
+Configuration file new-notmuch-config not found.
+Try running 'notmuch setup' to create a configuration."
+
 test_begin_subtest "Create a new config interactively"
 notmuch --config=new-notmuch-config > /dev/null <<EOF
 Test Suite
@@ -22,6 +28,7 @@ user.other_email=another.suite@example.com;
 new.tags=foo;bar;
 new.ignore=
 search.exclude_tags=baz;
-maildir.synchronize_flags=true"
+maildir.synchronize_flags=true
+crypto.gpg_path=gpg"
 
 test_done