Commit Graph

12 Commits

Author SHA1 Message Date
Chris Smowton 3b00bdc085 Fix tests with missing EXIT or SIGNAL tests
Some tests had previously been passing despite actually causing a crash, due
to the required output being too loosely specified. This ensures the bare minimum:
that every test has an expected EXIT code and SIGNAL result.

The codes suggested were taken from the test's current output, and only applied for
CORE tests, but hand inspection suggests these choices are reasonable.
2018-03-23 11:37:53 +00:00
Michael Tautschnig 3321735dc7 Move implementation of failed-tests-printer.pl into test.pl
Added a new option "-p" to test.pl to request printing failure logs instead of
doing so via an external script. This simplifies various Makefiles and enables
use in cmake builds.
2017-11-02 12:18:15 +00:00
Michael Tautschnig 96e169aecf Use single quotes for Windows compatibility 2017-11-02 12:18:14 +00:00
reuk 413fc1b53e Automatically deduce test names from dir names 2017-09-20 14:36:59 +01:00
reuk f6e49683c9 Enable running tests from CMake 2017-09-11 14:29:12 +01:00
thk123 79f1638a4b Adding regression tests for multiple declarations on one line
This was mainly to check the declarator part of the conversion wasn't
being tripped up by the typedef printing
2017-03-28 15:58:18 +01:00
thk123 bb09401a54 Adding tests for anonymous unions
These mirror the tests for anonymous structs
2017-03-28 15:58:18 +01:00
thk123 5dd0c8a63c Adding const variables tests
The tests relating to structs and unions are marked as known bugs as
they are related to #355
2017-03-28 15:58:18 +01:00
thk123 e8dbc4086d Adding tests for union typedefs 2017-03-28 15:58:18 +01:00
thk123 0152f67131 Improved chain.sh to remove old .gb files first
Made the first step of the chain.sh remove the generated .gb file from
previous runs. This ensures that if the goto-cc step fails, misleading
results are not generated.
2017-03-27 11:33:28 +01:00
thk123 eb7e551c4b Adding tests for structs and parameters using typedefs 2017-03-27 11:33:28 +01:00
thk123 08cf4ee552 Added initial collection of tests for typedef'd types
Covers the basic cases of typedef-ing a normal type (int)
2017-03-27 11:33:28 +01:00