From 7feba90e6bec87796a39e53bec81647c64bfd7dc Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 26 Aug 2026 08:09:16 +0200 Subject: runrom: add tests for --start and --until-address 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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts') diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 6e18644..4496d85 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -282,6 +282,20 @@ echo "test: runrom => arithlog.nes" diff tests/out/arithlog.txt tests/expected/runrom/arithlog.txt exit_code=$((exit_code + $?)) +echo "test: runrom => misc.nes" +./target/debug/nasm -Werror --asan --write-info --allow-unused --out tests/out/misc.nes tests/runrom/misc.s +./target/debug/runrom --nasm .nasm --dump-memory --function tests/out/misc.nes > tests/out/misc-all.txt +diff tests/out/misc-all.txt tests/expected/runrom/misc-all.txt +exit_code=$((exit_code + $?)) + +./target/debug/runrom --nasm .nasm --dump-memory --function --start 'foo::@loop' --until-address '$8007' tests/out/misc.nes > tests/out/misc-inx.txt +diff tests/out/misc-inx.txt tests/expected/runrom/misc-inx.txt +exit_code=$((exit_code + $?)) + +./target/debug/runrom --nasm .nasm --dump-memory --function --start foo --until-address foo::@end_loop tests/out/misc.nes > tests/out/misc-foo.txt +diff tests/out/misc-foo.txt tests/expected/runrom/misc-foo.txt +exit_code=$((exit_code + $?)) + ## # Done! -- cgit v1.2.3