mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-04 02:06:31 -04:00
scripts: remove mips_tests
This was only useful for me to do local testing, I don't have the needed MIPS router available anymore, and its main purpose was test a big endian system but that's now covered by testing s390x with Travis CI.
This commit is contained in:
parent
50fa75455b
commit
f7138d6172
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
TOOLCHAIN_DIR=$HOME/src/ddwrt-toolchains/toolchain-mips_34kc_gcc-5.1.0_musl-1.1.9
|
||||
|
||||
make -j$(grep -c processor /proc/cpuinfo) all test_programs \
|
||||
CC="$TOOLCHAIN_DIR/bin/mips-openwrt-linux-musl-gcc" \
|
||||
CFLAGS="-DNEED_PRINTF -Werror"
|
@ -291,39 +291,6 @@ android_tests() {
|
||||
|
||||
###############################################################################
|
||||
|
||||
mips_tests() {
|
||||
test_group_included mips || return 0
|
||||
if [ "$(hostname)" != "zzz" ] && [ "$(hostname)" != "sol" ]; then
|
||||
log_skip "MIPS tests are not supported on this host"
|
||||
return 0
|
||||
fi
|
||||
if ! ping -c 1 dd-wrt > /dev/null; then
|
||||
log_skip "Can't run MIPS tests: dd-wrt system not available"
|
||||
return 0
|
||||
fi
|
||||
run_cmd ./scripts/mips_build.sh
|
||||
run_cmd scp ${FILES[@]} root@dd-wrt:
|
||||
run_cmd ssh root@dd-wrt "$EXEC_TESTS_CMD"
|
||||
|
||||
log "Checking that compression on big endian CPU produces same output"
|
||||
run_cmd scp gzip root@dd-wrt:
|
||||
run_cmd ssh root@dd-wrt \
|
||||
"rm -f big*.gz;
|
||||
./gzip -c -6 $(basename $SMOKEDATA) > big6.gz;
|
||||
./gzip -c -10 $(basename $SMOKEDATA) > big10.gz"
|
||||
run_cmd scp root@dd-wrt:big*.gz .
|
||||
make -j$NPROC gzip > /dev/null
|
||||
./gzip -c -6 "$SMOKEDATA" > little6.gz
|
||||
./gzip -c -10 "$SMOKEDATA" > little10.gz
|
||||
if ! cmp big6.gz little6.gz || ! cmp big10.gz little10.gz; then
|
||||
echo 1>&2 "Compressed data differed on big endian vs. little endian!"
|
||||
return 1
|
||||
fi
|
||||
rm big*.gz little*.gz
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
||||
windows_tests() {
|
||||
local arch
|
||||
|
||||
@ -425,7 +392,6 @@ native_tests
|
||||
freestanding_tests
|
||||
checksum_benchmarks
|
||||
android_tests
|
||||
mips_tests
|
||||
windows_tests
|
||||
static_analysis_tests
|
||||
gzip_tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user