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