More updates to allow tests when builddir != srcdir.
[idzebra-moved-to-github.git] / test / charmap / test1.sh
index 501057d..bb8e1a2 100755 (executable)
@@ -1,13 +1,17 @@
 #!/bin/sh
+# $id$
+
+pp=${srcdir:-"."}
+
 LOG=test1.log
 rm -f $LOG
-if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then
-       ../../index/zebraidx -l$LOG init
+if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then
+       ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
 else
        exit 0
 fi
-../../index/zebraidx -l$LOG update *.xml
-../../index/zebrasrv -l$LOG unix:socket &
+../../index/zebraidx -c $pp/zebra.cfg -l$LOG update *.xml
+../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket &
 sleep 1
 ../api/testclient unix:socket '@term string æ' >tmp1
 echo 'Result count: 1' >tmp2