summaryrefslogtreecommitdiffstats
path: root/tests/test_post
blob: 12512663120ef769acad668976dae63e278885c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# report stats about test scripts that were run

num_ok=`ls *.ok 2>/dev/null | wc -l`
num_failed=`ls *.failed 2>/dev/null | wc -l`

echo "$num_ok tests succeeded	$num_failed tests failed"

test "$num_failed" -eq 0 && exit 0

echo -n "Tests failed: "
for fname in $(ls *.failed); do
	echo -n "${fname%%.failed} "
done
echo ""

exit 1