tests: detect when the sqlite3 test should work

This commit is contained in:
Pierre Pronchery 2022-08-25 02:51:15 +02:00
parent 582eab193f
commit 9d96e6774b

View File

@ -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