aboutsummaryrefslogtreecommitdiff
path: root/test/test-lib.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2016-03-22 07:54:52 -0300
committerDavid Bremner <david@tethera.net>2016-05-25 07:40:44 -0300
commit2d2a13966c74ffe86fc10abfbe1ac4c9798788ce (patch)
tree94666c873f8ad22877f6d5e9b0e53f5cff8225a4 /test/test-lib.sh
parentc6fcc555dde2a50ac779d5871720a4f074322457 (diff)
CLI: add notmuch-config support for named queries
Most of the infrastructure here is general, only the validation/dispatch is hardcoded to a particular prefix. A notable change in behaviour is that notmuch-config now opens the database e.g. on every call to list, which fails with an error message if the database doesn't exit yet.
Diffstat (limited to 'test/test-lib.sh')
-rw-r--r--test/test-lib.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index e4398620..201d0ebb 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -746,6 +746,11 @@ notmuch_built_with_sanitize ()
sed 's/^built_with[.]\(.*\)=.*$/built_with.\1=something/'
}
+notmuch_config_sanitize ()
+{
+ notmuch_dir_sanitize | notmuch_built_with_sanitize
+}
+
# End of notmuch helper functions
# Use test_set_prereq to tell that a particular prerequisite is available.