-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport.py
More file actions
executable file
·28 lines (23 loc) · 777 Bytes
/
report.py
File metadata and controls
executable file
·28 lines (23 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python3
from subprocess import run
roms = [
"Action_JunoFirst_JunoFirst.V1.00.hex",
"Arcade%2FLasers%2F9489704cbaedb8fbfff8986d63eae61bdb0915d5.hex",
"hollow_v0.31.hex",
"Platformer%2FCastleBoy%2FCastleBoy.hex",
"Puzzle_tinytris_TinyTris.hex",
"Shooter_StarduinoTurob_game.hex",
"SRN_AB_v122.hex",
"unicorn_dash.hex",
]
run(['cargo', 'build', '--release', '--bin', 'report'], check=True, capture_output=True)
for rom in roms:
rom_file = 'roms/' + rom
replay_file = 'records/' + rom + '.txt'
run(['cargo', 'run', '--release', '--bin', 'report', '--',
rom_file,
'--frames_screenshot', '600',
'--replay_file', replay_file,
'--seconds', '60',
'reports',
], check=True)