There are two slightly different ways to add a test case. One is to add the test case to an existing directory. The other is to create a new directory to hold your test. The existing test directories represent several styles of testing, all of which are slightly different; examine the directories for the tool of interest to see which (if any) is most suitable.
Adding a GCC test can be very simple: just add the C code to any directory beginning with `gcc.' and it runs on the next `runtest --tool gcc'.
To add a test to GDB, first add any source code you will need to
the test directory. Then you can either create a new expect
file,
or add your test to an existing one (any file with a `.exp'
suffix). Creating a new `.exp' file is probably a better idea if
the test is significantly different from existing tests. Adding it as a
separate file also makes upgrading easier. If the C code has to be
already compiled before the test will run, then you'll have to add it to
the `Makefile.in' file for that test directory, then run
configure
and make
.
Adding a test by creating a new directory is very similar:
make
and configure
next run, they include the new directory.
Makefile.in
and a configure.in
. See section `What Configure Does' in Cygnus Configure.
Go to the first, previous, next, last section, table of contents.