mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add gb-starter-kit to test suite, excluding it on Windows, macOS, and BSD (#1753)
This commit is contained in:
1
test/.gitignore
vendored
1
test/.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
/gb-starter-kit/
|
||||
/LADX-Disassembly/
|
||||
/libbet/
|
||||
/pokecrystal/
|
||||
|
||||
@@ -9,6 +9,9 @@ endif()
|
||||
if(NOT USE_EXTERNAL_TESTS)
|
||||
set(ONLY_INTERNAL "--only-internal")
|
||||
endif()
|
||||
if(DEFINED OS)
|
||||
set(OS_NAME "--os" "${OS}")
|
||||
endif()
|
||||
|
||||
add_executable(randtilegen gfx/randtilegen.cpp)
|
||||
add_executable(rgbgfx_test gfx/rgbgfx_test.cpp)
|
||||
@@ -31,6 +34,6 @@ foreach(TARGET randtilegen rgbgfx_test)
|
||||
endforeach()
|
||||
|
||||
add_test(NAME all
|
||||
COMMAND ./run-tests.sh ${ONLY_FREE} ${ONLY_INTERNAL}
|
||||
COMMAND ./run-tests.sh ${ONLY_FREE} ${ONLY_INTERNAL} ${OS_NAME}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
@@ -91,7 +91,7 @@ case "$actionname" in
|
||||
|
||||
action() { # owner repo shallow-since commit
|
||||
if [ ! -d "$2" ]; then
|
||||
git clone "https://github.com/$1/$2.git" --shallow-since="$3" --single-branch
|
||||
git clone "https://github.com/$1/$2.git" --recursive --shallow-since="$3" --single-branch
|
||||
fi
|
||||
pushd "$2"
|
||||
git checkout -f "$4"
|
||||
@@ -111,6 +111,7 @@ if "$nonfree"; then
|
||||
action pret pokered 2025-06-29 1e997474be15950eb3176864b346b96504760e67
|
||||
action zladx LADX-Disassembly 2025-05-30 f685f6aaff2f2e0e36d1856d4ed8fd58f833a1f2
|
||||
fi
|
||||
action AntonioND ucity 2025-05-30 83e5c697cbd9e10a0bc72b02bcb6146c35e2c328
|
||||
action pinobatch libbet 2025-05-20 bb6cfc026644aa1034eee6d9c49bb4705601c9f6
|
||||
action LIJI32 SameBoy 2025-06-28 33d237706e18d92fb79e3fd7313d5181d8a806cd
|
||||
action AntonioND ucity 2025-05-30 83e5c697cbd9e10a0bc72b02bcb6146c35e2c328
|
||||
action pinobatch libbet 2025-05-20 bb6cfc026644aa1034eee6d9c49bb4705601c9f6
|
||||
action LIJI32 SameBoy 2025-06-28 33d237706e18d92fb79e3fd7313d5181d8a806cd
|
||||
action ISSOtm gb-starter-kit 2025-06-13 3cce3215b0bcb559a5cf4ca5916e2d817d53ff29
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
export LC_ALL=C
|
||||
|
||||
# Game Boy release date, 1989-04-21T12:34:56Z (for reproducible test results)
|
||||
export SOURCE_DATE_EPOCH=609165296
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
usage() {
|
||||
@@ -20,6 +25,7 @@ nonfree=true
|
||||
internal=true
|
||||
external=true
|
||||
installedrgbds=false
|
||||
osname=
|
||||
FETCH_TEST_DEPS="fetch-test-deps.sh"
|
||||
RGBDS_PATH="RGBDS=../../"
|
||||
while [[ $# -gt 0 ]]; do
|
||||
@@ -43,6 +49,10 @@ while [[ $# -gt 0 ]]; do
|
||||
installedrgbds=true
|
||||
RGBDS_PATH=
|
||||
;;
|
||||
--os)
|
||||
shift
|
||||
osname="$1"
|
||||
;;
|
||||
--)
|
||||
break
|
||||
;;
|
||||
@@ -122,3 +132,8 @@ fi
|
||||
test_downstream AntonioND ucity all ucity.gbc d2f4a7db48ee208b1bd69a78bd492a1c9ac4a030
|
||||
test_downstream pinobatch libbet all libbet.gb f117089aa056600e2d404bbcbac96b016fc64611
|
||||
test_downstream LIJI32 SameBoy bootroms build/bin/BootROMs/cgb_boot.bin 113903775a9d34b798c2f8076672da6626815a91
|
||||
# gb-starter kit make fails on Windows: https://github.com/ISSOtm/gb-starter-kit/issues/1
|
||||
# gb-starter-kit fails with macOS/BSD make: https://github.com/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
|
||||
|
||||
Reference in New Issue
Block a user