X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Frun_pazpar2.sh;h=5afb462f34af938144ee497f0ca1cf9d2ebb1585;hb=96fd9abf3bb0ccb411639fd5f24db1068235b628;hp=7366527987b9b0c5f928a643e5da8b6a4c4da1b0;hpb=89489822f4652ab3d9a67d733e1ffc235feaddac;p=pazpar2-moved-to-github.git diff --git a/test/run_pazpar2.sh b/test/run_pazpar2.sh index 7366527..5afb462 100755 --- a/test/run_pazpar2.sh +++ b/test/run_pazpar2.sh @@ -96,6 +96,17 @@ if test "$ztest" = "true" ; then fi fi done + if test -z "$F"; then + for p in ${srcdir}/../../yaz ${srcdir}/../../yaz-*; do + if test -x $p/ztest/yaz-ztest -a -x $p/client/yaz-client; then + VERSION=`$p/client/yaz-client -V|awk '{print $3;}'|awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test $VERSION -ge 4002052; then + F=$p/ztest/yaz-ztest + break + fi + fi + done + fi IFS=$oIFS if test -z "$F"; then echo "Skipping ${PREFIX}: recent yaz-ztest not found"