File: runtests

package info (click to toggle)
oldsys-preseed 3.23
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 532 kB
  • sloc: xml: 438; sh: 304; makefile: 4
file content (28 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download | duplicates (6)
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
#!/bin/bash

[ "$TEST_VERBOSE" ] || export TEST_VERBOSE=0

export NONINTERACTIVE="yes"
for test in `find . -name "*.test" | sort | grep -v ^./broken/`; do
	test="${test/.test}"
	test="${test/.\/}"
	echo -n "Running test $test... "
	if $(./do-test $test); then
		echo "ok"
	else
		echo "not ok"
		FAIL=1
	fi
done
if [ -e broken ]; then
	for broken in `find broken -name "*.test"`; do
		echo "Warning: $broken exists"
	done
fi

if [ $FAIL ]; then
	exit 1
else
	exit 0
fi