test: Add broken test for 'config list'
authorPeter Wang <novalazy@gmail.com>
Sat, 14 Apr 2012 01:41:04 +0000 (11:41 +1000)
committerDavid Bremner <bremner@debian.org>
Sat, 28 Apr 2012 13:44:57 +0000 (10:44 -0300)
Proposed functionality.

test/config

index 9030154433c5d0e076691e9b6d805551fb1e2454..3bf809802d346693dbe45857f4915bca4315158b 100755 (executable)
@@ -42,4 +42,20 @@ test_begin_subtest "Remove non-existent key"
 notmuch config set foo.nonexistent
 test_expect_equal "$(notmuch config get foo.nonexistent)" ""
 
+test_begin_subtest "List all items"
+test_subtest_known_broken
+notmuch config set database.path "/canonical/path"
+output=$(notmuch config list)
+test_expect_equal "$output" "\
+database.path=/canonical/path
+user.name=Notmuch Test Suite
+user.primary_email=test_suite@notmuchmail.org
+user.other_email=test_suite_other@notmuchmail.org;test_suite@otherdomain.org
+new.tags=unread;inbox;
+new.ignore=
+search.exclude_tags=
+maildir.synchronize_flags=true
+foo.string=this is another string value
+foo.list=this;is another;list value;"
+
 test_done