Omit CVS Id. Update copyright year.
[idzebra-moved-to-github.git] / test / malxml / test1.sh
index b2bdbd8..cd57f57 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/sh
+
+pp=${srcdir:-"."}
+
 LOG=test1.log
-../../index/zebraidx -l $LOG init
-../../index/zebraidx -l $LOG update f1.xml
+
+rm -f $LOG
+if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG filters|grep grs.xml >/dev/null; then
+        ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
+else
+        exit 0
+fi
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG update $pp/f1.xml