aboutsummaryrefslogtreecommitdiff
path: root/scripts/test-e2e.sh
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-08 12:34:47 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-09 16:01:39 +0100
commit8b1c270910fce13077864bf39d6e88971a6eb062 (patch)
tree2a441b58d46905f680749c1c074e9b55a27f0d6e /scripts/test-e2e.sh
parent4f5710aa516ab149d132cdb5863db08f08c10563 (diff)
downloadtools.nes-8b1c270910fce13077864bf39d6e88971a6eb062.tar.gz
tools.nes-8b1c270910fce13077864bf39d6e88971a6eb062.zip
Implement the .include statement
This needed some heavy lifting when it comes to how files were located. This means that statements like .include/.incbin now take into consideration a new list made out of SourceInfo, which holds enough information to translate from which file a node comes from. This has also been added into errors, so they are more informative on what went wrong. In order to tests this, besides all the regular unit tests, a new e2e test has been added. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'scripts/test-e2e.sh')
-rwxr-xr-xscripts/test-e2e.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh
index 89e787c..3f8729c 100755
--- a/scripts/test-e2e.sh
+++ b/scripts/test-e2e.sh
@@ -12,3 +12,6 @@ diff tests/out/sprite.nes tests/bin/sprite.nes
./target/debug/nasm -c unrom -o tests/out/chr-ram.nes tests/src/chr-ram.s
diff tests/out/chr-ram.nes tests/bin/chr-ram.nes
+
+./target/debug/nasm -c nrom -Werror -o tests/out/flicker.nes tests/src/flicker/flicker.s
+diff tests/out/flicker.nes tests/bin/flicker.nes