diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-13 16:13:40 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-13 16:15:07 +0100 |
| commit | 52bab4714b8f9301e4ad2a8c5dddf0787b8698f2 (patch) | |
| tree | 597e77ca4d0c9ab1838826913dbfdff26fb53b92 /scripts | |
| parent | 5f48de69f46d4da27b22c47178b2e6216f7a7801 (diff) | |
| download | tools.nes-52bab4714b8f9301e4ad2a8c5dddf0787b8698f2.tar.gz tools.nes-52bab4714b8f9301e4ad2a8c5dddf0787b8698f2.zip | |
tests: Update code.nes so -Werror can be passed
Update the underlying code.nes test data so it uses a tighter
configuration for NROM which in turn frees nasm from complaining about
empty segments. This makes room to allo for -Werror so we catch warnings
that might appear in the future.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/test-e2e.sh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 554e3bb..9d71152 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -3,26 +3,23 @@ set -ex pushd tests - rm -rf out/ mkdir -p out/ -if [ ! -d code.nes ]; then - tar xzvf code.nes.tar.gz -fi - +rm -rf code.nes +tar xzf code.nes.tar.gz popd cargo build -./target/debug/nasm -c nrom65 -o tests/out/sprite.nes tests/code.nes/basics/sprite.s +./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 -./target/debug/nasm -c unrom -o tests/out/chr-ram.nes tests/code.nes/basics/chr-ram.s +./target/debug/nasm -c unrom -Werror -o tests/out/chr-ram.nes tests/code.nes/basics/chr-ram.s diff tests/out/chr-ram.nes tests/code.nes/out/basics/chr-ram.nes -./target/debug/nasm -c nrom65 -o tests/out/flicker.nes tests/code.nes/basics/flicker.s +./target/debug/nasm -c nrom -Werror -o tests/out/flicker.nes tests/code.nes/basics/flicker.s diff tests/out/flicker.nes tests/code.nes/out/basics/flicker.nes -./target/debug/nasm -c nrom65 -o tests/out/space.nes tests/code.nes/space/src/space.s +./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 |
