1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00
cc65/test/asm
Spiro Trikaliotis d7a804d120 Split stdin and stdout in test/asm/
Some tests pipe the stdout and stderr of the compiler or assembler into
a file and compare the result with a reference. This has the subtle
problem that both stdout and stderr and buffered i/o streams that may or
may not work the same on different OSs or even shells. That means the
order of the lines in the resulting file is not guaranteed.

In practise it is "mostly" not an issue, but "we" still stumbled about
one test where different behaviour can be triggered depending on running
it in cmd.exe or bash (msys): test/asm/listing output of
010-paramcount.bin differs from the reference output when running the
test from cmd.exe.

The solution is most likely to have two reference files and not redirect
into one file.

This patch fixes the issue (cf. #1912) for the directory test/asm/.
2022-11-12 23:12:25 +01:00
..
cpudetect Add proper readmes 2022-02-20 11:20:20 +01:00
err simple test related to #1678 2022-05-09 21:27:21 +02:00
listing Split stdin and stdout in test/asm/ 2022-11-12 23:12:25 +01:00
opcodes Add proper readmes 2022-02-20 11:20:20 +01:00
val simple test related to issue #1655 2022-08-11 00:04:36 +02:00
Makefile added a test that must fail 2022-04-26 17:07:57 +02:00
readme.txt added a test that must fail 2022-04-26 17:07:57 +02:00

Assembler Testcases
===================

Opcode Tests:
-------------

these go into opcodes/. Refer to opcodes/readme.txt


CPU Detect Tests
----------------

these go into cpudetect/. Refer to cpudetect/readme.txt


Overall tests:
--------------

These go into listing/. Refer to listing/readme.txt

val:
----

Works very much like the /val directory used to test the compiler -  individual
tests are run in the simulator and should exit with an exit code of 0 when they
pass, or either -1 or a number indicating what part of the test failed on error.

err:
----

Works very much like the /err directory used to test the compiler - individual
tests are assembled and MUST NOT assemble without error.