summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
blob: baf6a48e5d3429659bdd4e341e499748b0170722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

SCRIPT_DIR=$(cd $(dirname $0); pwd)

for testdir in ${SCRIPT_DIR}/*; do
	if [[ ! -d ${testdir} ]]; then
		continue
	fi

	if [[ ! -x ${testdir}/run.sh ]]; then
		continue
	fi

	pushd ${testdir}
	./run.sh
	rc=$?
	popd

	if [[ ${rc} -ne 0 ]]; then
		exit 1
	fi
done