blob: 39d5ca6a752873f3b29d94e286c15f9e12488661 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
set -e
rm -rf tests/tmp
mkdir -p tests/tmp
for filename in tests/*.sh tests/*.c; do
testcase="$(basename "$filename")"
testcase="${testcase/%.sh/}"
testcase="${testcase/%.c/}"
case "$testcase" in
all|run|helpers)
;;
*)
source tests/run.sh "$testcase"
;;
esac
done
echo "All tests passed."
|