Ignore test.*.[0-9]
[idzebra-moved-to-github.git] / test / xpath / test3.sh
index 3b0145d..25eb21b 100755 (executable)
@@ -1,12 +1,16 @@
 #!/bin/sh
+# $Id: test3.sh,v 1.3 2003-05-21 14:39:23 adam Exp $
 LOG=test3.log
 TMP=test3.tmp
 rm -f $LOG
+rm -f $TMP
+../../index/zebraidx -l $LOG init || exit 1
+../../index/zebraidx -l $LOG -t grs.sgml update rec.xml || exit 2
 test -f dict*.mf || exit 1
 ../../index/zebrasrv -l $LOG -S unix:socket & 
 sleep 1
 test -f zebrasrv.pid || exit 2
-../testclient unix:socket '@attr 1=/Zthes/relation/termName Sauropoda' >$TMP
+../api/testclient unix:socket '@attr 1=/Zthes/relation/termName Sauropoda' >$TMP
 echo 'Killing server' >>$LOG
 kill `cat zebrasrv.pid` || exit 3
 cat $TMP >>$LOG