diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-08-26 08:09:16 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-08-26 08:09:16 +0200 |
| commit | 7feba90e6bec87796a39e53bec81647c64bfd7dc (patch) | |
| tree | 93deaa26e0591b6a6bd33018284a4e7765b09f72 /scripts/test-e2e.sh | |
| parent | bf2b0122f20bb6ddc628b2b8f45de7e1943d139e (diff) | |
| download | tools.nes-7feba90e6bec87796a39e53bec81647c64bfd7dc.tar.gz tools.nes-7feba90e6bec87796a39e53bec81647c64bfd7dc.zip | |
runrom: add tests for --start and --until-address
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'scripts/test-e2e.sh')
| -rwxr-xr-x | scripts/test-e2e.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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! |
