blob: ca6501ea8f3e09a270ae5c2b76d89f2a860d2b5b (
plain)
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
|
#!/bin/bash
if [ ! -f run_tests.sh ]
then
echo "Test suite needs to be run from the tests directory" 1>&2
exit 1
fi
if [ ! -f test_lib.sh ]
then
echo "Could not find test_lib.sh" 1>&2
exit 1
fi
ALLTESTSDIR=`pwd`
for i in [0-9][0-9]*
do
cd $ALLTESTSDIR
echo "#### Running $i"
fakeroot -- ./$i ../tbdiff-create ../tbdiff-deploy
if [ $? -ne 0 ]
then
echo "Test program $i failed" 1>&2
cd $ALLTESTSDIR
echo "-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-"
exit 1
fi
echo "#####################################################################"
done
|