summaryrefslogtreecommitdiff
path: root/util/compress/libdeflate/scripts/exec_tests.sh
blob: c748e423e220bcb27a83c3f579d99146c8a344b2 (plain)
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
29
30
31
32
33
34
#!/bin/sh
#
# Helper script used by run_tests.sh and android_tests.sh,
# not intended to be run directly
#

set -eu

run_cmd() {
	echo "$WRAPPER $*"
	$WRAPPER "$@" > /dev/null
}

for prog in ./test_*; do
	run_cmd "$prog"
done

for format in '' '-g' '-z'; do
	for ref_impl in '' '-Y' '-Z'; do
		run_cmd ./benchmark $format $ref_impl "$TESTDATA"
	done
done
for level in 0 1 3 7 9; do
	for ref_impl in '' '-Y'; do
		run_cmd ./benchmark -$level $ref_impl "$TESTDATA"
	done
done
for level in 0 1 3 7 9 12; do
	for ref_impl in '' '-Z'; do
		run_cmd ./benchmark -$level $ref_impl "$TESTDATA"
	done
done

echo "exec_tests finished successfully" # Needed for 'adb shell'