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
mrdudz
abe1926a48
remove useless if
2022-11-12 22:55:17 +01:00
mrdudz
fd070c9b79
fix ternary operator
2022-11-12 19:08:03 +01:00
acqn
7b436e9823
Added tests for #1895 fix.
2022-11-13 01:01:24 +08:00
mrdudz
69b3659924
fix conversion of float to chars
2022-11-12 17:41:52 +01:00
acqn
cc177208b4
Added tests for diagnostics in unevaluated context.
2022-11-12 21:05:01 +08:00
mrdudz
694561e917
fix comparing float const vs const
2022-11-12 02:44:01 +01:00
mrdudz
62e211553b
fix comparing float variable agains float constants
2022-11-12 02:04:29 +01:00
mrdudz
af15ce8223
some cleanup, make testcompiles of the tests with gcc work again
2022-11-12 02:03:23 +01:00
mrdudz
9cdd74e2f1
Merge branch 'master' into fptest
2022-11-11 21:45:04 +01:00
Bob Andrews
ace39197e5
move test to test/ref
2022-11-11 21:22:20 +01:00
Bob Andrews
9c48c0ab8a
Merge pull request #1900 from acqn/Diagnostics
...
[cc65] Fixed endlessly repeated error messages when a declaration lacks a required identifier
2022-11-11 21:08:53 +01:00
Bob Andrews
ebb33ee8b4
fix problem with copy command in cmd.exe
2022-11-11 20:54:38 +01:00
mrdudz
6c5807001b
add failing tests in test/todo
2022-11-11 00:52:42 +01:00
acqn
9253f0d6bc
Added testcase for #1889 .
2022-11-10 02:11:54 +08:00
mrdudz
c5728626b0
space!
2022-11-09 02:50:54 +01:00
mrdudz
f55b9ce37e
spaces
2022-11-09 02:48:14 +01:00
mrdudz
bbe46bb883
move float libss into libsrc/float, move tests into the correct dirs for the testbench, move includes to toplevel include dir
2022-11-09 02:45:07 +01:00
mrdudz
a09053ce0b
make test work again also on linux. why did this not break the github actions?
2022-11-09 01:07:36 +01:00
mrdudz
4a8c13fd93
Merge branch 'master' into fptest
2022-11-05 20:43:47 +01:00
mrdudz
bf924395fb
fix some bashisms, hopefully makes "check" work again in cmd.exe
2022-11-05 19:41:02 +01:00
Bob Andrews
53b62184e8
Merge pull request #1905 from acqn/DeclFix
...
[cc65] Fixed some missing declaration features
2022-11-05 16:03:09 +01:00
acqn
e608f8a94f
Renamed several tests.
2022-11-05 18:30:02 +08:00
mrdudz
79fd078ae3
add check for line endings containing CR.
2022-11-03 18:27:10 +01:00
mrdudz
cc450706d1
testcase related to bug #1888
2022-11-03 18:03:47 +01:00
mrdudz
44b2e4f331
added examples for tests that compare the compiler output with a reference
2022-11-03 17:40:13 +01:00
acqn
8a7f566387
Fixed support for storage class specifiers after type specifiers.
2022-11-03 21:46:42 +08:00
acqn
991af3755b
Added support for _Static_assert in unions.
2022-11-03 21:46:41 +08:00
Lauri Kasanen
9aae1efd03
Add a da65 65186 test
2022-11-03 08:17:51 +02:00
Bob Andrews
0eba33ee74
Merge pull request #1897 from acqn/TernaryFix
...
[cc65] Fixed errors in the conditional operator "? :" parser
2022-11-02 18:13:45 +01:00
Bob Andrews
37efb40c69
Merge pull request #1898 from acqn/PPFix
...
[cc65] Fixed '\\' + newline
2022-11-02 18:09:04 +01:00
acqn
deb5e97732
Fixed diagnostic messages on enumerator overflow.
...
An enumerator that would be incremented greater than ULONG_MAX now causes an error.
2022-11-02 14:22:21 +08:00
acqn
8fb2576626
Fixed processing '\\' followed with a newline and line number output (-E) with it.
2022-11-02 14:09:15 +08:00
acqn
d84cc2d122
Fixed errors in the conditional operator "? :" parser.
2022-11-02 13:56:55 +08:00
Lauri Kasanen
1e6279aee5
Clarify sprintf-test's output so it doesn't look like the entire test bench summary
2022-10-12 18:38:33 +03:00
Bob Andrews
a169e67e43
Merge pull request #1863 from acqn/LinkageFix
...
[cc65] Fixed symbol visibility and usage problems with extern/static declarations
2022-10-09 18:59:12 +02:00
acqn
9eab36b95a
Fixed block-scope extern declarations visibility.
...
Fixed missing file-scope static function codegen output in a rare care.
2022-09-30 14:32:08 +08:00
acqn
f6003b8e8c
Renamed some testcases.
2022-09-30 09:41:54 +08:00
acqn
1cbd6bc3f9
Fixed comments in test/val/bug1462-biefield-assign-4.c.
2022-09-29 18:23:41 +08:00
acqn
376afd0edb
Fixed trailing spaces in some testcases.
2022-09-29 18:23:32 +08:00
mrdudz
846d51db72
change line endings to unix style, should fix #1858
2022-09-22 20:29:57 +02:00
acqn
5e7d9b5fe3
Renamed a few testcases.
2022-09-18 22:29:41 +08:00
acqn
080ec131d8
Added testcase for constant operands with side-effects.
2022-09-18 22:29:30 +08:00
acqn
16ba232d08
Fixed some testcases.
2022-09-18 22:29:01 +08:00
mrdudz
c8cdc1dc60
fix whitespace
2022-09-18 00:36:30 +02:00
mrdudz
163f0d447d
fix/update the float tests
2022-09-18 00:33:48 +02:00
mrdudz
4e61599779
fix rounding when converting to 16bit ints
2022-09-17 18:35:30 +02:00
mrdudz
3805c8754a
hack up something that prints correct decimal places even with the bugs in the compiler
2022-09-17 18:35:02 +02:00
mrdudz
7693b86d7d
fix ! operator
2022-09-17 16:54:09 +02:00
mrdudz
1f4f408572
correctly sign extend for 16bit->float conversion
2022-09-17 16:53:28 +02:00
mrdudz
13dd4e296f
guard some more things with ifdef DOUBLES, removes some warnings
2022-09-17 16:52:24 +02:00
mrdudz
09d383dd32
make compare functions fastcall
2022-09-17 16:51:11 +02:00
mrdudz
6fc2cd9f61
add test related to bug #1853
2022-09-17 14:42:18 +02:00
mrdudz
0f5122be2f
make tests "work" with softfloat
2022-09-13 23:26:09 +02:00
mrdudz
c3bebd40ce
Merge branch 'master' into fptest
2022-09-13 16:54:08 +02:00
acqn
dc001cb4be
Reverted E_ADDRESS_OF logic fix.
...
Added testcase.
2022-09-01 12:56:46 +08:00
mrdudz
5bda57de87
add extra underscore to _bzero, add a test for bzero/memset
2022-08-29 23:20:48 +02:00
mrdudz
ce6ee1b891
test some more possible cases and move test into test/val
2022-08-28 03:43:54 +02:00
mrdudz
f337843c71
Merge branch 'master' into fptest
2022-08-27 12:28:09 +02:00
mrdudz
9610f20fd7
Merge remote-tracking branch 'upstream/master' into fptest
2022-08-27 00:31:36 +02:00
Bob Andrews
d2628d5949
Merge pull request #1840 from acqn/FnParamFix
...
[cc65] Fixed function parameters declared as function types rather than function pointers
2022-08-26 23:19:55 +02:00
Bob Andrews
68610490c9
Merge pull request #1837 from acqn/PPLineFix
...
[cc65] Fixed predefined __FILE__, __LINE__ and added missing preprocessing directive #line
2022-08-26 23:12:59 +02:00
acqn
1dbc5cb325
Simple testcase for __LINE__, __FILE__ as well as #line.
2022-08-24 16:39:44 +08:00
acqn
26945c32ac
Fixed function parameters declared as function types rather than function pointers.
2022-08-24 15:30:52 +08:00
mrdudz
87b6ddd3e0
some cleanup, move everything we need into one directory
2022-08-23 15:12:02 +02:00
Bob Andrews
22ea30c75f
"cat" result to console on failure (only on *nix right now)
2022-08-23 11:56:05 +02:00
mrdudz
3c01489940
softfloat compiles and produces a working binary
2022-08-22 23:26:09 +02:00
mrdudz
69d5d4dcdd
add older release of the berkeley softfloat lib,
...
this one can work without 64bit types.
missing support for passing structs by value will need a bit of hackery
2022-08-21 22:57:43 +02:00
mrdudz
731695a606
Revert "added Berkeley softfloat library - lets see if this can be ported"
...
this version of the library requires 64bit types
This reverts commit e7d7ad7df0
.
2022-08-21 19:49:42 +02:00
mrdudz
e7d7ad7df0
added Berkeley softfloat library - lets see if this can be ported
2022-08-21 19:31:32 +02:00
mrdudz
034d414d00
Merge remote-tracking branch 'upstream/master' into fptest
...
# Conflicts:
# src/cc65/scanner.c
2022-08-21 18:10:11 +02:00
acqn
47ee543fe0
Added testcase for some part of PR #1833 .
2022-08-21 00:11:19 +08:00
Bob Andrews
12b9b10355
Merge pull request #1832 from acqn/PPDefineFix
...
[cc65] Preprocessor directive #define fixes
2022-08-20 14:27:25 +02:00
Bob Andrews
03421694b2
Merge pull request #1817 from acqn/PPFix
...
[cc65] More preprocessor fixes
2022-08-19 21:37:16 +02:00
mrdudz
c1fd3218df
add test related to pr #1799
2022-08-11 00:59:09 +02:00
mrdudz
f942c629d7
simple test related to issue #1655
2022-08-11 00:04:36 +02:00
acqn
ae811baaf1
Fixed the bug that redefined macros could co-exist but not all be undefined with a single #undef.
2022-08-06 18:21:42 +08:00
mrdudz
fb8de287be
test related to pr #1800
2022-07-28 01:50:54 +02:00
mrdudz
5164b88a27
test was moved to test/val
2022-07-26 17:21:33 +02:00
Bob Andrews
a41b76795a
Merge pull request #1807 from acqn/CharmapFix
...
[cc65] Fixed #pragma charmap for string literals
2022-07-26 17:19:58 +02:00
acqn
2f357ba9b2
Preprocessor directives can now appear in the argument list of function-like macro calls.
...
#pragma PP-tokens can now be macro replaced.
#include header names directly enclosed in <> are free of macro replacement.
Preprocess-only mode (-E) now outputs with #line as source info.
Moved testcases for #760 and #1357 .
Added testcase for #1643 .
2022-07-26 21:10:38 +08:00
acqn
9f767770ac
Added test case for #pragma charmap.
2022-07-26 15:19:48 +08:00
mrdudz
d03f28d0ed
dangling!
2022-07-24 23:52:53 +02:00
mrdudz
3c71455bd6
test related to issue #1373 , should be move to val in pr #1807
2022-07-24 23:49:45 +02:00
acqn
43d2fd2a96
Added support for the popular __COUNTER__ macro.
2022-07-24 23:19:05 +08:00
mrdudz
168f42bb83
fix whitespace
2022-08-27 02:14:52 +02:00
mrdudz
41b29d5c81
add testcase related to issue #1252
2022-08-27 02:10:02 +02:00
mrdudz
90b9438b48
added testcase related to issue #1768
2022-08-27 01:15:06 +02:00
mrdudz
77ce005d0a
more cleanup
2022-07-21 02:06:47 +02:00
mrdudz
63024cd056
cleanup
2022-07-21 00:54:53 +02:00
mrdudz
b9bdcc51e0
some cleanup
2022-07-21 00:51:28 +02:00
Spiro Trikaliotis
6b7d23ca74
isequal with --wildcard: Allow DOS/Win paths
...
Allow a colon (':') at the second position of a DOS or Windows path, so
a path with drive specifier (i.e., "c:") is recognized as a path of the
wildcard should end with a colon.
2022-06-22 21:23:44 +02:00
Spiro Trikaliotis
a7b2a92fc2
isequal: add --wildcards option
2022-06-21 22:23:10 +02:00
Spiro Trikaliotis
c738c94935
Debugging fix
2022-06-20 23:13:49 +02:00
Spiro Trikaliotis
0d7fba2332
More make test output for debugging
2022-06-20 23:10:32 +02:00
Spiro Trikaliotis
b5b3654017
Un-silence Make
2022-06-20 23:07:36 +02:00
Spiro Trikaliotis
aa64234707
Testcases for case
2022-06-20 23:03:12 +02:00
Spiro Trikaliotis
3a5fee75a3
Remove TAB for reference file, too
2022-06-20 22:57:20 +02:00
Spiro Trikaliotis
b816ee6676
Remove TABs again
2022-06-20 22:53:46 +02:00
Spiro Trikaliotis
b3846ee1c4
Complete check of ld65 output
...
ld65 output was only checked for listing build before. No, both builds
are tested separately for better test coverage.
2022-06-20 22:19:22 +02:00