[bdd878]: check.sh Maximize Restore History

Download this file

check.sh    20 lines (19 with data), 301 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
ln -s src bin
ln -s src share
tar xf test.tar
declare -i n=0
declare -i f=0
for i in test/*/*.sh ; do
echo "Testing $i"
sh $i
if test $? -ne 0
then echo " $i failed"
f+=1
fi
n+=1
done
rm -rf test
echo "$n tests done"
echo "Of these $f failed"
test $f -eq 0