diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-09-06 22:55:50 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-09-06 22:55:50 +0200 |
| commit | 2d61e42fab657d61212a7aff1ecacbd674be8cda (patch) | |
| tree | f8064b630e1caa4b6e329ab1dcc72b14f0f5c8d5 /scripts | |
| parent | 076b1b31f37b37560382545d424ee063903b6b31 (diff) | |
| download | tools.nes-2d61e42fab657d61212a7aff1ecacbd674be8cda.tar.gz tools.nes-2d61e42fab657d61212a7aff1ecacbd674be8cda.zip | |
tests: add a test on branching instructions
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/test-e2e.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index be43685..573a729 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -294,6 +294,12 @@ echo "test: runrom => cmp.nes" diff tests/out/cmp.txt tests/expected/runrom/cmp.txt exit_code=$((exit_code + $?)) +echo "test: runrom => branching.nes" +./target/debug/nasm -Werror --asan -o tests/out/branching.nes tests/runrom/branching.s +./target/debug/runrom --function --dump-memory tests/out/branching.nes > tests/out/branching.txt +diff tests/out/branching.txt tests/expected/runrom/branching.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 |
