X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=test%2Fxpath%2Fsimple1.sh;h=3d4d940b5e530fe9ef5ff77e700ac1cbc70a2ecc;hb=f87bc955ef767e5ecadcd29ec4c2d8e0284a5196;hp=7fdd94ff8f8c5b89946a39a9e65b83a62dc92aa5;hpb=4ed7a26e63a0a8f537743b3c4c083c85fee4325a;p=idzebra-moved-to-github.git diff --git a/test/xpath/simple1.sh b/test/xpath/simple1.sh index 7fdd94f..3d4d940 100755 --- a/test/xpath/simple1.sh +++ b/test/xpath/simple1.sh @@ -1,23 +1,27 @@ -# simple1.sh - test with one simple sgml record +#!/bin/sh +# $Id: simple1.sh,v 1.4 2004-06-15 09:43:34 adam Exp $ +# test with one simple sgml record + +pp=${srcdir:-"."} LOG=simple1.log -../../index/zebraidx -l $LOG init || exit 1 -../../index/zebraidx -l $LOG update simple1.rec || exit 1 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG init || exit 1 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG update $pp/simple1.xml || exit 1 echo "Starting server " >> $LOG -../../index/zebrasrv -l $LOG -S unix:socket & +../../index/zebrasrv -c $pp/zebra.cfg -l $LOG -S unix:socket & sleep 1 test -f zebrasrv.pid || exit 2 -../testclient unix:socket -c 0 '@attr 1=/sgml/tag before' >> $LOG || exit 1 -../testclient unix:socket -c 1 '@attr 1=/sgml/tag inside' >> $LOG || exit 1 -../testclient unix:socket -c 0 '@attr 1=/sgml/tag after' >> $LOG || exit 1 +../api/testclient unix:socket -c 0 '@attr 1=/sgml/tag before' >> $LOG || exit 1 +../api/testclient unix:socket -c 1 '@attr 1=/sgml/tag inside' >> $LOG || exit 1 +../api/testclient unix:socket -c 0 '@attr 1=/sgml/tag after' >> $LOG || exit 1 -../testclient unix:socket -c 0 '@attr 1=/sgml/none after' >> $LOG || exit 1 +../api/testclient unix:socket -c 0 '@attr 1=/sgml/none after' >> $LOG || exit 1 -../testclient unix:socket -c 1 '@attr 1=/sgml before' >> $LOG || exit 1 -../testclient unix:socket -c 1 '@attr 1=/sgml inside' >> $LOG || exit 1 -../testclient unix:socket -c 1 '@attr 1=/sgml after' >> $LOG || exit 1 +../api/testclient unix:socket -c 1 '@attr 1=/sgml before' >> $LOG || exit 1 +../api/testclient unix:socket -c 1 '@attr 1=/sgml inside' >> $LOG || exit 1 +../api/testclient unix:socket -c 1 '@attr 1=/sgml after' >> $LOG || exit 1 echo "killing server " >> $LOG kill `cat zebrasrv.pid` || exit 3