diff options
| author | Austin Clements <aclements@csail.mit.edu> | 2014-10-13 02:20:02 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-08-13 23:52:51 +0200 |
| commit | 98ee460eaa98f1428aecf03dd39fcf314e6f62c0 (patch) | |
| tree | 60fc701a61c88ea92bd009f0f662c8107360f56b /test/test-lib.sh | |
| parent | 7f57b747b95eece465d10fd0acba20cc3dd868f1 (diff) | |
lib: API to retrieve database revision and UUID
This exposes the committed database revision to library users along
with a UUID that can be used to detect when revision numbers are no
longer comparable (e.g., because the database has been replaced).
Diffstat (limited to 'test/test-lib.sh')
| -rw-r--r-- | test/test-lib.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index 0bf7163e..126911fb 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -720,6 +720,11 @@ notmuch_date_sanitize () sed \ -e 's/^Date: Fri, 05 Jan 2001 .*0000/Date: GENERATED_DATE/' } + +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' +} # End of notmuch helper functions # Use test_set_prereq to tell that a particular prerequisite is available. |
