summaryrefslogtreecommitdiff
path: root/extra/xbs-lukeshu/test/runTest
blob: b8713d82f37fca09ce8eb848b6c021765dc13c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

. "$(dirname ${BASH_SOURCE[0]})/lib/common.inc"

for t in "$(dirname ${BASH_SOURCE[0]})/test.d/"*.sh; do
	l=$(basename ${t} .sh)
	if [ -x ${t} ]; then
		msg "Running test '${l}'"
		${t}
		[ $? -ne 0 ] && die "Test '${l}' failed"
		echo -e "\n\n\n"
	else
		warning "Skipping test ${l}"
	fi
done