aboutsummaryrefslogtreecommitdiff
path: root/test/test-lib.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2016-03-22 07:54:45 -0300
committerDavid Bremner <david@tethera.net>2016-05-13 07:29:12 -0300
commit792bea5aff135107fd970f51f3ef8c65f68194de (patch)
treeb3df6cbce34542f2789d70c402c2194edcc6b18e /test/test-lib.sh
parentbbf6069252d31e6693ee99cce8bf4f9fab47e360 (diff)
lib/cli: add library API / CLI for compile time options
This is intentionally low tech; if we have more than two options it may make sense to build up what infrastructure is provided.
Diffstat (limited to 'test/test-lib.sh')
-rw-r--r--test/test-lib.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index ac04b15a..09f87319 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -733,6 +733,12 @@ notmuch_uuid_sanitize ()
{
sed 's/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/UUID/g'
}
+
+notmuch_built_with_sanitize ()
+{
+ sed 's/^built_with[.]\(.*\)=.*$/built_with.\1=something/'
+}
+
# End of notmuch helper functions
# Use test_set_prereq to tell that a particular prerequisite is available.