1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-17 09:07:32 +00:00
cc65/test/asm/listing
2023-03-07 18:48:30 -05:00
..
control overwrite segment tests 2023-03-07 18:44:56 -05:00
ref overwrite segment tests 2023-03-07 18:44:56 -05:00
001-macro-simple-listing.s
002-macro-param-listing.s
010-paramcount.s
020-asciiz.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
030-assert-success.s Test cases for .assert warnings 2022-06-18 21:04:36 +02:00
031-assert-error.s Add more assert tests 2022-06-18 22:22:27 +02:00
032-assert-error2.s Add more assert tests 2022-06-18 22:22:27 +02:00
032-assert-error3.s More .assert testcases 2022-06-20 16:33:25 +02:00
032-assert-error4.s More .assert testcases 2022-06-20 16:33:25 +02:00
032-assert-error5.s More .assert testcases 2022-06-20 16:33:25 +02:00
032-assert-error6.s More .assert testcases 2022-06-20 16:33:25 +02:00
032-assert-error7.s More .assert testcases 2022-06-20 16:33:25 +02:00
032-assert-error8.s More .assert testcases 2022-06-20 16:33:25 +02:00
033-assert-ldwarning-success.s More assert tests 2022-06-20 22:16:55 +02:00
034-assert-lderror1.s More assert tests 2022-06-20 22:16:55 +02:00
034-assert-lderror2.s More assert tests 2022-06-20 22:16:55 +02:00
034-assert-lderror3.s More assert tests 2022-06-20 22:16:55 +02:00
034-assert-lderror4.s More assert tests 2022-06-20 22:16:55 +02:00
034-assert-lderror5.s More assert tests 2022-06-20 22:16:55 +02:00
034-assert-lderror6.s More assert tests 2022-06-20 22:16:55 +02:00
034-assert-lderror7.s More assert tests 2022-06-20 22:16:55 +02:00
034-assert-lderror8.s More assert tests 2022-06-20 22:16:55 +02:00
040-align.s Remove TABs again 2022-06-20 22:53:46 +02:00
050-case-off-2.s Testcases for case 2022-06-20 23:03:12 +02:00
050-case-off-3.s Testcases for case 2022-06-20 23:03:12 +02:00
050-case-off-4.s Testcases for case 2022-06-20 23:03:12 +02:00
050-case-on-1.s Testcases for case 2022-06-20 23:03:12 +02:00
050-case-on-2.s Testcases for case 2022-06-20 23:03:12 +02:00
050-case-on-3.s Testcases for case 2022-06-20 23:03:12 +02:00
050-case-on-4.s Testcases for case 2022-06-20 23:03:12 +02:00
050-case-on-5.s Testcases for case 2022-06-20 23:03:12 +02:00
100-byte.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
101-byt.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
102-word.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
103-dbyt.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
104-dword.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
105-faraddr.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
106-hibytes.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
107-lobytes.s Remove TAB to comply to style 2022-06-16 21:59:37 +02:00
108-long-rts.s test for all ca65 .feature options 2023-02-24 20:00:56 -05:00
109-brk-signature.s allow immedite style syntax variation for BRK signature byte 2023-02-25 08:23:47 -05:00
200-overwrite.cfg overwrite segment tests 2023-03-07 18:44:56 -05:00
200-overwrite.s overwrite segment tests 2023-03-07 18:44:56 -05:00
201-overwrite-overflow.cfg overwrite segment tests 2023-03-07 18:44:56 -05:00
201-overwrite-overflow.s overwrite segment tests 2023-03-07 18:44:56 -05:00
Makefile linkter test with custom config should not use none.lib 2023-03-07 18:48:30 -05:00
readme.txt overwrite segment tests 2023-03-07 18:44:56 -05:00

Overall test:
-------------

These testcases can be used to test different aspects of the assembler.
The name of a test is everything in the form <test>.s.

If a custom linker configuration is needed, also include <test>.cfg. 

The following reference files can be added:

- ref/<test>.bin-ref:
  This is a reference for the resulting binary.
  The binary as binary tested against this file.
  If they are not equal, the test fails.

- ref/<test>.list-ref
  This is a reference for the resulting listing output
  This file *must* have the first line of the listing removed, as that
  contains a ca65 version string, and almost always this will be changed!

- ref/<test>.err-ref
  This is a reference for the resulting ca65 stdout (>) output.

- ref/<test>.err2-ref
  This is a reference for the resulting ca65 stderr (2>) output.

- ref/<test>.ld65err-ref
  This is a reference for the resutling ld65 stdout (>) output.

- ref/<test>.ld65err2-ref
  This is a reference for the resulting ld65 stderr (2>) output.

The following control files can be added to control the tests.
These files are empty (contents ignored), and only the filename is used:

- control/<test>.err
  Test is expected to produce an error.

- control/<test>.no-ld65
  Skip the ld65 step.


Note that the resulting .bin file is generated twice: Once with no listing
file, and once with listing file. This way, one can find out if the listing
file generation changes anything with the resulting binary output.