X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Frusmarc%2Ftest1.sh;h=aab681ca0bd2669d45dd57c369baea59d59b53ec;hb=3e09835371a4b88df2a4b0ab155abb01cf285a81;hp=a84fdc230b522a5ec0410a75313f36d5b7ec6534;hpb=62e62137af3a42c5fb8ebc665623c8f1b9ae9a2b;p=idzebra-moved-to-github.git diff --git a/test/rusmarc/test1.sh b/test/rusmarc/test1.sh index a84fdc2..aab681c 100755 --- a/test/rusmarc/test1.sh +++ b/test/rusmarc/test1.sh @@ -1,13 +1,19 @@ #!/bin/sh -# $Id: test1.sh,v 1.2 2004-03-09 18:52:37 adam Exp $ +# $Id: test1.sh,v 1.5 2004-06-16 21:48:57 adam Exp $ + +pp=${srcdir:-"."} + LOG=test1.log rm -f $LOG test -d tmp || mkdir tmp test -d lock || mkdir lock test -d register || mkdir register -../../index/zebraidx -l$LOG init -../../index/zebraidx -l$LOG update records/*marc -../../index/zebrasrv -l$LOG unix:socket & +../../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