2024-01-11 19:23:32 +00:00
|
|
|
nomalloc = environment({'MALLOC_PERTURB_': '0'})
|
|
|
|
|
2024-01-19 16:03:47 +00:00
|
|
|
bash = find_program('bash')
|
2024-01-20 18:39:31 +00:00
|
|
|
testCommands = ['run_test.sh', quickerNESTester.path(), quickNESTester.path() ]
|
2024-01-19 16:03:47 +00:00
|
|
|
testTimeout = 120
|
|
|
|
|
2024-01-20 18:39:31 +00:00
|
|
|
# Tests for copyrighted game roms (only for local testing or own CI runners)
|
|
|
|
protectedTestSet = [
|
|
|
|
'arkanoid.warpless.test',
|
|
|
|
'arkanoid.warps.test',
|
|
|
|
'castlevania1.anyPercent.test',
|
|
|
|
'castlevania1.pacifist.test',
|
|
|
|
'galaga.anyPercent.test',
|
|
|
|
'ironSword.anyPercent.test',
|
|
|
|
'metroid.playaround.test',
|
|
|
|
'nigelMansell.anyPercent.test',
|
|
|
|
'ninjaGaiden.anyPercent.test',
|
|
|
|
'ninjaGaiden.pacifist.test',
|
|
|
|
'ninjaGaiden2.anyPercent.test',
|
|
|
|
'ninjaGaiden2.pacifist.test',
|
|
|
|
'novaTheSquirrel.anyPercent.test',
|
|
|
|
'princeOfPersia.anyPercent.test',
|
|
|
|
'saintSeiyaKanketsuHen.anyPercent.test',
|
|
|
|
'saintSeiyaOugonDensetsu.anyPercent.test',
|
|
|
|
'saiyuukiWorld.anyPercent.test',
|
|
|
|
'saiyuukiWorld.lastHalf.test',
|
|
|
|
'solarJetman.anyPercent.test',
|
|
|
|
'sprilo.anyPercent.test',
|
|
|
|
'superMarioBros.warpless.test',
|
|
|
|
'superMarioBros.warps.test',
|
|
|
|
'superMarioBros3.warps.test',
|
|
|
|
'superOffroad.anyPercent.test',
|
|
|
|
'tennis.anyPercent.test',
|
|
|
|
]
|
2024-01-20 07:42:22 +00:00
|
|
|
|
2024-01-20 18:39:31 +00:00
|
|
|
# Tests for open source free roms (for public cloud testing)
|
|
|
|
openSourceTestSet = [
|
|
|
|
'novaTheSquirrel.anyPercent.test',
|
|
|
|
'sprilo.anyPercent.test',
|
|
|
|
]
|
2024-01-20 07:42:22 +00:00
|
|
|
|
2024-01-20 18:39:31 +00:00
|
|
|
# Creating test set based on whether copyrighted roms are to be used
|
|
|
|
testSet = openSourceTestSet
|
|
|
|
if get_option('onlyOpenSource') == false
|
|
|
|
testSet += protectedTestSet
|
2024-01-20 07:42:22 +00:00
|
|
|
endif
|
|
|
|
|
2024-01-20 18:39:31 +00:00
|
|
|
# Adding tests to the suite
|
|
|
|
foreach testFile : testSet
|
|
|
|
testSuite = testFile.split('.')[0]
|
|
|
|
testName = testFile.split('.')[1]
|
|
|
|
test(testName,
|
|
|
|
bash,
|
|
|
|
workdir : meson.current_source_dir(),
|
|
|
|
timeout: testTimeout,
|
|
|
|
args : [ testCommands, testFile, '--cycleType', 'Full'],
|
|
|
|
suite : [ testSuite ])
|
|
|
|
endforeach
|
|
|
|
|