Switch to unified view

a/tests/runtests.sh b/tests/runtests.sh
...
...
5
    exit 1
5
    exit 1
6
fi
6
fi
7
7
8
. shared.sh
8
. shared.sh
9
9
10
makeindex() {
11
  echo "Zeroing Index" 
12
  rm -rf $RECOLL_CONFDIR/xapiandb $RECOLL_CONFDIR/aspdict.*.rws
13
  echo "Indexing" 
10
recollindex -z
14
  recollindex -z
15
}
16
17
makeindex
11
18
12
# Yes, we could/should use the $toptmp from shared.sh here, but what if
19
# Yes, we could/should use the $toptmp from shared.sh here, but what if
13
# this is unset ?
20
# this is unset ?
14
toptmp=${TMPDIR:-/tmp}/recolltsttmp
21
toptmp=${TMPDIR:-/tmp}/recolltsttmp
15
if test -d "$toptmp" ; then
22
if test -d "$toptmp" ; then
...
...
18
    mkdir $toptmp || fatal cant create temp dir $toptmp
25
    mkdir $toptmp || fatal cant create temp dir $toptmp
19
fi
26
fi
20
27
21
dirs=`ls -F | grep / | grep -v CVS`
28
dirs=`ls -F | grep / | grep -v CVS`
22
29
30
echo
31
echo "Running query tests:"
32
23
for dir in $dirs ; do
33
for dir in $dirs ; do
24
    cd $dir && echo $dir
34
    cd $dir && echo -n "$dir "
25
    sh `basename $dir`.sh
35
    sh `basename $dir`.sh
26
    cd ..
36
    cd ..
27
done
37
done
38
39
echo