Fixed problem with 'encoding' directive for .chr files. Added \LXXXX
[idzebra-moved-to-github.git] / test / charmap / test1.sh
1 #!/bin/sh
2 LOG=test1.log
3 rm -f $LOG
4 if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then
5         ../../index/zebraidx -l$LOG init
6 else
7         exit 0
8 fi
9 ../../index/zebraidx -l$LOG update *.xml
10 ../../index/zebrasrv -l$LOG unix:socket &
11 sleep 1
12 ../api/testclient unix:socket '@term string æ' >tmp1
13 echo 'Result count: 1' >tmp2
14 kill `cat zebrasrv.pid` || exit 1
15 diff tmp1 tmp2 || exit 2
16 rm -f tmp1 tmp2