Parent: [6e3bdf] (diff)

Child: [85426a] (diff)

Download this file

runtests.sh    26 lines (20 with data), 480 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
#!/bin/sh
if test ! -f shared.sh ; then
echo must be run in the top test directory
exit 1
fi
. shared.sh
# 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`
for dir in $dirs ; do
cd $dir && echo $dir
sh `basename $dir`.sh
cd ..
done