cf84466526216b2b131e00087b8944ce9f4bf28b
[idzebra-moved-to-github.git] / test / charmap / test2.sh
1 #!/bin/sh
2 # $id$
3
4 pp=${srcdir:-"."}
5
6 LOG=test2.log
7 rm -f $LOG
8 if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then
9         ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
10 else
11         exit 0
12 fi
13 ../../index/zebraidx -c $pp/zebra.cfg -l$LOG update $pp/*.xml
14 ../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket &
15 sleep 1
16 # search for UNICODE 1E25 - letter h with dot below
17 ../api/testclient unix:socket '@term string ḥ' >tmp1
18 echo 'Result count: 1' >tmp2
19 kill `cat zebrasrv.pid` || exit 1
20 diff tmp1 tmp2 || exit 2
21 rm -f tmp1 tmp2