summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
blob: 4a475d826512d0181c502ba719c101d79953e445 (plain) (blame)
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
#!/bin/bash

. commands.sh

echo
echo "------------------ Utils-linux-ng regression tests ------------------"
echo

rm -f *~

res=0
count=0
for ts in $(find -maxdepth 1 -regex "\./ts[^\.~]*" |  sort); do
	$TS_TOPDIR/$ts
	res=$(( $res + $? ))
	count=$(( $count + 1 ))
done

echo
echo "---------------------------------------------------------------------"
if [ $res -eq 0 ]; then
	echo "  All $count tests PASSED"
	res=0
else
	echo "  $res tests of $count FAILED"
	res=1
fi
echo "---------------------------------------------------------------------"
exit $res