X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fcharmap%2Ftest2.sh;h=31861c25a87c3a156f091fc5d7649c98cb43b890;hb=a9eae0225b1a51b0257f80d9da9f95475dd04f53;hp=2b7861cb86601e5ecfa40e5de0ddec698a7d3fce;hpb=2dd8bfd275211ec1c984b93562c2085ae87040e0;p=idzebra-moved-to-github.git diff --git a/test/charmap/test2.sh b/test/charmap/test2.sh index 2b7861c..31861c2 100755 --- a/test/charmap/test2.sh +++ b/test/charmap/test2.sh @@ -1,14 +1,18 @@ #!/bin/sh +# $id$ + +pp=${srcdir:-"."} + LOG=test2.log rm -f $LOG -if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then - ../../index/zebraidx -l$LOG init +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 -l$LOG update *.xml -../../index/zebrasrv -l$LOG unix:socket & -sleep 1 +../../index/zebraidx -c $pp/zebra.cfg -l$LOG update $pp/*.xml +../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket & +sleep 2 # search for UNICODE 1E25 - letter h with dot below ../api/testclient unix:socket '@term string ḥ' >tmp1 echo 'Result count: 1' >tmp2