test: renamed test scripts to format T\d\d\d-name.sh
[notmuch] / test / T040-setup.sh
1 #!/usr/bin/env bash
2
3 test_description='"notmuch setup"'
4 . ./test-lib.sh
5
6 test_begin_subtest "Create a new config interactively"
7 notmuch --config=new-notmuch-config > /dev/null <<EOF
8 Test Suite
9 test.suite@example.com
10 another.suite@example.com
11
12 /path/to/maildir
13 foo bar
14 baz
15 EOF
16 output=$(notmuch --config=new-notmuch-config config list)
17 test_expect_equal "$output" "\
18 database.path=/path/to/maildir
19 user.name=Test Suite
20 user.primary_email=test.suite@example.com
21 user.other_email=another.suite@example.com;
22 new.tags=foo;bar;
23 new.ignore=
24 search.exclude_tags=baz;
25 maildir.synchronize_flags=true"
26
27 test_done