blob: 21df2b2d47bd5f97fa0c878c868fa2da25aa3bab (
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]*.sh
do
cd $ALLTESTSDIR
echo "#### Running $i"
fakeroot -- ./$i ../tbdiff-create/tbdiff-create ../tbdiff-deploy/tbdiff-deploy
if [ $? -ne 0 ]
then
echo "Test program $i failed" 1>&2
cd $ALLTESTSDIR
echo "-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-"
exit 1
fi
echo "#####################################################################"
done
|