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
/^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#
configure_test_executable(makecrct)
set(MAKECRCT_COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:makecrct>)
-# 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)
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))