diff options
| author | David Bremner <david@tethera.net> | 2016-04-08 22:49:49 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-04-12 20:14:43 -0300 |
| commit | deb4e5567c42afe834d83868b9337277256a0d66 (patch) | |
| tree | 90cdb51ac159c425d36f9cc0b15daf5e6955e1ea /test | |
| parent | 45a0ab9e842e075fba6c30f303564e503e0cea99 (diff) | |
configure: add test for default xapian backend
This is mainly for the test suite. We already expect the tests to be
run in the same environment as configure was run, at least to get the
name of the python interpreter. So we are not really imposing a new
restriction.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test-lib.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index cc08a98c..ac04b15a 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -1327,6 +1327,17 @@ test -z "$NO_PYTHON" && test_set_prereq PYTHON ln -s x y 2>/dev/null && test -h y 2>/dev/null && test_set_prereq SYMLINKS rm -f y +# convert variable from configure to more convenient form +case "$NOTMUCH_DEFAULT_XAPIAN_BACKEND" in + glass) + db_ending=glass + ;; + chert) + db_ending=DB + ;; + *) + error "Unknown Xapian backend $NOTMUCH_DEFAULT_XAPIAN_BACKEND" +esac # declare prerequisites for external binaries used in tests test_declare_external_prereq dtach test_declare_external_prereq emacs |
