From 2d61e42fab657d61212a7aff1ecacbd674be8cda Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 6 Sep 2026 22:55:50 +0200 Subject: tests: add a test on branching instructions 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 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3