Skip to content

Commit

Permalink
fix: optional exception handling tests
Browse files Browse the repository at this point in the history
Disabled in ARM builds
  • Loading branch information
ABeltramo committed Jan 24, 2024
1 parent 1841a7e commit e241418
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/linux-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e241418

Please sign in to comment.