blob: 220adb4a3677bf7182df003bbad670af7f59f6d5 (
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
31
|
#!/bin/bash
# run tests
# 2005 Junichi Uekawa
set -e
dpkg -i /tmp/buildd/*.deb
chmod a+x /tmp/buildd/*/debian/pbuilder-test/*
SUCCESS=0
COUNT=0
unset FAIL || true
NOFAIL=1
for SCRIPT in $(run-parts --test /tmp/buildd/*/debian/pbuilder-test) ; do
echo "--- BEGIN test: ${SCRIPT##*/}"
if "${SCRIPT}"; then
echo SUCCESS
((SUCCESS=SUCCESS+1))
else
echo FAIL
FAIL[${#FAIL[@]}]="${SCRIPT##*/}"
NOFAIL=0
fi
echo "--- END test: ${SCRIPT##*/}"
((COUNT=COUNT+1))
done
echo "Summary:"
echo "=== $SUCCESS out of $COUNT tests passed"
echo "${FAIL[@]/#/ failed }"
echo "-- end of testsuite."
|