X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2Ftest-lib.sh;h=ac04b15a96ba1da2c1c36759a5b78c030602cd0e;hb=deb4e5567c42afe834d83868b9337277256a0d66;hp=cc08a98cb5f5fd45e2ea900006da51da0db332a5;hpb=45a0ab9e842e075fba6c30f303564e503e0cea99;p=notmuch 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