X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=test%2Ftest_http.sh;h=2c62d4bce271a8a04133f2e832cf487a42d66c36;hb=e31d1b0acf1de1a1e678c87308ba2c61b65391c9;hp=07363bb06e61af7ecbfde8f4e5501390b4a5f437;hpb=c7a7da93383fccb6f5cf7b74007d9fc7c3a2cf78;p=pazpar2-moved-to-github.git diff --git a/test/test_http.sh b/test/test_http.sh index 07363bb..2c62d4b 100755 --- a/test/test_http.sh +++ b/test/test_http.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test_http.sh,v 1.2 2007-05-15 21:28:36 adam Exp $ +# $Id: test_http.sh,v 1.3 2007-05-15 21:40:57 adam Exp $ # # Regression test using pazpar2 against yaz-ztest # Reads Pazpar2 URLs from test_http_urls @@ -13,13 +13,13 @@ srcdir=${srcdir:-"."} # Find a suitable yaz-ztest yt="" -for d in /usr/bin /usr/local/bin ../../yaz/ztest; do +for d in /usr/bin /usr/local/bin ${srcdir}/../../yaz/ztest ${srcdir}/../../../yaz/ztest; do yt=${d}/yaz-ztest if test -x ${yt}; then break fi done -if test -z "${yt}"; then +if test ! -x "${yt}"; then echo "No yaz-ztest found. Skipping" exit 0 fi @@ -59,8 +59,8 @@ fi testno=1 for f in `cat ${srcdir}/test_http_urls`; do OUT1=${srcdir}/test_http_${testno}.res - OUT2=${srcdir}/test_http_${testno}.log - DIFF=${srcdir}/test_http_${testno}.dif + OUT2=test_http_${testno}.log + DIFF=test_http_${testno}.dif if test -f $OUT1; then rm -f $OUT2 wget -q -O $OUT2 $f