mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-04 02:06:31 -04:00
tools/run_tests.sh: run all test programs in exec_tests.sh
This commit is contained in:
parent
d3878bc8ae
commit
333eff73b2
@ -9,7 +9,9 @@ run_cmd() {
|
|||||||
$WRAPPER "$@" > /dev/null
|
$WRAPPER "$@" > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
run_cmd ./test_checksums
|
for prog in ./test_*; do
|
||||||
|
run_cmd $prog
|
||||||
|
done
|
||||||
|
|
||||||
for format in '' '-g' '-z'; do
|
for format in '' '-g' '-z'; do
|
||||||
for ref_impl in '' '-Y' '-Z'; do
|
for ref_impl in '' '-Y' '-Z'; do
|
||||||
|
@ -43,7 +43,7 @@ fi
|
|||||||
|
|
||||||
NDKDIR="${NDKDIR:=/opt/android-ndk}"
|
NDKDIR="${NDKDIR:=/opt/android-ndk}"
|
||||||
|
|
||||||
FILES=("$SMOKEDATA" ./tools/exec_tests.sh benchmark test_checksums)
|
FILES=("$SMOKEDATA" ./tools/exec_tests.sh benchmark 'test_*')
|
||||||
EXEC_TESTS_CMD="WRAPPER= SMOKEDATA=\"$(basename $SMOKEDATA)\" sh exec_tests.sh"
|
EXEC_TESTS_CMD="WRAPPER= SMOKEDATA=\"$(basename $SMOKEDATA)\" sh exec_tests.sh"
|
||||||
NPROC=$(grep -c processor /proc/cpuinfo)
|
NPROC=$(grep -c processor /proc/cpuinfo)
|
||||||
VALGRIND="valgrind --quiet --error-exitcode=100 --leak-check=full --errors-for-leak-kinds=all"
|
VALGRIND="valgrind --quiet --error-exitcode=100 --leak-check=full --errors-for-leak-kinds=all"
|
||||||
@ -174,7 +174,7 @@ checksum_benchmarks() {
|
|||||||
|
|
||||||
android_build_and_test() {
|
android_build_and_test() {
|
||||||
run_cmd ./tools/android_build.sh --ndkdir="$NDKDIR" "$@"
|
run_cmd ./tools/android_build.sh --ndkdir="$NDKDIR" "$@"
|
||||||
run_cmd adb push "${FILES[@]}" /data/local/tmp/
|
run_cmd adb push ${FILES[@]} /data/local/tmp/
|
||||||
|
|
||||||
# Note: adb shell always returns 0, even if the shell command fails...
|
# Note: adb shell always returns 0, even if the shell command fails...
|
||||||
log "adb shell \"cd /data/local/tmp && $EXEC_TESTS_CMD\""
|
log "adb shell \"cd /data/local/tmp && $EXEC_TESTS_CMD\""
|
||||||
@ -231,7 +231,7 @@ mips_tests() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
run_cmd ./tools/mips_build.sh
|
run_cmd ./tools/mips_build.sh
|
||||||
run_cmd scp "${FILES[@]}" root@dd-wrt:
|
run_cmd scp ${FILES[@]} root@dd-wrt:
|
||||||
run_cmd ssh root@dd-wrt "$EXEC_TESTS_CMD"
|
run_cmd ssh root@dd-wrt "$EXEC_TESTS_CMD"
|
||||||
|
|
||||||
log "Checking that compression on big endian CPU produces same output"
|
log "Checking that compression on big endian CPU produces same output"
|
||||||
@ -341,10 +341,6 @@ EOF
|
|||||||
run_cmd ./benchmark -6 "$TMPFILE"
|
run_cmd ./benchmark -6 "$TMPFILE"
|
||||||
run_cmd ./benchmark -12 "$TMPFILE"
|
run_cmd ./benchmark -12 "$TMPFILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check worst-case decompression speed
|
|
||||||
run_cmd make -j$NPROC test_slow_decompression
|
|
||||||
run_cmd ./test_slow_decompression
|
|
||||||
}
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user