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
sort test now using api
[idzebra-moved-to-github.git]
/
test
/
sort
/
test1.sh
diff --git
a/test/sort/test1.sh
b/test/sort/test1.sh
index
2d18e7c
..
1e06ca7
100755
(executable)
--- a/
test/sort/test1.sh
+++ b/
test/sort/test1.sh
@@
-1,5
+1,8
@@
#!/bin/sh
#!/bin/sh
-# $Id: test1.sh,v 1.5 2003-09-24 11:45:44 adam Exp $
+# $Id: test1.sh,v 1.9 2004-07-28 11:01:58 adam Exp $
+
+pp=${srcdir:-"."}
+
ulimit -c 10000
LOG=test1.log
rm -fr lock
ulimit -c 10000
LOG=test1.log
rm -fr lock
@@
-8,21
+11,25
@@
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
test -f lock/zebrasrv.pid || exit 2
sleep 1
test -f lock/zebrasrv.pid || exit 2
-../api/testclient -n3 unix:socket '@or computer @attr 7=1 @attr 1=30 0' >tmp1
-echo 'Result count: 3
-my:
- title: third computer
+../api/testclient -n4 unix:socket '@or computer @attr 7=1 @attr 1=30 0' >tmp1
+echo 'Result count: 4
my:
title: second computer
dateTime: 1
my:
title: first computer
my:
title: second computer
dateTime: 1
my:
title: first computer
- dateTime: 2' >tmp2
+ dateTime: 2
+my:
+ title: 3rd computer
+ dateTime: a^3
+my:
+ title: fourth computer
+ dateTime: 4' >tmp2
kill `cat lock/zebrasrv.pid`
diff tmp1 tmp2
kill `cat lock/zebrasrv.pid`
diff tmp1 tmp2