From 51f51d3de3b24507ec02ffb8d0af62b57d25f8fb Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 15 Jun 2004 09:43:27 +0000 Subject: [PATCH] Zebra now works with make distcheck --- test/charmap/test1.sh | 4 ++-- test/charmap/test2.sh | 2 +- test/charmap/zebra.cfg | 5 +++-- test/config/test1.sh | 4 ++-- test/config/test2.sh | 4 ++-- test/gils/test1.sh | 10 +++++----- test/gils/test2.sh | 30 +++++++++++++++--------------- test/gils/test3.sh | 4 ++-- test/gils/timing1.sh | 48 ++++++++++++++++++++++++------------------------ test/gils/timing2.sh | 26 +++++++++++++------------- test/malxml/test1.sh | 4 ++-- test/marcxml/test1.sh | 4 ++-- test/marcxml/test2.sh | 4 ++-- test/marcxml/zebra.cfg | 4 ++-- test/rusmarc/test1.sh | 4 ++-- test/rusmarc/zebra.cfg | 4 ++-- test/sort/test1.sh | 4 ++-- test/sort/zebra.cfg | 4 ++-- test/xelm/zebra.cfg | 2 +- test/xpath/simple1.sh | 10 ++++++---- test/xpath/test1.sh | 4 ++-- test/xpath/test2.sh | 4 ++-- test/xpath/test3.sh | 4 ++-- test/xpath/test4.sh | 4 ++-- test/xpath/test5.sh | 4 ++-- test/xpath/zebra.cfg | 4 ++-- test/zsh/testall.sh | 4 ++-- test/zsh/zebra.cfg | 4 ++-- 28 files changed, 108 insertions(+), 105 deletions(-) diff --git a/test/charmap/test1.sh b/test/charmap/test1.sh index bb8e1a2..966ff5e 100755 --- a/test/charmap/test1.sh +++ b/test/charmap/test1.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $id$ +# $Id: test1.sh,v 1.3 2004-06-15 09:43:27 adam Exp $ pp=${srcdir:-"."} @@ -10,7 +10,7 @@ if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then else exit 0 fi -../../index/zebraidx -c $pp/zebra.cfg -l$LOG update *.xml +../../index/zebraidx -c $pp/zebra.cfg -l$LOG update $pp/*.xml ../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket & sleep 1 ../api/testclient unix:socket '@term string æ' >tmp1 diff --git a/test/charmap/test2.sh b/test/charmap/test2.sh index c704c9f..cf84466 100755 --- a/test/charmap/test2.sh +++ b/test/charmap/test2.sh @@ -10,7 +10,7 @@ if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then else exit 0 fi -../../index/zebraidx -c $pp/zebra.cfg -l$LOG update *.xml +../../index/zebraidx -c $pp/zebra.cfg -l$LOG update $pp/*.xml ../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket & sleep 1 # search for UNICODE 1E25 - letter h with dot below diff --git a/test/charmap/zebra.cfg b/test/charmap/zebra.cfg index 07d0695..8ea6070 100644 --- a/test/charmap/zebra.cfg +++ b/test/charmap/zebra.cfg @@ -1,8 +1,9 @@ # Simple Zebra configuration file -# $Id: zebra.cfg,v 1.1 2004-03-09 15:12:15 adam Exp $ +# $Id: zebra.cfg,v 1.2 2004-06-15 09:43:30 adam Exp $ # # Where the schema files, attribute files, etc are located. -profilePath: .:../../tab +profilePath: ${srcdir:-.}:${srcdir:-.}/../../tab + # Files that describe the attribute sets supported. attset: bib1.att diff --git a/test/config/test1.sh b/test/config/test1.sh index 0c581bd..81d169d 100755 --- a/test/config/test1.sh +++ b/test/config/test1.sh @@ -1,8 +1,8 @@ #!/bin/sh -# $Id: test1.sh,v 1.3 2004-06-15 08:06:34 adam Exp $ +# $Id: test1.sh,v 1.4 2004-06-15 09:43:30 adam Exp $ pp=${srcdir:-"."} LOG=test1.log ../../index/zebraidx -c $pp/zebra.cfg -l $LOG init -../../index/zebraidx -c $pp/zebra.cfg -l $LOG update g.rec +../../index/zebraidx -c $pp/zebra.cfg -l $LOG update $pp/g.rec diff --git a/test/config/test2.sh b/test/config/test2.sh index 4192337..ad2f79d 100755 --- a/test/config/test2.sh +++ b/test/config/test2.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test2.sh,v 1.3 2004-06-15 08:06:34 adam Exp $ +# $Id: test2.sh,v 1.4 2004-06-15 09:43:30 adam Exp $ pp=${srcdir:-"."} @@ -7,7 +7,7 @@ LOG=test2.log if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Tcl >/dev/null; then ../../index/zebraidx -c $pp/zebra.cfg -l $LOG init - ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -s -t grs.tcl.m update m.rec | grep tag:dc:subject >/dev/null + ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -s -t grs.tcl.m update $pp/m.rec | grep tag:dc:subject >/dev/null else exit 0 fi diff --git a/test/gils/test1.sh b/test/gils/test1.sh index d1991be..e3b526d 100755 --- a/test/gils/test1.sh +++ b/test/gils/test1.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test1.sh,v 1.8 2004-06-15 08:06:34 adam Exp $ +# $Id: test1.sh,v 1.9 2004-06-15 09:43:30 adam Exp $ pp=${srcdir:-"."} @@ -7,12 +7,12 @@ LOG=test1.log rm -f $LOG echo "initializing..." >>$LOG -mkdir -p reg -rm -f records/esdd000[12].grs # these should not be here, will be created later +test -d reg || mkdir reg +rm -f $pp/records/esdd000[12].grs # these should not be here, will be created later ../../index/zebraidx -l $LOG -c $pp/zebra1.cfg init || exit 1 echo "updating..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update $pp/records || exit 1 echo "killing old server (if any)..." >>$LOG test -f zebrasrv.pid && kill `cat zebrasrv.pid` @@ -41,7 +41,7 @@ echo "search 4..." >>$LOG grep "^Result count: 9$" log >/dev/null || exit 1 echo "reindexing..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update $pp/records || exit 1 echo "search 5..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 diff --git a/test/gils/test2.sh b/test/gils/test2.sh index 379c665..233a221 100755 --- a/test/gils/test2.sh +++ b/test/gils/test2.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test2.sh,v 1.8 2004-06-15 08:06:34 adam Exp $ +# $Id: test2.sh,v 1.9 2004-06-15 09:43:30 adam Exp $ pp=${srcdir:-"."} @@ -7,14 +7,14 @@ LOG=test2.log rm -f $LOG echo "init..." >>$LOG -rm -f records/esdd000[12].grs # these should not be here, will be created later +rm -f $pp/records/esdd000[12].grs # these should not be here, will be created later ../../index/zebraidx -l $LOG -c $pp/zebra2.cfg init || exit 1 echo "update 1..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "update 2..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "killing old server (if any)..." >>$LOG test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid` @@ -29,35 +29,35 @@ echo "search 1..." >>$LOG grep "^Result count: 9$" log >/dev/null || exit 1 echo "update 3..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "search 2..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 grep "^Result count: 9$" log >/dev/null || exit 1 echo "making test records..." >>$LOG -cp records/esdd0006.grs records/esdd0001.grs +cp $pp/records/esdd0006.grs $pp/records/esdd0001.grs echo "indexing them..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "search 3..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 grep "^Result count: 10$" log >/dev/null || exit 1 -touch records/esdd0001.grs +touch $pp/records/esdd0001.grs echo "indexing again..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "search 4..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 grep "^Result count: 10$" log >/dev/null || exit 1 echo "making another test record..." >>$LOG -mv records/esdd0001.grs records/esdd0002.grs +mv $pp/records/esdd0001.grs $pp/records/esdd0002.grs echo "indexing it too..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "search 5..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 @@ -65,11 +65,11 @@ grep "^Result count: 10$" log >/dev/null || exit 1 sleep 1 echo "modifying a test record..." >>$LOG -sed 's/UTAH/XYZ/g' records/esdd0002x.grs -mv records/esdd0002x.grs records/esdd0002.grs +sed 's/UTAH/XYZ/g' <$pp/records/esdd0002.grs >$pp/records/esdd0002x.grs +mv $pp/records/esdd0002x.grs $pp/records/esdd0002.grs echo "indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 1 echo "search 6..." >>$LOG @@ -84,5 +84,5 @@ echo "stopping server..." >>$LOG test -f zebrasrv.pid || exit 1 kill `cat zebrasrv.pid` || exit 1 rm -f log -rm -f records/esdd000[12].grs +rm -f $pp/records/esdd000[12].grs rm -f zebrasrv.pid diff --git a/test/gils/test3.sh b/test/gils/test3.sh index 23dbc18..e8bfbb0 100755 --- a/test/gils/test3.sh +++ b/test/gils/test3.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test3.sh,v 1.3 2004-06-15 08:06:34 adam Exp $ +# $Id: test3.sh,v 1.4 2004-06-15 09:43:30 adam Exp $ # Testing searches with lots of @and operators # in order to test the fast-forward operation of rsets @@ -19,7 +19,7 @@ mkdir -p reg ../../index/zebraidx -l $LOG -c $pp/zebra1.cfg init || exit 1 echo "updating..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update $pp/records || exit 1 echo "starting server..." >>$LOG ../../index/zebrasrv -S -c $pp/zebra1.cfg $DBG -l $LOG tcp:@:9901 & diff --git a/test/gils/timing1.sh b/test/gils/timing1.sh index 4506d9e..b59b876 100755 --- a/test/gils/timing1.sh +++ b/test/gils/timing1.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: timing1.sh,v 1.8 2004-06-15 08:06:34 adam Exp $ +# $Id: timing1.sh,v 1.9 2004-06-15 09:43:30 adam Exp $ # tests that updates are reflected immediately # in the registers. # Repeatedly modifies a record and counts hits. # Test 1: with good sleeps in every between - should pass always @@ -11,7 +11,7 @@ LOG=timing1.log rm -f $LOG echo " init..." >>$LOG -rm -f records/esdd000[12].grs # these should not be here, will be created later +rm -f $pp/records/esdd000[12].grs # these should not be here, will be created later ../../index/zebraidx -c $pp/zebra2.cfg -l $LOG init || exit 1 echo " killing old server (if any)..." >>$LOG @@ -24,7 +24,7 @@ test -f zebrasrv.pid || exit 1 sleep 2 echo " update 1..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 2 echo " search 1..." >>$LOG @@ -33,10 +33,10 @@ grep "^Result count: 9$" log >/dev/null || exit 1 sleep 2 echo "making a test record..." >>$LOG -cp records/esdd0006.grs records/esdd0002.grs +cp $pp/records/esdd0006.grs $pp/records/esdd0002.grs echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 2 echo " search 2..." >>$LOG @@ -45,11 +45,11 @@ grep "^Result count: 10$" log >/dev/null || exit 1 sleep 2 echo " 1a: modifying a test record (xyz)..." >>$LOG -sed 's/UTAH/XYZ/g' records/esdd0002x.grs -mv records/esdd0002x.grs records/esdd0002.grs +sed 's/UTAH/XYZ/g' <$pp/records/esdd0002.grs >$pp/records/esdd0002x.grs +mv $pp/records/esdd0002x.grs $pp/records/esdd0002.grs echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 2 echo " search 3..." >>$LOG @@ -59,11 +59,11 @@ grep "^Result count: 9$" log >/dev/null || exit 1 sleep 2 echo " 1b: modifying the test record back (utah)..." >>$LOG -sed 's/XYZ/UTAH/g' records/esdd0002x.grs -mv records/esdd0002x.grs records/esdd0002.grs +sed 's/XYZ/UTAH/g' <$pp/records/esdd0002.grs >$pp/records/esdd0002x.grs +mv $pp/records/esdd0002x.grs $pp/records/esdd0002.grs echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 2 echo " search 4..." >>$LOG @@ -73,11 +73,11 @@ grep "^Result count: 10$" log >/dev/null || exit 1 sleep 2 echo " 2a: modifying the test record (xyz)..." >>$LOG -sed 's/UTAH/XYZ/g' records/esdd0002x.grs -mv records/esdd0002x.grs records/esdd0002.grs +sed 's/UTAH/XYZ/g' <$pp/records/esdd0002.grs >$pp/records/esdd0002x.grs +mv $pp/records/esdd0002x.grs $pp/records/esdd0002.grs echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 2 echo " search 5..." >>$LOG @@ -87,12 +87,12 @@ grep "^Result count: 9$" log >/dev/null || exit 1 sleep 2 echo " 2b: modifying the test record back (utah)..." >>$LOG -sed 's/XYZ/UTAH/g' records/esdd0002x.grs -mv records/esdd0002x.grs records/esdd0002.grs +sed 's/XYZ/UTAH/g' <$pp/records/esdd0002.grs >$pp/records/esdd0002x.grs +mv $pp/records/esdd0002x.grs $pp/records/esdd0002.grs sleep 2 echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 2 echo " search 6..." >>$LOG @@ -103,12 +103,12 @@ grep "^Result count: 10$" log >/dev/null || exit 1 sleep 2 echo " 3a: modifying the test record (xyz)..." >>$LOG -sed 's/UTAH/XYZ/g' records/esdd0002x.grs -mv records/esdd0002x.grs records/esdd0002.grs +sed 's/UTAH/XYZ/g' <$pp/records/esdd0002.grs >$pp/records/esdd0002x.grs +mv $pp/records/esdd0002x.grs $pp/records/esdd0002.grs sleep 2 echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 2 echo " search 7..." >>$LOG @@ -118,11 +118,11 @@ grep "^Result count: 9$" log >/dev/null || exit 1 sleep 2 echo " 3b: modifying the test record back (utah)..." >>$LOG -sed 's/XYZ/UTAH/g' records/esdd0002x.grs -mv records/esdd0002x.grs records/esdd0002.grs +sed 's/XYZ/UTAH/g' <$pp/records/esdd0002.grs >$pp/records/esdd0002x.grs +mv $pp/records/esdd0002x.grs $pp/records/esdd0002.grs echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 sleep 2 echo " search 8..." >>$LOG @@ -134,6 +134,6 @@ echo "stopping server..." >>$LOG test -f zebrasrv.pid || exit 1 kill `cat zebrasrv.pid` || exit 1 rm -f log -rm -f records/esdd000[12].grs +rm -f $pp/records/esdd000[12].grs rm -f zebrasrv.pid diff --git a/test/gils/timing2.sh b/test/gils/timing2.sh index a7b5e2b..e34b1c2 100755 --- a/test/gils/timing2.sh +++ b/test/gils/timing2.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: timing2.sh,v 1.8 2004-06-15 08:06:34 adam Exp $ +# $Id: timing2.sh,v 1.9 2004-06-15 09:43:30 adam Exp $ # Demonstrated that updates depend on file timestamps pp=${srcdir:-"."} @@ -10,7 +10,7 @@ rm -f $LOG echo " init..." >>$LOG rm -f log timeref[12] -rm -f records/esdd000[12].grs # these should not be here, will be created later +rm -f $pp/records/esdd000[12].grs # these should not be here, will be created later ../../index/zebraidx -c $pp/zebra2.cfg -l $LOG init || exit 1 touch timeref1 # make an early timestamp @@ -24,30 +24,30 @@ test -f zebrasrv.pid || exit 1 touch timeref2 # make a later timestamp echo " update 1..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo " search 1..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 grep "^Result count: 9$" log >/dev/null || exit 1 echo "making a test record..." >>$LOG -cp records/esdd0006.grs records/esdd0002.grs -touch -r timeref1 records/esdd0002.grs +cp $pp/records/esdd0006.grs $pp/records/esdd0002.grs +touch -r timeref1 $pp/records/esdd0002.grs echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo " search 2..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 grep "^Result count: 10$" log >/dev/null || exit 1 echo " modifying a test record (xyz)..." >>$LOG -sed 's/UTAH/XYZ/g' records/esdd0002x.grs -mv records/esdd0002x.grs records/esdd0002.grs -touch -r timeref1 records/esdd0002.grs # reset timestamp to 'early' +sed 's/UTAH/XYZ/g' <$pp/records/esdd0002.grs >$pp/records/esdd0002x.grs +mv $pp/records/esdd0002x.grs $pp/records/esdd0002.grs +touch -r timeref1 $pp/records/esdd0002.grs # reset timestamp to 'early' echo " not indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo " search 3..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 @@ -55,10 +55,10 @@ echo " checking..." >>$LOG grep "^Result count: 10$" log >/dev/null || exit 1 echo " touching its timestamp..." >>$LOG -touch -r timeref2 records/esdd0002.grs # set timestamp to 'late' +touch -r timeref2 $pp/records/esdd0002.grs # set timestamp to 'late' echo " indexing it..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo " search 4..." >>$LOG ../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 @@ -69,6 +69,6 @@ echo "stopping server..." >>$LOG test -f zebrasrv.pid || exit 1 kill `cat zebrasrv.pid` || exit 1 rm -f log timeref[12] -rm -f records/esdd000[12].grs +rm -f $pp/records/esdd000[12].grs rm -f zebrasrv.pid diff --git a/test/malxml/test1.sh b/test/malxml/test1.sh index a31a203..c5a5607 100755 --- a/test/malxml/test1.sh +++ b/test/malxml/test1.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test1.sh,v 1.4 2004-06-15 08:06:34 adam Exp $ +# $Id: test1.sh,v 1.5 2004-06-15 09:43:32 adam Exp $ pp=${srcdir:-"."} @@ -11,4 +11,4 @@ if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then else exit 0 fi -../../index/zebraidx -c $pp/zebra.cfg -l $LOG update f1.xml +../../index/zebraidx -c $pp/zebra.cfg -l $LOG update $pp/f1.xml diff --git a/test/marcxml/test1.sh b/test/marcxml/test1.sh index 284ad25..c6bfe5a 100755 --- a/test/marcxml/test1.sh +++ b/test/marcxml/test1.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test1.sh,v 1.3 2004-06-15 08:06:34 adam Exp $ +# $Id: test1.sh,v 1.4 2004-06-15 09:43:33 adam Exp $ pp=${srcdir:-"."} @@ -12,7 +12,7 @@ if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then else exit 0 fi -../../index/zebraidx -c $pp/zebra.cfg -l $LOG $DBG update m*.xml +../../index/zebraidx -c $pp/zebra.cfg -l $LOG $DBG update $pp/m*.xml ../../index/zebrasrv -c $pp/zebra.cfg -l $LOG $DBG unix:socket & sleep 1 ../api/testclient unix:socket '@and @attr 1=1003 jack @attr 1=4 computer' >tmp1 diff --git a/test/marcxml/test2.sh b/test/marcxml/test2.sh index 2ff0460..26e899d 100755 --- a/test/marcxml/test2.sh +++ b/test/marcxml/test2.sh @@ -1,12 +1,12 @@ #!/bin/sh -# $Id: test2.sh,v 1.2 2004-06-15 08:06:34 adam Exp $ +# $Id: test2.sh,v 1.3 2004-06-15 09:43:33 adam Exp $ pp=${srcdir:-"."} LOG=test2.log rm -f $LOG ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init -../../index/zebraidx -c $pp/zebra.cfg -l$LOG -t grs.marcxml.record update sample-marc +../../index/zebraidx -c $pp/zebra.cfg -l$LOG -t grs.marcxml.record update $pp/sample-marc ../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket & sleep 1 ../api/testclient unix:socket '@and @attr 1=1003 jack @attr 1=4 computer' >tmp1 diff --git a/test/marcxml/zebra.cfg b/test/marcxml/zebra.cfg index 3a675e1..9503768 100644 --- a/test/marcxml/zebra.cfg +++ b/test/marcxml/zebra.cfg @@ -1,8 +1,8 @@ # Simple Zebra configuration file -# $Id: zebra.cfg,v 1.1 2003-10-07 09:18:56 adam Exp $ +# $Id: zebra.cfg,v 1.2 2004-06-15 09:43:33 adam Exp $ # # Where the schema files, attribute files, etc are located. -profilePath: .:../../tab +profilePath: ${srcdir:-.}:${srcdir:-.}/../../tab # Files that describe the attribute sets supported. attset: bib1.att diff --git a/test/rusmarc/test1.sh b/test/rusmarc/test1.sh index d57b141..3622888 100755 --- a/test/rusmarc/test1.sh +++ b/test/rusmarc/test1.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test1.sh,v 1.3 2004-06-15 08:06:34 adam Exp $ +# $Id: test1.sh,v 1.4 2004-06-15 09:43:33 adam Exp $ pp=${srcdir:-"."} @@ -9,7 +9,7 @@ test -d tmp || mkdir tmp test -d lock || mkdir lock test -d register || mkdir register ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init -../../index/zebraidx -c $pp/zebra.cfg -l$LOG update records/*marc +../../index/zebraidx -c $pp/zebra.cfg -l$LOG update $pp/records/*marc ../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket & sleep 1 # search text located in first record 600 $a diff --git a/test/rusmarc/zebra.cfg b/test/rusmarc/zebra.cfg index a342948..9ecef3a 100644 --- a/test/rusmarc/zebra.cfg +++ b/test/rusmarc/zebra.cfg @@ -1,9 +1,9 @@ # Simple Zebra configuration file that defines # Database with RUSMARC records. -# $Id: zebra.cfg,v 1.2 2003-11-09 11:56:06 oleg Exp $ +# $Id: zebra.cfg,v 1.3 2004-06-15 09:43:33 adam Exp $ # # Where are the config files located? -profilePath: .:./tab:../../tab:../../../yaz/tab +profilePath: ${srcdir:-.}/tab:${srcdir:-.}/../../tab # Files that describe the attribute sets supported. attset: bib1.att diff --git a/test/sort/test1.sh b/test/sort/test1.sh index 787b27f..87973fb 100755 --- a/test/sort/test1.sh +++ b/test/sort/test1.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test1.sh,v 1.6 2004-06-15 08:06:35 adam Exp $ +# $Id: test1.sh,v 1.7 2004-06-15 09:43:34 adam Exp $ pp=${srcdir:-"."} @@ -11,7 +11,7 @@ rm -fr reg mkdir reg rm -fr recs mkdir recs -cp rec*.xml recs +cp $pp/rec*.xml recs ../../index/zebraidx -c $pp/zebra.cfg -l $LOG update recs || exit 1 ../../index/zebrasrv -c $pp/zebra.cfg -l $LOG unix:socket & sleep 1 diff --git a/test/sort/zebra.cfg b/test/sort/zebra.cfg index f91a9ad..9caecf3 100644 --- a/test/sort/zebra.cfg +++ b/test/sort/zebra.cfg @@ -1,8 +1,8 @@ # Simple Zebra configuration file -# $Id: zebra.cfg,v 1.1 2002-12-10 12:54:24 adam Exp $ +# $Id: zebra.cfg,v 1.2 2004-06-15 09:43:34 adam Exp $ # # Where the schema files, attribute files, etc are located. -profilePath: .:../../tab +profilePath: ${srcdir:-.}:${srcdir:-.}/../../tab # Files that describe the attribute sets supported. attset: bib1.att diff --git a/test/xelm/zebra.cfg b/test/xelm/zebra.cfg index d55e7e5..7da1750 100644 --- a/test/xelm/zebra.cfg +++ b/test/xelm/zebra.cfg @@ -1,6 +1,6 @@ # Simple zebra configuration file to demonstate the usage of xelm directive -profilePath: .:../../tab +profilePath: ${srcdir:-.}/../../tab attset: bib1.att attset: explain.att diff --git a/test/xpath/simple1.sh b/test/xpath/simple1.sh index 239811c..3d4d940 100755 --- a/test/xpath/simple1.sh +++ b/test/xpath/simple1.sh @@ -1,13 +1,15 @@ #!/bin/sh -# $Id: simple1.sh,v 1.3 2003-05-21 14:39:23 adam Exp $ +# $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.xml || 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 diff --git a/test/xpath/test1.sh b/test/xpath/test1.sh index 4dfa0f4..d2b5206 100755 --- a/test/xpath/test1.sh +++ b/test/xpath/test1.sh @@ -1,9 +1,9 @@ #!/bin/sh -# $Id: test1.sh,v 1.4 2004-06-15 08:06:35 adam Exp $ +# $Id: test1.sh,v 1.5 2004-06-15 09:43:34 adam Exp $ pp=${srcdir:-"."} LOG=test1.log rm -f $LOG ../../index/zebraidx -c $pp/zebra.cfg -l $LOG init || exit 1 -../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update rec.xml || exit 2 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update $pp/rec.xml || exit 2 diff --git a/test/xpath/test2.sh b/test/xpath/test2.sh index ce99765..d6068af 100755 --- a/test/xpath/test2.sh +++ b/test/xpath/test2.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test2.sh,v 1.4 2004-06-15 08:06:35 adam Exp $ +# $Id: test2.sh,v 1.5 2004-06-15 09:43:34 adam Exp $ pp=${srcdir:-"."} @@ -8,7 +8,7 @@ TMP=test2.tmp rm -f $LOG rm -f $TMP ../../index/zebraidx -c $pp/zebra.cfg -l $LOG init || exit 1 -../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update rec.xml || exit 2 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update $pp/rec.xml || exit 2 test -f dict*.mf || exit 1 ../../index/zebrasrv -c $pp/zebra.cfg -l $LOG -S unix:socket & sleep 1 diff --git a/test/xpath/test3.sh b/test/xpath/test3.sh index 721b4d3..61ca519 100755 --- a/test/xpath/test3.sh +++ b/test/xpath/test3.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test3.sh,v 1.4 2004-06-15 08:06:35 adam Exp $ +# $Id: test3.sh,v 1.5 2004-06-15 09:43:34 adam Exp $ pp=${srcdir:-"."} @@ -8,7 +8,7 @@ TMP=test3.tmp rm -f $LOG rm -f $TMP ../../index/zebraidx -c $pp/zebra.cfg -l $LOG init || exit 1 -../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update rec.xml || exit 2 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update $pp/rec.xml || exit 2 test -f dict*.mf || exit 1 ../../index/zebrasrv -c $pp/zebra.cfg -l $LOG -S unix:socket & sleep 1 diff --git a/test/xpath/test4.sh b/test/xpath/test4.sh index ac31af7..99f3b8b 100755 --- a/test/xpath/test4.sh +++ b/test/xpath/test4.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test4.sh,v 1.2 2004-06-15 08:06:35 adam Exp $ +# $Id: test4.sh,v 1.3 2004-06-15 09:43:34 adam Exp $ pp=${srcdir:-"."} @@ -12,7 +12,7 @@ TMP5=test4-5.tmp rm -f $LOG rm -f $TMP ../../index/zebraidx -c $pp/zebra.cfg -l $LOG init || exit 1 -../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update rec4.xml || exit 2 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update $pp/rec4.xml || exit 2 test -f dict*.mf || exit 1 ../../index/zebrasrv -c $pp/zebra.cfg -l $LOG -S unix:socket & sleep 1 diff --git a/test/xpath/test5.sh b/test/xpath/test5.sh index 6429645..bbf067c 100755 --- a/test/xpath/test5.sh +++ b/test/xpath/test5.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test5.sh,v 1.2 2004-06-15 08:06:35 adam Exp $ +# $Id: test5.sh,v 1.3 2004-06-15 09:43:34 adam Exp $ pp=${srcdir:-"."} @@ -9,7 +9,7 @@ DBG="-v 1647" rm -f $LOG rm -f $TMP.* ../../index/zebraidx -c $pp/zebra.cfg -l $LOG init || exit 1 -../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update rec5.xml || exit 2 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update $pp/rec5.xml || exit 2 test -f dict*.mf || exit 1 ../../index/zebrasrv -c $pp/zebra.cfg -l $LOG $DBG -S unix:socket & sleep 1 diff --git a/test/xpath/zebra.cfg b/test/xpath/zebra.cfg index 09281c4..8867f55 100644 --- a/test/xpath/zebra.cfg +++ b/test/xpath/zebra.cfg @@ -1,5 +1,5 @@ -# $Id: zebra.cfg,v 1.3 2004-02-09 17:44:49 heikki Exp $ -profilePath: .:../../tab +# $Id: zebra.cfg,v 1.4 2004-06-15 09:43:34 adam Exp $ +profilePath: ${srcdir:-.}/../../tab recordType: grs.sgml attset: bib1.att diff --git a/test/zsh/testall.sh b/test/zsh/testall.sh index 1eef519..71729ff 100755 --- a/test/zsh/testall.sh +++ b/test/zsh/testall.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: testall.sh,v 1.3 2004-06-15 08:06:36 adam Exp $ +# $Id: testall.sh,v 1.4 2004-06-15 09:43:34 adam Exp $ # run all zebrash tests pp=${srcdir:-"."} @@ -7,7 +7,7 @@ pp=${srcdir:-"."} test -d reg || mkdir reg rm -f *.mf reg/*.mf *.out -for F in *.zsh +for F in $pp/*.zsh do echo $F ../../index/zebrash -c $pp/zebra.cfg <$F >$F.out diff --git a/test/zsh/zebra.cfg b/test/zsh/zebra.cfg index 945c3d9..91a8989 100644 --- a/test/zsh/zebra.cfg +++ b/test/zsh/zebra.cfg @@ -1,7 +1,7 @@ -# $Id: zebra.cfg,v 1.2 2004-01-22 11:27:22 adam Exp $ +# $Id: zebra.cfg,v 1.3 2004-06-15 09:43:34 adam Exp $ # A fairly minimal zebra.cfg -profilepath: ../../tab +profilePath: ${srcdir:-.}/../../tab register: reg:100M lockDir: reg -- 1.7.10.4