-# $Id: zebra.cfg,v 1.2 2004-06-14 23:43:32 adam Exp $
-profilepath: ../../tab:${srcdir}/../../tab
+# $Id: zebra.cfg,v 1.3 2004-06-15 08:06:33 adam Exp $
+profilepath: ${srcdir:-.}/../../tab
attset: bib1.att
#!/bin/sh
+# $id$
+
+pp=${srcdir:-"."}
+
LOG=test1.log
rm -f $LOG
-if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then
- ../../index/zebraidx -l$LOG init
+if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then
+ ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
else
exit 0
fi
-../../index/zebraidx -l$LOG update *.xml
-../../index/zebrasrv -l$LOG unix:socket &
+../../index/zebraidx -c $pp/zebra.cfg -l$LOG update *.xml
+../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket &
sleep 1
../api/testclient unix:socket '@term string æ' >tmp1
echo 'Result count: 1' >tmp2
#!/bin/sh
+# $id$
+
+pp=${srcdir:-"."}
+
LOG=test2.log
rm -f $LOG
-if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then
- ../../index/zebraidx -l$LOG init
+if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then
+ ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
else
exit 0
fi
-../../index/zebraidx -l$LOG update *.xml
-../../index/zebrasrv -l$LOG unix:socket &
+../../index/zebraidx -c $pp/zebra.cfg -l$LOG update *.xml
+../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket &
sleep 1
# search for UNICODE 1E25 - letter h with dot below
../api/testclient unix:socket '@term string ḥ' >tmp1
#!/bin/sh
+# $Id: test1.sh,v 1.3 2004-06-15 08:06:34 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test1.log
-../../index/zebraidx -l $LOG init
-../../index/zebraidx -l $LOG update g.rec
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG init
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG update g.rec
#!/bin/sh
+# $Id: test2.sh,v 1.3 2004-06-15 08:06:34 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test2.log
-if ../../index/zebraidx -l $LOG -V|grep Tcl >/dev/null; then
- ../../index/zebraidx -l $LOG init
- ../../index/zebraidx -l $LOG -s -t grs.tcl.m update m.rec | grep tag:dc:subject >/dev/null
+
+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
else
exit 0
fi
# Simple Zebra configuration file
-# $Id: zebra.cfg,v 1.1 2003-09-16 12:18:25 adam Exp $
+# $Id: zebra.cfg,v 1.2 2004-06-15 08:06: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
#!/bin/sh
-# $Id: stop03.sh,v 1.6 2003-09-24 11:45:44 adam Exp $
+# $Id: stop03.sh,v 1.7 2004-06-15 08:06:34 adam Exp $
# test start and stop of the threaded server (-T)
+pp=${srcdir:-"."}
+
LOG=stop03.log
rm -f $LOG
echo "initializing" >>$LOG
mkdir -p reg
-../../index/zebraidx -l $LOG -c zebra1.cfg init || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg init || exit 1
#create a base to test on
-../../index/zebraidx -l $LOG -c zebra1.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update records || exit 1
#kill old server (if any)
test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid`
echo "Starting server with -T (threaded)..." >>$LOG
(
- ../../index/zebrasrv -T -c zebra1.cfg -l $LOG tcp:@:9901 2>out ||
+ ../../index/zebrasrv -T -c $pp/zebra1.cfg -l $LOG tcp:@:9901 2>out ||
echo "server failed with $?" > $LOG
)&
sleep 1
#!/bin/sh
-# $Id: stop04.sh,v 1.5 2003-05-24 22:34:48 adam Exp $
+# $Id: stop04.sh,v 1.6 2004-06-15 08:06:34 adam Exp $
# test start and stop of the forked server
+pp=${srcdir:-"."}
+
LOG=stop04.log
rm -f $LOG
echo "initializing" >>$LOG
mkdir -p reg
-../../index/zebraidx -l $LOG -c zebra1.cfg init || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg init || exit 1
#create a base to test on
-../../index/zebraidx -l $LOG -c zebra1.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update records || exit 1
#kill old server (if any)
test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid`
echo "Starting server with (forked)..." >>$LOG
-../../index/zebrasrv -c zebra1.cfg -l $LOG tcp:@:9901 &
+../../index/zebrasrv -c $pp/zebra1.cfg -l $LOG tcp:@:9901 &
sleep 1
echo " checking that it runs... " >>$LOG
#!/bin/sh
-# $Id: test1.sh,v 1.7 2003-05-24 22:34:48 adam Exp $
+# $Id: test1.sh,v 1.8 2004-06-15 08:06:34 adam Exp $
+
+pp=${srcdir:-"."}
LOG=test1.log
echo "initializing..." >>$LOG
mkdir -p reg
rm -f records/esdd000[12].grs # these should not be here, will be created later
-../../index/zebraidx -l $LOG -c zebra1.cfg init || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg init || exit 1
echo "updating..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra1.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update records || exit 1
echo "killing old server (if any)..." >>$LOG
test -f zebrasrv.pid && kill `cat zebrasrv.pid`
echo "starting server..." >>$LOG
-../../index/zebrasrv -S -c zebra1.cfg -l $LOG tcp:@:9901 &
+../../index/zebrasrv -S -c $pp/zebra1.cfg -l $LOG tcp:@:9901 &
sleep 1
echo "checking it runs..." >>$LOG
grep "^Result count: 9$" log >/dev/null || exit 1
echo "reindexing..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra1.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update records || exit 1
echo "search 5..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
#!/bin/sh
-# $Id: test2.sh,v 1.7 2003-05-24 22:34:48 adam Exp $
+# $Id: test2.sh,v 1.8 2004-06-15 08:06:34 adam Exp $
+
+pp=${srcdir:-"."}
LOG=test2.log
rm -f $LOG
echo "init..." >>$LOG
rm -f records/esdd000[12].grs # these should not be here, will be created later
-../../index/zebraidx -l $LOG -c zebra2.cfg init || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg init || exit 1
echo "update 1..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo "update 2..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo "killing old server (if any)..." >>$LOG
test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid`
echo "starting server..." >>$LOG
-../../index/zebrasrv -S -c zebra2.cfg -l $LOG tcp:@:9901 &
+../../index/zebrasrv -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901 &
sleep 1
test -f zebrasrv.pid || exit 1
grep "^Result count: 9$" log >/dev/null || exit 1
echo "update 3..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo "search 2..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
cp records/esdd0006.grs records/esdd0001.grs
echo "indexing them..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo "search 3..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
touch records/esdd0001.grs
echo "indexing again..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo "search 4..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
mv records/esdd0001.grs records/esdd0002.grs
echo "indexing it too..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo "search 5..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
mv records/esdd0002x.grs records/esdd0002.grs
echo "indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 1
echo "search 6..." >>$LOG
#!/bin/sh
-# $Id: test3.sh,v 1.2 2004-02-12 15:14:19 heikki Exp $
+# $Id: test3.sh,v 1.3 2004-06-15 08:06:34 adam Exp $
# Testing searches with lots of @and operators
# in order to test the fast-forward operation of rsets
+pp=${srcdir:-"."}
+
LOG=test3.log
DBG="-v 1647"
echo "initializing..." >>$LOG
mkdir -p reg
-../../index/zebraidx -l $LOG -c zebra1.cfg init || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg init || exit 1
echo "updating..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra1.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update records || exit 1
echo "starting server..." >>$LOG
-../../index/zebrasrv -S -c zebra1.cfg $DBG -l $LOG tcp:@:9901 &
+../../index/zebrasrv -S -c $pp/zebra1.cfg $DBG -l $LOG tcp:@:9901 &
sleep 1
echo "checking it runs..." >>$LOG
../api/testclient -c 15 localhost:9901 '@and @and in data the' > log || exit 1
echo "search D8..." >>$LOG
-../api/testclient -c2 localhost:9901 "@attr 1=4 @and UNPUBLISHED @and REPORTS AND" >log || exit 1
+../api/testclient -c 2 localhost:9901 "@attr 1=4 @and UNPUBLISHED @and REPORTS AND" >log || exit 1
# This one failed at early fast-forwards
echo "search E1..." >>$LOG
#!/bin/sh
-# $Id: timing1.sh,v 1.7 2003-05-24 22:34:48 adam Exp $
+# $Id: timing1.sh,v 1.8 2004-06-15 08:06:34 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
+pp=${srcdir:-"."}
+
LOG=timing1.log
rm -f $LOG
echo " init..." >>$LOG
rm -f records/esdd000[12].grs # these should not be here, will be created later
-../../index/zebraidx -c zebra2.cfg -l $LOG init || exit 1
+../../index/zebraidx -c $pp/zebra2.cfg -l $LOG init || exit 1
echo " killing old server (if any)..." >>$LOG
test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid`
echo " starting server..." >>$LOG
-../../index/zebrasrv -S -c zebra2.cfg -l $LOG tcp:@:9901 &
+../../index/zebrasrv -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901 &
sleep 1
test -f zebrasrv.pid || exit 1
sleep 2
echo " update 1..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 2
echo " search 1..." >>$LOG
cp records/esdd0006.grs records/esdd0002.grs
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 2
echo " search 2..." >>$LOG
mv records/esdd0002x.grs records/esdd0002.grs
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 2
echo " search 3..." >>$LOG
mv records/esdd0002x.grs records/esdd0002.grs
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 2
echo " search 4..." >>$LOG
mv records/esdd0002x.grs records/esdd0002.grs
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 2
echo " search 5..." >>$LOG
sleep 2
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 2
echo " search 6..." >>$LOG
sleep 2
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 2
echo " search 7..." >>$LOG
mv records/esdd0002x.grs records/esdd0002.grs
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
sleep 2
echo " search 8..." >>$LOG
#!/bin/sh
-# $Id: timing2.sh,v 1.7 2003-05-24 22:34:48 adam Exp $
+# $Id: timing2.sh,v 1.8 2004-06-15 08:06:34 adam Exp $
# Demonstrated that updates depend on file timestamps
+pp=${srcdir:-"."}
+
LOG=timing2.log
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
-../../index/zebraidx -c zebra2.cfg -l $LOG init || exit 1
+../../index/zebraidx -c $pp/zebra2.cfg -l $LOG init || exit 1
touch timeref1 # make an early timestamp
echo " killing old server (if any)..." >>$LOG
test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid`
echo " starting server..." >>$LOG
-../../index/zebrasrv -S -c zebra2.cfg -l $LOG tcp:@:9901 &
+../../index/zebrasrv -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901 &
sleep 1
test -f zebrasrv.pid || exit 1
touch timeref2 # make a later timestamp
echo " update 1..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo " search 1..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
touch -r timeref1 records/esdd0002.grs
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo " search 2..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
touch -r timeref1 records/esdd0002.grs # reset timestamp to 'early'
echo " not indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo " search 3..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
touch -r timeref2 records/esdd0002.grs # set timestamp to 'late'
echo " indexing it..." >>$LOG
-../../index/zebraidx -l $LOG -c zebra2.cfg update records || exit 1
+../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update records || exit 1
echo " search 4..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
# Simple Zebra configuration file
-# $Id: zebra1.cfg,v 1.5 2004-01-22 15:40:25 heikki Exp $
+# $Id: zebra1.cfg,v 1.6 2004-06-15 08:06:34 adam Exp $
#
# Where the schema files, attribute files, etc are located.
-profilePath: .:../../tab
+profilePath: ${srcdir:-.}/../../tab
# Files that describe the attribute sets supported.
attset: bib1.att
# Simple Zebra configuration file
-# $Id: zebra2.cfg,v 1.5 2004-01-22 15:40:25 heikki Exp $
+# $Id: zebra2.cfg,v 1.6 2004-06-15 08:06:34 adam Exp $
#
# Where the schema files, attribute files, etc are located.
-profilePath: .:../../tab
+profilePath: ${srcdir:-.}/../../tab
# Files that describe the attribute sets supported.
attset: bib1.att
#!/bin/sh
+# $Id: test1.sh,v 1.4 2004-06-15 08:06:34 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test1.log
+
rm -f $LOG
if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then
- ../../index/zebraidx -l$LOG init
+ ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
else
exit 0
fi
-../../index/zebraidx -l $LOG update f1.xml
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG update f1.xml
# Simple Zebra configuration file
-# $Id: zebra.cfg,v 1.1 2003-09-08 09:30:17 adam Exp $
+# $Id: zebra.cfg,v 1.2 2004-06-15 08:06:34 adam Exp $
#
# Where the schema files, attribute files, etc are located.
-profilePath: .:../../tab
+profilePath: ${srcdir:-.}/../../tab
# Files that describe the attribute sets supported.
attset: bib1.att
#!/bin/sh
+# $Id: test1.sh,v 1.3 2004-06-15 08:06:34 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test1.log
DBG="-v 1647"
rm -f $LOG
-if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then
- ../../index/zebraidx -l $LOG $DBG init
+if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then
+ ../../index/zebraidx -c $pp/zebra.cfg -l $LOG $DBG init
else
exit 0
fi
-../../index/zebraidx -l $LOG $DBG update m*.xml
-../../index/zebrasrv -l $LOG $DBG unix:socket &
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG $DBG update 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
echo 'Result count: 2' >tmp2
#!/bin/sh
+# $Id: test2.sh,v 1.2 2004-06-15 08:06:34 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test2.log
rm -f $LOG
-../../index/zebraidx -l$LOG init
-../../index/zebraidx -l$LOG -t grs.marcxml.record update sample-marc
-../../index/zebrasrv -l$LOG unix:socket &
+../../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/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
echo 'Result count: 2' >tmp2
#!/bin/sh
-# $Id: test1.sh,v 1.2 2004-03-09 18:52:37 adam Exp $
+# $Id: test1.sh,v 1.3 2004-06-15 08:06:34 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test1.log
rm -f $LOG
test -d tmp || mkdir tmp
test -d lock || mkdir lock
test -d register || mkdir register
-../../index/zebraidx -l$LOG init
-../../index/zebraidx -l$LOG update records/*marc
-../../index/zebrasrv -l$LOG unix:socket &
+../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
+../../index/zebraidx -c $pp/zebra.cfg -l$LOG update records/*marc
+../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket &
sleep 1
# search text located in first record 600 $a
# term is koi8-r encoded
#!/bin/sh
-# $Id: test1.sh,v 1.5 2003-09-24 11:45:44 adam Exp $
+# $Id: test1.sh,v 1.6 2004-06-15 08:06:35 adam Exp $
+
+pp=${srcdir:-"."}
+
ulimit -c 10000
LOG=test1.log
rm -fr lock
rm -fr recs
mkdir recs
cp rec*.xml recs
-../../index/zebraidx -l $LOG update recs || exit 1
-../../index/zebrasrv -l $LOG unix:socket &
+../../index/zebraidx -c $pp/zebra.cfg -l $LOG update recs || exit 1
+../../index/zebrasrv -c $pp/zebra.cfg -l $LOG unix:socket &
sleep 1
test -f lock/zebrasrv.pid || exit 2
../api/testclient -n3 unix:socket '@or computer @attr 7=1 @attr 1=30 0' >tmp1
# Simple Zebra configuration file that defines
# a database with USMARC records.
-# $Id: zebra.cfg,v 1.4 1999-12-08 22:11:56 adam Exp $
+# $Id: zebra.cfg,v 1.5 2004-06-15 08:06:35 adam Exp $
#
# Where are the config files located?
-profilePath: .:../../tab:../../../yaz/tab
+profilePath: ${srcdir:-.}/../../tab
# Files that describe the attribute sets supported.
attset: bib1.att
#!/bin/sh
-# $Id: test1.sh,v 1.3 2003-05-21 14:39:23 adam Exp $
+# $Id: test1.sh,v 1.4 2004-06-15 08:06:35 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test1.log
rm -f $LOG
-../../index/zebraidx -l $LOG init || exit 1
-../../index/zebraidx -l $LOG -t grs.sgml update rec.xml || exit 2
+../../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
#!/bin/sh
-# $Id: test2.sh,v 1.3 2003-05-21 14:39:23 adam Exp $
+# $Id: test2.sh,v 1.4 2004-06-15 08:06:35 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test2.log
TMP=test2.tmp
rm -f $LOG
rm -f $TMP
-../../index/zebraidx -l $LOG init || exit 1
-../../index/zebraidx -l $LOG -t grs.sgml update rec.xml || exit 2
+../../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
test -f dict*.mf || exit 1
-../../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
../api/testclient unix:socket '@attr 1=/Zthes/termName Sauropoda' >$TMP
#!/bin/sh
-# $Id: test3.sh,v 1.3 2003-05-21 14:39:23 adam Exp $
+# $Id: test3.sh,v 1.4 2004-06-15 08:06:35 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test3.log
TMP=test3.tmp
rm -f $LOG
rm -f $TMP
-../../index/zebraidx -l $LOG init || exit 1
-../../index/zebraidx -l $LOG -t grs.sgml update rec.xml || exit 2
+../../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
test -f dict*.mf || exit 1
-../../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
../api/testclient unix:socket '@attr 1=/Zthes/relation/termName Sauropoda' >$TMP
#!/bin/sh
-# $Id: test4.sh,v 1.1 2004-01-15 13:31:31 adam Exp $
+# $Id: test4.sh,v 1.2 2004-06-15 08:06:35 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG=test4.log
TMP1=test4-1.tmp
TMP2=test4-2.tmp
TMP5=test4-5.tmp
rm -f $LOG
rm -f $TMP
-../../index/zebraidx -l $LOG init || exit 1
-../../index/zebraidx -l $LOG -t grs.sgml update rec4.xml || exit 2
+../../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
test -f dict*.mf || exit 1
-../../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
../api/testclient unix:socket '@attr 1=/root content' >$TMP1
#!/bin/sh
-# $Id: test5.sh,v 1.1 2004-02-09 17:44:49 heikki Exp $
+# $Id: test5.sh,v 1.2 2004-06-15 08:06:35 adam Exp $
+
+pp=${srcdir:-"."}
+
LOG="test5.log"
TMP="test5.tmp"
DBG="-v 1647"
rm -f $LOG
rm -f $TMP.*
-../../index/zebraidx -l $LOG init || exit 1
-../../index/zebraidx -l $LOG -t grs.sgml update rec5.xml || exit 2
+../../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
test -f dict*.mf || exit 1
-../../index/zebrasrv -l $LOG $DBG -S unix:socket &
+../../index/zebrasrv -c $pp/zebra.cfg -l $LOG $DBG -S unix:socket &
sleep 1
test -f zebrasrv.pid || exit 2
../api/testclient unix:socket '@attr 1=/record/title foo' >$TMP.1
#!/bin/sh
+# $Id: testall.sh,v 1.3 2004-06-15 08:06:36 adam Exp $
# run all zebrash tests
-mkdir -p reg
+
+pp=${srcdir:-"."}
+
+test -d reg || mkdir reg
rm -f *.mf reg/*.mf *.out
for F in *.zsh
do
echo $F
- ../../index/zebrash <$F >$F.out
+ ../../index/zebrash -c $pp/zebra.cfg <$F >$F.out
RC=$?
if [ "$RC" -gt "0" ]
then