Limiting hits to INT_MAX, because yaz can't handle 64-bit hitcounts
[idzebra-moved-to-github.git] / test / rusmarc / test1.sh
index 4566ebb..aab681c 100755 (executable)
@@ -1,10 +1,19 @@
 #!/bin/sh
-# $Id: test1.sh,v 1.1 2004-03-09 18:45:17 adam Exp $
+# $Id: test1.sh,v 1.5 2004-06-16 21:48:57 adam Exp $
+
+pp=${srcdir:-"."}
+
 LOG=test1.log
 rm -f $LOG
-../../index/zebraidx -l$LOG init
-../../index/zebraidx -l$LOG update records/*marc
-../../index/zebrasrv -l$LOG unix:socket &
+test -d tmp || mkdir tmp
+test -d lock || mkdir lock
+test -d register || mkdir register
+../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
+if grep 'UTF-8 to koi8-r unsupported' $LOG >/dev/null; then
+       exit 0
+fi
+../../index/zebraidx -c $pp/zebra.cfg -l$LOG update $pp/records/*marc
+../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket &
 sleep 1
 # search text located in first record 600 $a
 # term is koi8-r encoded