Hello,
I think that the `gpc-test.tar.gz' test suite should become "the" test suite for GPC. It is much more complete than the existing DejaGNU test suite.
According to Jeffrey A Law:
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.
For the current test suite it is important that the test programs produce the correct output.
- Tests which should merely compile.
They exist, but are not currently automatically distinguishable from the first kind of tests.
- Test for syntax errors and such which should not compile.
They can be identified by the string "WRONG" as a comment in the source. (The Makefile identifies them using `grep'.)
These tests are placed in different directories (execute, compile and noncompile respectively). In each directory there's a test driver which is pretty generic. [...]
Let's hope that it is able to give some special flags to the compiler which are needed for that specific test (marked with "FLAG" in the test source).
Peter