diff options
Diffstat (limited to 'scripts/test-e2e.sh')
| -rwxr-xr-x | scripts/test-e2e.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 21c4c7f..0cf37f0 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -154,6 +154,21 @@ exit_code=$((exit_code + $?)) diff tests/out/out.nes tests/expected/out.nes exit_code=$((exit_code + $?)) +echo "test: custom => conditionally_include.nes" +# No DEBUG +./target/debug/nasm -c empty -Werror --asan -o tests/out/conditionally_include.nes tests/conditionally_include.s 2> tests/out/conditionally_include.txt +diff tests/out/conditionally_include.txt tests/expected/conditionally_include.txt +exit_code=$((exit_code + $?)) +diff tests/out/conditionally_include.nes tests/expected/conditionally_include.nes +exit_code=$((exit_code + $?)) + +# With DEBUG +./target/debug/nasm -c empty -Werror --asan -o tests/out/conditionally_include_debug.nes -D DEBUG=1 tests/conditionally_include.s 2> tests/out/conditionally_include_debug.txt +diff tests/out/conditionally_include_debug.txt tests/expected/conditionally_include_debug.txt +exit_code=$((exit_code + $?)) +diff tests/out/conditionally_include_debug.nes tests/expected/conditionally_include_debug.nes +exit_code=$((exit_code + $?)) + ## # code.nes |
