mirror of
https://github.com/HackerN64/HackerOoT.git
synced 2026-01-21 10:37:37 -08:00
HackerTestSuite support (#184)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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`
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
3
Makefile
3
Makefile
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5123,3 +5123,7 @@ beginseg
|
||||
number 3
|
||||
endseg
|
||||
#endif
|
||||
|
||||
#if TESTSUITE_MODE
|
||||
#include "testsuite.inc"
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user