mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-24 05:43:04 +00:00
Make sure to init all variables involved in CMake tests
This commit is contained in:
@@ -2,15 +2,21 @@
|
||||
|
||||
option(USE_NONFREE_TESTS "run tests that build nonfree codebases" ON)
|
||||
option(USE_EXTERNAL_TESTS "run tests that build external codebases" ON)
|
||||
set(TESTS_OS_NAME "" CACHE STRING "skip running tests known to fail on this OS")
|
||||
|
||||
set(ONLY_FREE)
|
||||
if(NOT USE_NONFREE_TESTS)
|
||||
set(ONLY_FREE "--only-free")
|
||||
endif()
|
||||
|
||||
set(ONLY_INTERNAL)
|
||||
if(NOT USE_EXTERNAL_TESTS)
|
||||
set(ONLY_INTERNAL "--only-internal")
|
||||
endif()
|
||||
if(DEFINED OS)
|
||||
set(OS_NAME "--os" "${OS}")
|
||||
|
||||
set(OS_NAME)
|
||||
if(NOT TESTS_OS_NAME STREQUAL "")
|
||||
set(OS_NAME "--os" "${TESTS_OS_NAME}")
|
||||
endif()
|
||||
|
||||
add_executable(randtilegen gfx/randtilegen.cpp)
|
||||
|
||||
@@ -134,6 +134,7 @@ test_downstream pinobatch libbet all libbet.gb f117089aa056600e2d404bbcbac
|
||||
test_downstream LIJI32 SameBoy bootroms build/bin/BootROMs/cgb_boot.bin 113903775a9d34b798c2f8076672da6626815a91
|
||||
# gb-starter kit fails with any `make` on Windows: https://codeberg.org/ISSOtm/gb-starter-kit/issues/1
|
||||
# gb-starter-kit fails with macOS/BSD `make`: https://codeberg.org/ISSOtm/gb-starter-kit/issues/29
|
||||
if [[ "${osname%-*}" != "windows" && "${osname%-*}" != "macos" && "${osname%-*}" != "bsd" ]]; then
|
||||
test_downstream ISSOtm gb-starter-kit all bin/boilerplate.gb b4f130169ba73284e0d0e71b53e7baa4eca2f7fe
|
||||
fi
|
||||
case "${osname%%-*}" in
|
||||
windows | macos | bsd) ;;
|
||||
*) test_downstream ISSOtm gb-starter-kit all bin/boilerplate.gb b4f130169ba73284e0d0e71b53e7baa4eca2f7fe;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user