From: Nathan Moinvaziri Date: Mon, 22 Aug 2022 02:26:32 +0000 (-0700) Subject: Turn off tests for Emscripten that use large amounts of data. X-Git-Tag: 2.1.0-beta1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e39c6d68b5d944e1c0de5faeb99e731162899ea;p=thirdparty%2Fzlib-ng.git Turn off tests for Emscripten that use large amounts of data. --- diff --git a/configure b/configure index 552148caa..5381ee65a 100755 --- a/configure +++ b/configure @@ -2193,6 +2193,12 @@ for file in $SRCDIR/$ARCHDIR/*.c; do fi done +# Emscripten does not support large amounts of data via stdin/out +# https://github.com/emscripten-core/emscripten/issues/16755#issuecomment-1102732849 +if test "$CHOST" != "wasm32"; then + TEST="${TEST} ghtests" +fi + # Generate Makefile in test dir mkdir -p test if test $QEMU_ARCH; then QEMU_RUN="qemu-$QEMU_ARCH -L /usr/${CHOST}/"; fi @@ -2201,7 +2207,7 @@ sed < $SRCDIR/test/Makefile.in " /^CFLAGS *=/s#=.*#=$CFLAGS# /^LDFLAGS *=/s#=.*#=$LDFLAGS# /^EXE *=/s#=.*#=$EXE# -/^oldtests: */s#:.*#: $TEST# +/^alltests: */s#:.*#: $TEST# /^SRCDIR *=/s#=.*#=$SRCDIR/test# /^SRCTOP *=/s#=.*#=$SRCDIR# /^QEMU_RUN *=/s#=.*#=$QEMU_RUN# diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 61322e077..3b7168881 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -72,17 +72,21 @@ add_executable(makecrct ${PROJECT_SOURCE_DIR}/tools/makecrct.c) configure_test_executable(makecrct) set(MAKECRCT_COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $) -# Runs tests targeting CVEs -include(cmake/test-cves.cmake) +# Emscripten does not support large amounts of data via stdin/out +# https://github.com/emscripten-core/emscripten/issues/16755#issuecomment-1102732849 +if(NOT BASEARCH_WASM32_FOUND) + # Runs tests targeting CVEs + include(cmake/test-cves.cmake) -# Run tests with data files -include(cmake/test-data.cmake) + # Run tests with data files + include(cmake/test-data.cmake) -# Run tests targeting GitHub issues -include(cmake/test-issues.cmake) + # Run tests targeting GitHub issues + include(cmake/test-issues.cmake) -# Run tests targeting tools -include(cmake/test-tools.cmake) + # Run tests targeting tools + include(cmake/test-tools.cmake) +endif() if(WITH_FUZZERS) add_subdirectory(fuzz) diff --git a/test/Makefile.in b/test/Makefile.in index 4cd1399ec..e10de00ba 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -13,9 +13,9 @@ TEST_LDFLAGS=-L.. ../$(LIBNAME).a QEMU_RUN= QEMU_VER:=$(shell command -v $(QEMU_RUN) --version 2> /dev/null) -all: oldtests ghtests +all: alltests -oldtests: #set by ../configure +alltests: #set by ../configure check_cross_dep: ifneq (,$(QEMU_RUN)) ifeq (,$(QEMU_VER))