From 9d96e6774b46c400dc594a2bffd8d1bab7724bb2 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 25 Aug 2022 02:51:15 +0200 Subject: [PATCH] tests: detect when the sqlite3 test should work --- tests/tests.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/tests.sh b/tests/tests.sh index adb0dda..3c58396 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -101,15 +101,20 @@ target="$1" [ "$clean" -ne 0 ] && exit 0 tests="pkgconfig.sh" -#XXX needs the engine to be installed -failures="sqlite3" +failures= -if $PKGCONFIG --exists python-2.7; then +if $PKGCONFIG --exists "python-2.7"; then tests="$tests python.sh" else failures="$failures python.sh" fi +if $PKGCONFIG --exists "sqlite3"; then + tests="$tests sqlite3" +else + failures="$failures sqlite3" +fi + $DATE > "$target" FAILED= echo "Performing tests:" 1>&2