In message 199805230034.CAA00911@esmeralda.gerwinski.deyou write:
According to Mike Stump:
1.3 is horribly old, and I don't recommend you use it.
About the same holds for the test suite that comes with the GPC source.
:-)
I haven't looked at the gpc testsuite yet in any detail I'll go ahead and describe how the "torture test" harness works that we currently use for gcc & g77 tests.
The first thing you do is divide your tests into a few classes:
* Tests which should compile & execute. These tests should call abort when they fail or exit (0) when they pass.
* Tests which should merely compile.
* Test for syntax errors and such which should not compile.
These tests are placed in different directories (execute, compile and noncompile respectively). In each directory there's a test driver which is pretty generic.
There's a few language issues in the test drivers, but I can help deal with them if someone wants to take a stab at making the gpc testsuite "dejagnu aware".
There are more complicated testing harnesses, but for the majority of tests the "torture" harness is appropriate and easy to set up and use.
jeff