From d95c68d8913d3ac434d86a681d215bd0da230b44 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 24 Apr 2026 13:12:35 +0200 Subject: tests: add jetpac.nes to the end-to-end tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- scripts/test-e2e.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'scripts') 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 @@ -191,6 +191,26 @@ echo "test: aoc2023.nes => 4.nes" $AS65 --no-errors -b ./target/debug/nasm -C tests/cfg/nrom65.cfg -o /dev/null tests/aoc2023.nes/src/4.s 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! -- cgit v1.2.3