test(nes): modularize and expand NES conformance test suite (290 tests)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// ponytail: simple stateless harness helpers without custom runner frameworks
|
||||
// simple stateless harness helpers without custom runner frameworks
|
||||
const std = @import("std");
|
||||
const testing = std.testing;
|
||||
const build_options = @import("build_options");
|
||||
@@ -12,7 +12,7 @@ pub fn loadRomAlloc(allocator: std.mem.Allocator, relative_path: []const u8) ![]
|
||||
return try dir.readFileAlloc(testing.io, relative_path, allocator, @enumFromInt(10 * 1024 * 1024));
|
||||
}
|
||||
|
||||
// ponytail: runRom asserts progress so test blocks can be concise 1-liners
|
||||
// runRom asserts progress so test blocks can be concise 1-liners
|
||||
pub fn runRom(relative_path: []const u8, frames: usize) !Nes {
|
||||
if (build_options.nes_test_roms_dir == null) return error.SkipZigTest;
|
||||
const rom_data = try loadRomAlloc(testing.allocator, relative_path);
|
||||
|
||||
Reference in New Issue
Block a user