Upoloading open source test games

This commit is contained in:
Sergio Martin 2024-01-20 08:42:22 +01:00
parent 0766979902
commit 7530b51ab0
13 changed files with 50095 additions and 2 deletions

View File

@ -20,7 +20,7 @@ jobs:
- name: Installing meson and ninja - name: Installing meson and ninja
run: python3 -m pip install meson ninja run: python3 -m pip install meson ninja
- name: Run meson configuration - name: Run meson configuration
run: meson setup build run: meson setup build -DonlyOpenSource=true
- name: Building project - name: Building project
run: ninja -C build run: ninja -C build
- name: Running tests - name: Running tests

View File

@ -5,6 +5,13 @@ option('buildPlayer',
yield: true yield: true
) )
option('onlyOpenSource',
type : 'boolean',
value : false,
description : 'Test using only open source games (for cloud CI)',
yield: true
)
option('CPUFunctionAlignment', option('CPUFunctionAlignment',
type : 'integer', type : 'integer',
min : 1, min : 1,

View File

@ -4,6 +4,8 @@ bash = find_program('bash')
testCommands = ['../run_test.sh', quickerNESTester.path(), quickNESTester.path() ] testCommands = ['../run_test.sh', quickerNESTester.path(), quickNESTester.path() ]
testTimeout = 120 testTimeout = 120
if get_option('onlyOpenSource') == false
subdir('arkanoid') subdir('arkanoid')
subdir('castlevania1') subdir('castlevania1')
subdir('superOffroad') subdir('superOffroad')
@ -19,4 +21,10 @@ subdir('saintSeiyaOugonDensetsu')
subdir('saintSeiyaKanketsuHen') subdir('saintSeiyaKanketsuHen')
subdir('superMarioBros') subdir('superMarioBros')
subdir('superMarioBros3') subdir('superMarioBros3')
subdir('saiyuukiWorld') subdir('saiyuukiWorld')
endif
# Open source games
subdir('sprilo')
subdir('novaTheSquirrel')

View File

@ -0,0 +1,7 @@
Nova The Squirrel is a open-source free game. This rom was obtained from
https://github.com/NovaSquirrel/NovaTheSquirrel
https://novasquirrel.itch.io/nova-the-squirrel
We use the movie https://tasvideos.org/5246M by Cephla distributed under the CC2.0 license

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
{
"Rom File": "nova.nes",
"Expected ROM SHA1": "B6B07EE76492ED475F39167C89B342353F999231",
"Initial State File": "",
"Sequence File": "anyPercent.sol"
}

View File

@ -0,0 +1,4 @@
game = 'novaTheSquirrel'
goal = 'anyPercent'
test(goal, bash, workdir : meson.current_source_dir(), timeout: testTimeout, args : [ testCommands, goal + '.test', '--cycleType', 'Full'], suite: [ game, goal ] )

Binary file not shown.

7
tests/sprilo/README.md Normal file
View File

@ -0,0 +1,7 @@
Sprilo is a open-source free game. This rom was obtained from
https://itch.io/jam/game-off-2017
https://github.com/cbrwn/gameoff
We use the movie https://tasvideos.org/3557G by MrTASer distributed under the CC2.0 license

4572
tests/sprilo/anyPercent.sol Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
{
"Rom File": "sprilo.nes",
"Expected ROM SHA1": "6EC09B9B51320A536A786D3D4719432B714C5779",
"Initial State File": "",
"Sequence File": "anyPercent.sol"
}

4
tests/sprilo/meson.build Normal file
View File

@ -0,0 +1,4 @@
game = 'sprilo'
goal = 'anyPercent'
test(goal, bash, workdir : meson.current_source_dir(), timeout: testTimeout, args : [ testCommands, goal + '.test', '--cycleType', 'Full'], suite: [ game, goal ] )

BIN
tests/sprilo/sprilo.nes Normal file

Binary file not shown.