From e241418c887f1963a69aa0a76db116dad3421bd0 Mon Sep 17 00:00:00 2001 From: ABeltramo Date: Wed, 24 Jan 2024 13:57:18 +0000 Subject: [PATCH] fix: optional exception handling tests Disabled in ARM builds --- .github/workflows/linux-build-test.yml | 1 + tests/CMakeLists.txt | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-build-test.yml b/.github/workflows/linux-build-test.yml index 0dae16be..ced8a88f 100644 --- a/.github/workflows/linux-build-test.yml +++ b/.github/workflows/linux-build-test.yml @@ -62,6 +62,7 @@ jobs: -DLINK_RUST_WAYLAND=ON \ -DTEST_RUST_WAYLAND=OFF \ -DTEST_NVIDIA=OFF \ + -DTEST_EXCEPTIONS=OFF \ -DCARGO_TARGET_BUILD=aarch64-unknown-linux-gnu \ -G Ninja diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0d635c13..0f3729ee 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,7 +10,13 @@ FetchContent_MakeAvailable(Catch2) # Tests need to be added as executables first add_executable(wolftests main.cpp) -file(GLOB SRC_LIST SRCS *.cpp) +set(SRC_LIST + main.cpp + testControl.cpp + testCrypto.cpp + testGSTPlugin.cpp + testMoonlight.cpp + testRTSP.cpp) if (UNIX AND NOT APPLE) option(TEST_UINPUT "Enable uinput test" ON) # uinput doesn't work in GA @@ -46,6 +52,11 @@ if (TEST_DOCKER) list(APPEND SRC_LIST "docker/testDocker.cpp") endif () +option(TEST_EXCEPTIONS "Enable exceptions tests" ON) +if (TEST_EXCEPTIONS) + list(APPEND SRC_LIST testExceptions.cpp) +endif () + target_sources(wolftests PRIVATE ${SRC_LIST}) # I'm using C++17 in the test