Next: , Up: Writing new test cases

10.2.1 Testing the Test Suite

The best strategy for testing the cssc test suite itself is to run it against a genuine edition of sccs, if you have one available. Before running make check, set the environment variable ‘dir’ to point to the directory containing the programs to be tested; this should usually be /usr/sccs.

In many implementations of sccs, some of the tools execute others (for example, delta often executes get to retrieve the previous version of the controlled file). This means that to correctly test the test suite, your PATH environment variable should be set up to select the sccs tools you want to test. Here is an example of the correct way to set up the environment to test sccs tools in /usr/ccs/bin :-

     export dir
     make check

When you are sure that the test script is expecting the correct behaviour from programs under test, you can then run it against cssc. After all, if you're going to set out writing your test by assuming that cssc is correct in the area under test, of what value is the test?