3 test_description='"notmuch setup"'
4 . $(dirname "$0")/test-lib.sh || exit 1
6 test_begin_subtest "Notmuch new without a config suggests notmuch setup"
7 output=$(notmuch --config=new-notmuch-config new 2>&1)
8 test_expect_equal "$output" "\
9 Configuration file new-notmuch-config not found.
10 Try running 'notmuch setup' to create a configuration."
12 test_begin_subtest "Create a new config interactively"
13 notmuch --config=new-notmuch-config > /dev/null <<EOF
15 test.suite@example.com
16 another.suite@example.com
23 if [ "${NOTMUCH_GMIME_MAJOR}" -lt 3 ]; then
24 config_gpg_path="crypto.gpg_path=gpg
28 output=$(notmuch --config=new-notmuch-config config list | notmuch_built_with_sanitize)
29 test_expect_equal "$output" "\
30 database.path=/path/to/maildir
32 user.primary_email=test.suite@example.com
33 user.other_email=another.suite@example.com;
36 search.exclude_tags=baz;
37 maildir.synchronize_flags=true
38 ""${config_gpg_path}""\
39 built_with.compact=something
40 built_with.field_processor=something
41 built_with.retry_lock=something"