X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Frusmarc%2Ftest1.sh;h=44f18ff344faafa0dec2d7ab66c9a7148c7919fb;hb=8ee402d79e37344b08c2b54ad45b50e8327a6c03;hp=4566ebb2970686344b53756162c457698eee202c;hpb=70a624aa45d292ba54c94ff51ce3e7e2f890c467;p=idzebra-moved-to-github.git diff --git a/test/rusmarc/test1.sh b/test/rusmarc/test1.sh index 4566ebb..44f18ff 100755 --- a/test/rusmarc/test1.sh +++ b/test/rusmarc/test1.sh @@ -1,10 +1,25 @@ #!/bin/sh -# $Id: test1.sh,v 1.1 2004-03-09 18:45:17 adam Exp $ +# $Id: test1.sh,v 1.6 2004-09-27 10:44:52 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 + +if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG filters|grep grs.marc >/dev/null; then + ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init +else + exit 0 +fi + +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