test(rom): add role-based ROM selection

This commit is contained in:
scawful
2025-12-22 14:49:04 -05:00
parent df866b3f7f
commit 42ae359abc
30 changed files with 488 additions and 265 deletions

View File

@@ -16,7 +16,7 @@ namespace test {
* as single operations when the PC is at a JSR/JSL instruction.
*/
void E2ETest_EmulatorStepOver(ImGuiTestContext* ctx) {
gui::LoadRomInTest(ctx, "zelda3.sfc");
gui::LoadRomInTest(ctx, yaze::test::TestRomManager::GetTestRomPath());
// Open emulator
ctx->SetRef("Yaze");
@@ -61,7 +61,7 @@ void E2ETest_EmulatorStepOver(ImGuiTestContext* ctx) {
* subroutine returns (RTS/RTL).
*/
void E2ETest_EmulatorStepOut(ImGuiTestContext* ctx) {
gui::LoadRomInTest(ctx, "zelda3.sfc");
gui::LoadRomInTest(ctx, yaze::test::TestRomManager::GetTestRomPath());
ctx->SetRef("Yaze");
ctx->MenuClick("Emulation/Launch Emulator");
@@ -95,7 +95,7 @@ void E2ETest_EmulatorStepOut(ImGuiTestContext* ctx) {
* across JSR/JSL calls and RTS/RTL returns.
*/
void E2ETest_EmulatorCallStackTracking(ImGuiTestContext* ctx) {
gui::LoadRomInTest(ctx, "zelda3.sfc");
gui::LoadRomInTest(ctx, yaze::test::TestRomManager::GetTestRomPath());
ctx->SetRef("Yaze");
ctx->MenuClick("Emulation/Launch Emulator");
@@ -138,7 +138,7 @@ void E2ETest_EmulatorCallStackTracking(ImGuiTestContext* ctx) {
* This test verifies running execution until a specific address is reached.
*/
void E2ETest_EmulatorRunToAddress(ImGuiTestContext* ctx) {
gui::LoadRomInTest(ctx, "zelda3.sfc");
gui::LoadRomInTest(ctx, yaze::test::TestRomManager::GetTestRomPath());
ctx->SetRef("Yaze");
ctx->MenuClick("Emulation/Launch Emulator");
@@ -168,7 +168,7 @@ void E2ETest_EmulatorRunToAddress(ImGuiTestContext* ctx) {
* for AI-driven analysis or automation.
*/
void E2ETest_EmulatorInstructionCallback(ImGuiTestContext* ctx) {
gui::LoadRomInTest(ctx, "zelda3.sfc");
gui::LoadRomInTest(ctx, yaze::test::TestRomManager::GetTestRomPath());
ctx->SetRef("Yaze");
ctx->MenuClick("Emulation/Launch Emulator");