From f7138d617277f4da471ecb0ca34602f8722dfb66 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 18 Oct 2020 14:21:25 -0700 Subject: [PATCH] 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. --- scripts/mips_build.sh | 9 --------- scripts/run_tests.sh | 34 ---------------------------------- 2 files changed, 43 deletions(-) delete mode 100755 scripts/mips_build.sh diff --git a/scripts/mips_build.sh b/scripts/mips_build.sh deleted file mode 100755 index c28ff55..0000000 --- a/scripts/mips_build.sh +++ /dev/null @@ -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" diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 34fe0fc..1b13664 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -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