[PATCH v2 3/5] test: Add broken test for 'config list'

Peter Wang novalazy at gmail.com
Fri Mar 30 16:15:48 PDT 2012


Proposed functionality.
---
 test/config |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/test/config b/test/config
index d3e574c..73c58ff 100755
--- a/test/config
+++ b/test/config
@@ -17,4 +17,20 @@ test_expect_success "Set string value" \
 test_expect_success "Set list value" \
   'notmuch config set foo.list xxx "yyy yyy" "zzz zzz"'
 
+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.bar=baz
+foo.list=xxx;yyy yyy;zzz zzz;"
+
 test_done
-- 
1.7.4.4



More information about the notmuch mailing list