It is invoked in the source directory of the test case. In this case it is set to exec make clean to remove unwanted object files as defined in each makefile. Since most test suites lend themselves to lots of code redundancy, making an effort to group together common functions and variables can greatly simplify the writing and debugging of a test suite. With the C-API test suite, which is very small, no common functions and variables other than the standard ones in tetapi.h were created. One additional result code was invented, however, which would normally be defined in a test suite specific header file.
Every test case requires some minimum initialization of functions and variables.
The fileno-tc test case provides a good illustration of how this initialization can be handled. TET provides the option of naming both a startup and cleanup function. In this test case, only the cleanup function is named. The stat-tc test case includes a more substantial cleanup function, as well as a startup function. See Appendix A for a complete code listing of the stat-tc test case.