[PATCH v4 4/6] test: Add broken test for 'config list'
Peter Wang
novalazy at gmail.com
Fri Apr 13 18:41:04 PDT 2012
Proposed functionality.
---
test/config | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/test/config b/test/config
index 9030154..3bf8098 100755
--- a/test/config
+++ b/test/config
@@ -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 at notmuchmail.org
+user.other_email=test_suite_other at notmuchmail.org;test_suite at 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
--
1.7.4.4
More information about the notmuch
mailing list