projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
76a636f
)
Make cql test work if srcdir != .
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 10 Mar 2004 17:29:18 +0000
(17:29 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 10 Mar 2004 17:29:18 +0000
(17:29 +0000)
test/tstcql.sh
patch
|
blob
|
history
diff --git
a/test/tstcql.sh
b/test/tstcql.sh
index
2f41aba
..
8c70905
100755
(executable)
--- a/
test/tstcql.sh
+++ b/
test/tstcql.sh
@@
-1,4
+1,5
@@
#!/bin/sh
#!/bin/sh
+srcdir=${srcdir:-.}
oIFS="$IFS"
IFS='
'
oIFS="$IFS"
IFS='
'
@@
-6,7
+7,9
@@
secno=0
testno=0
comment=0
ecode=0
testno=0
comment=0
ecode=0
-for f in `cat cqlsample`; do
+test -f ${srcdir}/cqlsample || exit 1
+test -d cql || mkdir cql
+for f in `cat ${srcdir}/cqlsample`; do
if echo $f | grep '^#' >/dev/null; then
comment=1
else
if echo $f | grep '^#' >/dev/null; then
comment=1
else
@@
-16,8
+19,8
@@
for f in `cat cqlsample`; do
fi
comment=0
testno=`expr $testno + 1`
fi
comment=0
testno=`expr $testno + 1`
- OUT1=cql/$secno.$testno.out
- ERR1=cql/$secno.$testno.err
+ OUT1=${srcdir}/cql/$secno.$testno.out
+ ERR1=${srcdir}/cql/$secno.$testno.err
OUT2=cql/$secno.$testno.out.tmp
ERR2=cql/$secno.$testno.err.tmp
DIFF=cql/$secno.$testno.diff
OUT2=cql/$secno.$testno.out.tmp
ERR2=cql/$secno.$testno.err.tmp
DIFF=cql/$secno.$testno.diff