mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-30 06:47:48 +00:00
Run internal tests in FreeBSD (#1616)
This commit is contained in:
@@ -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}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user