HackerTestSuite support (#184)

This commit is contained in:
Yanis
2025-10-29 19:46:40 +01:00
committed by GitHub
parent aceec95e6b
commit dc0d327417
7 changed files with 24 additions and 0 deletions

3
.gitignore vendored
View File

@@ -37,6 +37,9 @@ tools/*dSYM/
graphs/
tools/Flips/**/CMakeLists.txt
# Test Suite files
testsuite*
# Per-user configuration
# If you want to use your own gitignore rules without modifying this file:
# - use `git config core.excludesFile path/to/my_gitignore_file`

View File

@@ -1,5 +1,8 @@
#### Compiling ####
TESTSUITE_MODE ?= 0
CPP_DEFINES += -DTESTSUITE_MODE=$(TESTSUITE_MODE)
# Returns the path to the command $(1) if exists. Otherwise returns an empty string.
find-command = $(shell which $(1) 2>/dev/null)

View File

@@ -637,6 +637,9 @@ $(ROM): $(ELF)
@$(PRINT) "${GREEN}Rom Path: $(BLUE)$(ROM)$(NO_COL)\n"
@$(PRINT) "${GREEN}Build Author: $(BLUE)$(PACKAGE_AUTHOR)$(NO_COL)\n"
@$(PRINT) "${GREEN}Commit Author: $(BLUE)$(PACKAGE_COMMIT_AUTHOR)$(NO_COL)\n"
ifeq ($(TESTSUITE_MODE),1)
@$(PRINT) "${GREEN}Made with HackerTestSuite$(NO_COL)\n"
endif
@$(PRINT) "${BLINK}Build succeeded.\n$(NO_COL)"
$(ROMC): $(ROM) $(ELF) $(BUILD_DIR)/compress_ranges.txt

View File

@@ -1951,3 +1951,7 @@
/* 0x616 */ DEFINE_ENTRANCE(ENTR_EXAMPLE_0_2, SCENE_EXAMPLE, 0, false, true, TRANS_TYPE_FADE_WHITE, TRANS_TYPE_FADE_WHITE)
/* 0x617 */ DEFINE_ENTRANCE(ENTR_EXAMPLE_0_3, SCENE_EXAMPLE, 0, false, true, TRANS_TYPE_FADE_WHITE, TRANS_TYPE_FADE_WHITE)
#endif
#if TESTSUITE_MODE
#include "testsuite/entrance_table.h"
#endif

View File

@@ -130,3 +130,7 @@
/* 0x6C */ DEFINE_SCENE(example_scene, none, SCENE_EXAMPLE, SDC_HAUNTED_WASTELAND, 0, 0)
#endif
#endif
#if TESTSUITE_MODE
#include "testsuite/scene_table.h"
#endif

View File

@@ -5123,3 +5123,7 @@ beginseg
number 3
endseg
#endif
#if TESTSUITE_MODE
#include "testsuite.inc"
#endif

View File

@@ -67,6 +67,9 @@ static const Color_RGBA8 sColors[] = {
};
static MapSelectEntry sScenes[] = {
#if TESTSUITE_MODE
#include "testsuite/map_select.h"
#endif
#if IS_DEBUG_BOOT_ENABLED
{ "Boot Menu", (void*)MapSelect_LoadDebugOpening, 0 },
#endif