projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a new 'cut' directive to charmaps (.chr files) which specifies that
[idzebra-moved-to-github.git]
/
test
/
sort
/
test1.sh
diff --git
a/test/sort/test1.sh
b/test/sort/test1.sh
index
8fcc2cc
..
7be1269
100755
(executable)
--- a/
test/sort/test1.sh
+++ b/
test/sort/test1.sh
@@
-1,5
+1,9
@@
#!/bin/sh
#!/bin/sh
-# $Id: test1.sh,v 1.3 2003-05-21 14:39:22 adam Exp $
+# $Id: test1.sh,v 1.8 2004-07-28 09:47:41 adam Exp $
+
+pp=${srcdir:-"."}
+
+ulimit -c 10000
LOG=test1.log
rm -fr lock
mkdir lock
LOG=test1.log
rm -fr lock
mkdir lock
@@
-7,15
+11,17
@@
rm -fr reg
mkdir reg
rm -fr recs
mkdir recs
mkdir reg
rm -fr recs
mkdir recs
-cp rec*.xml recs
-../../index/zebraidx -l $LOG update recs || exit 1
-../../index/zebrasrv -l $LOG unix:socket &
+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
sleep 1
-test -f zebrasrv.pid || exit 2
-../api/testclient -n3 unix:socket '@or computer @attr 7=1 @attr 1=30 0' >tmp1
-echo 'Result count: 3
+test -f lock/zebrasrv.pid || exit 2
+../api/testclient -n4 unix:socket '@or computer @attr 7=1 @attr 1=30 0' >tmp1
+echo 'Result count: 4
+my:
+ title: 3rd computer
my:
my:
- title: third computer
+ title: third ^computer
my:
title: second computer
dateTime: 1
my:
title: second computer
dateTime: 1
@@
-23,5
+29,5
@@
my:
title: first computer
dateTime: 2' >tmp2
title: first computer
dateTime: 2' >tmp2
-kill `cat zebrasrv.pid`
+kill `cat lock/zebrasrv.pid`
diff tmp1 tmp2
diff tmp1 tmp2