aboutsummaryrefslogtreecommitdiff
path: root/scripts/test-e2e.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test-e2e.sh')
-rwxr-xr-xscripts/test-e2e.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh
index 9d71152..9ac7d04 100755
--- a/scripts/test-e2e.sh
+++ b/scripts/test-e2e.sh
@@ -8,10 +8,15 @@ mkdir -p out/
rm -rf code.nes
tar xzf code.nes.tar.gz
+
+rm -rf aoc2023.nes
+tar xzf aoc2023.nes.tar.gz
popd
cargo build
+# code.nes
+
./target/debug/nasm -c nrom -Werror -o tests/out/sprite.nes tests/code.nes/basics/sprite.s
diff tests/out/sprite.nes tests/code.nes/out/basics/sprite.nes
@@ -23,3 +28,10 @@ diff tests/out/flicker.nes tests/code.nes/out/basics/flicker.nes
./target/debug/nasm -c nrom -Werror -o tests/out/space.nes tests/code.nes/space/src/space.s
diff tests/out/space.nes tests/code.nes/out/space/space.nes
+
+# aoc2023.nes
+
+./target/debug/nasm -c tests/aoc2023.nes/config/nes.cfg -o tests/out/1.nes tests/aoc2023.nes/src/1.s
+./target/debug/nasm -c tests/aoc2023.nes/config/nes.cfg -o tests/out/2.nes tests/aoc2023.nes/src/2.s
+./target/debug/nasm -c tests/aoc2023.nes/config/nes.cfg -o tests/out/3.nes tests/aoc2023.nes/src/3.s
+./target/debug/nasm -c tests/aoc2023.nes/config/nes.cfg -o tests/out/4.nes tests/aoc2023.nes/src/4.s