tests: add --allow-running-no-tests when running tests

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2268>
This commit is contained in:
Simon Zeni 2024-07-02 11:34:52 -04:00 committed by Marge Bot
parent 976d40f669
commit 953712fb96

View file

@ -48,7 +48,7 @@ foreach(testname ${tests})
add_executable(${testname} ${testname}.cpp)
target_link_libraries(${testname} PRIVATE xrt-external-catch2)
target_link_libraries(${testname} PRIVATE aux_util)
add_test(NAME ${testname} COMMAND ${testname} --success)
add_test(NAME ${testname} COMMAND ${testname} --success --allow-running-no-tests)
endforeach()
# For tests that require more than just aux_util, link those other libs down here.