Run internal tests in FreeBSD (#1616)

This commit is contained in:
Rangi
2025-01-20 14:08:48 -05:00
committed by GitHub
parent 2426068409
commit c2db23aef0
5 changed files with 48 additions and 11 deletions

View File

@@ -1,10 +1,14 @@
# SPDX-License-Identifier: MIT
OPTION(USE_NONFREE_TESTS "run tests that build nonfree codebases" ON)
option(USE_NONFREE_TESTS "run tests that build nonfree codebases" ON)
option(USE_EXTERNAL_TESTS "run tests that build external codebases" ON)
if(NOT USE_NONFREE_TESTS)
set(ONLY_FREE "--only-free")
endif()
if(NOT USE_EXTERNAL_TESTS)
set(ONLY_INTERNAL "--only-internal")
endif()
add_executable(randtilegen gfx/randtilegen.cpp)
add_executable(rgbgfx_test gfx/rgbgfx_test.cpp)
@@ -27,6 +31,6 @@ foreach(TARGET randtilegen rgbgfx_test)
endforeach()
add_test(NAME all
COMMAND ./run-tests.sh ${ONLY_FREE}
COMMAND ./run-tests.sh ${ONLY_FREE} ${ONLY_INTERNAL}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)