Omit CVS Id. Update copyright year.
[idzebra-moved-to-github.git] / test / config / test2.sh
index 0557c8e..5de3bc8 100755 (executable)
@@ -1,8 +1,12 @@
 #!/bin/sh
+
+pp=${srcdir:-"."}
+
 LOG=test2.log
-if ../../index/zebraidx -l $LOG -V|grep Tcl >/dev/null; then
-       ../../index/zebraidx -l $LOG init
-       ../../index/zebraidx -l $LOG -s -t grs.tcl.m update m.rec | grep tag:dc:subject >/dev/null
+
+if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG filters|grep grs.tcl >/dev/null; then
+       ../../index/zebraidx -c $pp/zebra.cfg -l $LOG init
+       ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -s -t grs.tcl.m update $pp/m.rec | grep tag:dc:subject >/dev/null
 else
        exit 0
 fi