+# $Id: Makefile.am,v 1.3 2004-03-09 18:45:17 adam Exp $
-EXTRA_DIST = zebra.cfg test.sh
+check_SCRIPTS = test1.sh
+
+TESTS = $(check_SCRIPTS)
+
+EXTRA_DIST = zebra.cfg test.sh $(check_SCRIPTS)
dist-hook:
mkdir -p $(distdir)/records
#!/bin/sh
-# $Id: test.sh,v 1.3 2003-05-06 17:39:01 adam Exp $
+# $Id: test.sh,v 1.4 2004-03-09 18:45:17 adam Exp $
test -d tmp || mkdir tmp
test -d lock || mkdir lock
test -d register || mkdir register
echo Loading Records
if [ -x ../../index/zebraidx ]; then
- ../../index/zebraidx update records
+ ../../index/zebraidx update records/simple-rusmarc
fi
echo Starting Server
if [ -x ../../index/zebrasrv ]; then
--- /dev/null
+#!/bin/sh
+# $Id: test1.sh,v 1.1 2004-03-09 18:45:17 adam Exp $
+LOG=test1.log
+rm -f $LOG
+../../index/zebraidx -l$LOG init
+../../index/zebraidx -l$LOG update records/*marc
+../../index/zebrasrv -l$LOG unix:socket &
+sleep 1
+# search text located in first record 600 $a
+# term is koi8-r encoded
+../api/testclient unix:socket '@attr 1=21 úÁÍÑÔÉÎ' >tmp1
+echo 'Result count: 1' >tmp2
+kill `cat lock/zebrasrv.pid` || exit 1
+diff tmp1 tmp2 || exit 2
+rm -f tmp1 tmp2