1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-02 21:54:47 +00:00
cc65/test
Oliver Schmidt 4a6bca0b56 Run test for the 65C02 code generator / runtime too.
Now that sim65's 65C02 support is actually functional we can run test for the 65C02 support in the compiler and the runtime.

We learn the hard way this is a good idea as there are tests failing when built with optimizations for the 65C02:
- val/compare7
- val/compare8
- val/compare9
- val/compare10
- val/or1
2017-03-19 20:07:19 +01:00
..
asm Shortened test subdir names. 2017-03-19 17:57:25 +01:00
dasm Shortened test subdir names. 2017-03-19 17:57:25 +01:00
err Cleaned up test Makefiles. 2017-03-19 17:48:44 +01:00
misc Run test for the 65C02 code generator / runtime too. 2017-03-19 20:07:19 +01:00
ref Run test for the 65C02 code generator / runtime too. 2017-03-19 20:07:19 +01:00
val Run test for the 65C02 code generator / runtime too. 2017-03-19 20:07:19 +01:00
.gitignore
bdiff.c
Makefile Shortened test subdir names. 2017-03-19 17:57:25 +01:00
readme.txt added note on how to continue after failure, added missing limits.ref 2014-11-26 14:22:22 +01:00

This directory contains test code for automatic regression testing of the CC65
compiler.


/val  - the bulk of tests are contained here, individual tests should exit with
        an exit code of EXIT_SUCCESS when they pass, or EXIT_FAILURE on error

/ref  - these tests produce output that must be compared with reference output

/err  - contains tests that MUST NOT compile

/misc - a few tests that need special care of some sort


to run the tests use "make" in this (top) directory, the makefile should exit
with no error.

when a test failed you can use "make continue" to run further tests

--------------------------------------------------------------------------------

TODO:

- reduce usage of "common.h" to a minimum
- convert more tests from using reference output to returning an exit code