summaryrefslogtreecommitdiff
path: root/test/runtests-loop.sh
blob: f56d26dffab7b6e8a8160fddc3328ed608f73980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

TESTS=("$@")
ITER=0

while true; do
	./runtests.sh "${TESTS[@]}"
	RET="$?"
	if [ "${RET}" -ne 0 ]; then
		echo "Tests failed at loop $ITER"
		break
	fi
	echo "Finished loop $ITER"
	((ITER++))
done