Parent: [dd8f42] (diff)

Child: [56a565] (diff)

Download this file

runtests.sh    46 lines (35 with data), 818 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
if test ! -f shared.sh ; then
echo must be run in the top test directory
exit 1
fi
. shared.sh
if test ! x$reroot = x ; then
rerootResults
fi
makeindex() {
echo "Zeroing Index"
rm -rf $RECOLL_CONFDIR/xapiandb $RECOLL_CONFDIR/aspdict.*.rws
echo "Indexing"
recollindex -c $RECOLL_CONFDIR -z
}
if test x$noindex = x ; then
makeindex
fi
# Yes, we could/should use the $toptmp from shared.sh here, but what if
# this is unset ?
toptmp=${TMPDIR:-/tmp}/recolltsttmp
if test -d "$toptmp" ; then
rm -rf $toptmp/*
else
mkdir $toptmp || fatal cant create temp dir $toptmp
fi
dirs=`ls -F | grep / | grep -v CVS | grep -v non-auto | grep -v config`
echo
echo "Running query tests:"
for dir in $dirs ; do
cd $dir && $ECHON "$dir "
sh `basename $dir`.sh
cd ..
done
echo