Skip to content

Commit

Permalink
tests: Add aoc2023.nes to end-to-end tests
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Sabaté Solà <[email protected]>
  • Loading branch information
mssola committed Jan 22, 2025
1 parent 98a0845 commit e3e54cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Binary file added tests/aoc2023.nes.tar.gz
Binary file not shown.

0 comments on commit e3e54cf

Please sign in to comment.