diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-03 21:31:31 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-03 21:40:46 +0200 |
| commit | e0b1faf993bab97288540769f6f5f7955b3e0996 (patch) | |
| tree | 862130ab64adefc17b7796eb6ed53dcdd581c065 /scripts | |
| parent | 9dcbf460ff692c049e4d327afcbdbc39ba4e8c65 (diff) | |
| download | tools.nes-e0b1faf993bab97288540769f6f5f7955b3e0996.tar.gz tools.nes-e0b1faf993bab97288540769f6f5f7955b3e0996.zip | |
Add a check for variable names
This check ensures that asan-friendly names actually match their
expected scope.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/test-e2e.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index ab7312b..1c94cfd 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -61,6 +61,11 @@ echo "test: custom => bare_accesses.nes" diff tests/out/bare_accesses.txt tests/expected/bare_accesses.txt exit_code=$((exit_code + $?)) +echo "test: custom => variable_names.nes" +./target/debug/nasm -c empty --asan tests/variable_names.s 2>tests/out/variable_names.txt +diff tests/out/variable_names.txt tests/expected/variable_names.txt +exit_code=$((exit_code + $?)) + ## # code.nes |
