More updates to allow tests when builddir != srcdir.
[idzebra-moved-to-github.git] / test / xpath / test1.sh
index c3dbc14..4dfa0f4 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
-# $Id: test1.sh,v 1.3 2003-05-21 14:39:23 adam Exp $
+# $Id: test1.sh,v 1.4 2004-06-15 08:06:35 adam Exp $
+
+pp=${srcdir:-"."}
+
 LOG=test1.log
 rm -f $LOG
-../../index/zebraidx -l $LOG init || exit 1
-../../index/zebraidx -l $LOG -t grs.sgml update rec.xml || exit 2
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG init || exit 1
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update rec.xml || exit 2