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

@@ -1,6 +1,10 @@
#include <gtest/gtest.h>
#include <string>
#include "rom/rom.h"
#include "app/gfx/types/snes_palette.h"
#include "test/test_utils.h"
#include "util/log.h"
namespace yaze {
@@ -10,7 +14,10 @@ namespace test {
TEST(DungeonPaletteInspection, VerifyColors) {
// Load ROM
Rom rom;
auto load_result = rom.LoadFromFile("zelda3.sfc");
TestRomManager::SkipIfRomMissing(RomRole::kVanilla,
"DungeonPaletteInspection");
const std::string rom_path = TestRomManager::GetRomPath(RomRole::kVanilla);
auto load_result = rom.LoadFromFile(rom_path);
if (!load_result.ok()) {
GTEST_SKIP() << "ROM file not found, skipping palette inspection";
}