Adding ark tests

This commit is contained in:
SergioMartin86 2024-08-08 18:06:51 +02:00
parent afc0c273c5
commit 482687539e
4 changed files with 38 additions and 3 deletions

View File

@ -156,7 +156,7 @@ int main(int argc, char *argv[])
if (jaffarCommon::file::loadStringFromFile(sequenceRaw, sequenceFilePath) == false) JAFFAR_THROW_LOGIC("[ERROR] Could not find or read from input sequence file: %s\n", sequenceFilePath.c_str()); if (jaffarCommon::file::loadStringFromFile(sequenceRaw, sequenceFilePath) == false) JAFFAR_THROW_LOGIC("[ERROR] Could not find or read from input sequence file: %s\n", sequenceFilePath.c_str());
// Building sequence information // Building sequence information
const auto sequence = jaffarCommon::string::split(sequenceRaw, ' '); const auto sequence = jaffarCommon::string::split(sequenceRaw, '\n');
// Getting sequence lenght // Getting sequence lenght
const auto sequenceLength = sequence.size(); const auto sequenceLength = sequence.size();

View File

@ -4,7 +4,7 @@
"Initial State File": "", "Initial State File": "",
"Sequence File": "arkanoid.arkNESController.sol", "Sequence File": "arkanoid.arkNESController.sol",
"Disable State Blocks": [ "SRAM", "CHRR", "NTAB", "SPRT", "MAPR", "CTRL", "APUR" ], "Disable State Blocks": [ "SRAM", "CHRR", "NTAB", "SPRT", "MAPR", "CTRL", "APUR" ],
"Controller 1 Type": "Joypad", "Controller 1 Type": "ArkanoidNES",
"Controller 2 Type": "None", "Controller 2 Type": "None",
"Differential Compression": "Differential Compression":
{ {

View File

@ -0,0 +1,15 @@
{
"Rom File": "roms/Arkanoid II (J) [!].nes",
"Expected ROM SHA1": "79F9D3DA1904400832546216833978A2261313A5",
"Initial State File": "",
"Sequence File": "arkanoid2.arkFamicomController.sol",
"Disable State Blocks": [ "SRAM", "CHRR", "NTAB", "SPRT", "MAPR", "CTRL", "APUR" ],
"Controller 1 Type": "ArkanoidFamicom",
"Controller 2 Type": "None",
"Differential Compression":
{
"Enabled": false,
"Max Differences": 2200,
"Use Zlib": true
}
}

View File

@ -91,4 +91,24 @@ if get_option('onlyOpenSource') == false
timeout: testTimeout, timeout: testTimeout,
args : [ testFile, '--cycleType', 'Full'], args : [ testFile, '--cycleType', 'Full'],
suite : [ testSuite ]) suite : [ testSuite ])
testFile = 'arkanoid.arkNESController.test'
testSuite = testFile.split('.')[0]
testName = testFile.split('.')[1]
test(testName,
quickerNESTester,
workdir : meson.current_source_dir(),
timeout: testTimeout,
args : [ testFile, '--cycleType', 'Full'],
suite : [ testSuite ])
testFile = 'arkanoid2.arkFamicomController.test'
testSuite = testFile.split('.')[0]
testName = testFile.split('.')[1]
test(testName,
quickerNESTester,
workdir : meson.current_source_dir(),
timeout: testTimeout,
args : [ testFile, '--cycleType', 'Full'],
suite : [ testSuite ])
endif endif