X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT590-libconfig.sh;h=5ea53003b91c727795e56635b1cff388e734726a;hp=8ca688334079662507e697246c3616de730e8a49;hb=e042a25a3fd8706b6e1ee7bdf527bb17ecb74c6a;hpb=92e59568fa4eec466db78af6c21c39ca5826b0d7 diff --git a/test/T590-libconfig.sh b/test/T590-libconfig.sh index 8ca68833..5ea53003 100755 --- a/test/T590-libconfig.sh +++ b/test/T590-libconfig.sh @@ -115,4 +115,21 @@ testkey2 testvalue2 EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "dump config" +cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} +{ + RUN(notmuch_database_set_config (db, "key with spaces", "value, with, spaces!")); +} +EOF +notmuch dump --include=config >OUTPUT +cat <<'EOF' >EXPECTED +#notmuch-dump batch-tag:2 config +#@ aaabefore beforeval +#@ key%20with%20spaces value,%20with,%20spaces%21 +#@ testkey1 testvalue1 +#@ testkey2 testvalue2 +#@ zzzafter afterval +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done