diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-24 13:12:35 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-24 13:12:35 +0200 |
| commit | d95c68d8913d3ac434d86a681d215bd0da230b44 (patch) | |
| tree | 0d565504a2e32d8c8dee9b1ffbed571f7bf3b5b8 /scripts | |
| parent | 2cbd68f149919f34be90c5727e0a9359c21e9650 (diff) | |
| download | tools.nes-d95c68d8913d3ac434d86a681d215bd0da230b44.tar.gz tools.nes-d95c68d8913d3ac434d86a681d215bd0da230b44.zip | |
tests: add jetpac.nes to the end-to-end tests
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/test-e2e.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index ddb7b0a..b25b50b 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -192,6 +192,26 @@ $AS65 --no-errors -b ./target/debug/nasm -C tests/cfg/nrom65.cfg -o /dev/null te exit_code=$((exit_code + $?)) ## +# jetpac.nes + +echo "test: jetpac.nes" + +# Re-generate the config/generated.s file, which is usually built on a 'make +# build-*' target. +rm -f tests/jetpac.nes/config/generated.s +echo "HZ = 60" >> tests/jetpac.nes/config/generated.s +echo "LEVEL = 0" >> tests/jetpac.nes/config/generated.s + +# NOTE: we use '--stats' as otherwise the 'segments.txt' file would be removed +# from the jetpac.nes repository, and the submodule would then be marked with +# "-dirty". +$AS65 --no-errors --strict --stats -b ./target/debug/nasm -C tests/jetpac.nes/config/nrom.cfg -o /dev/null tests/jetpac.nes/src/jetpac.s 1>/dev/null + +# Remove the generated.s file to avoid git from thinking we have modified the +# project in any meaningful way. +rm -f tests/jetpac.nes/config/generated.s + +## # Done! exit $exit_code |
