]> git.notmuchmail.org Git - notmuch/blob - test/setup
8cc557677d5d9e5cc36ac6691f367ef2a91d64ba
[notmuch] / test / setup
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 test_subtest_known_broken
8 notmuch --config=new-notmuch-config > /dev/null <<EOF
9 Test Suite
10 test.suite@example.com
11 another.suite@example.com
12
13 /path/to/maildir
14 foo bar
15 baz
16 EOF
17 output=$(notmuch --config=new-notmuch-config config list)
18 test_expect_equal "$output" "\
19 database.path=/path/to/maildir
20 user.name=Test Suite
21 user.primary_email=test.suite@example.com
22 user.other_email=another.suite@example.com;
23 new.tags=foo;bar;
24 new.ignore=
25 search.exclude_tags=baz;
26 maildir.synchronize_flags=true"
27
28 test_done