X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_filter.sh;h=ff745df3ed3880d2c8fb48d8b12abf45dfb1094d;hb=cd201808f5ebff04183882a0d7a02990795c4531;hp=07e774750fd5895751397da16df83ee9b6906a66;hpb=405c024aa13c4a2659d33131a72acc95538547b3;p=pazpar2-moved-to-github.git diff --git a/test/test_filter.sh b/test/test_filter.sh index 07e7747..ff745df 100755 --- a/test/test_filter.sh +++ b/test/test_filter.sh @@ -4,6 +4,7 @@ # srcdir might be set by make srcdir=${srcdir:-"."} +TEST=`basename $0 .sh` # look for yaz-ztest in PATH oIFS=$IFS @@ -26,16 +27,22 @@ if test -z "$F"; then fi rm -f ztest.pid -$F -l ztest.log -p ztest.pid -D tcp:localhost:9999 +rm -f ${TEST}_ztest.log +$F -l ${TEST}_ztest.log -p ztest.pid -D tcp:localhost:9999 sleep 1 if test ! -f ztest.pid; then echo "yaz-ztest could not be started" exit 0 fi -# Test using test_http.cfg -${srcdir}/run_pazpar2.sh test_filter -E=$? +E=0 +if test -x ../src/pazpar2; then + if ../src/pazpar2 -V |grep icu:enabled >/dev/null; then + ${srcdir}/run_pazpar2.sh $TEST + E=$? + fi +fi + kill `cat ztest.pid` rm ztest.pid exit $E