The regression tests are designed as a development tool. Before adding code to the PREDATOR codebase, the regression tests must be run to insure that the new code does not upset previous functionality. In addition, when new code is added, so too must a regression test which tests that functionality.
If all the tests succeed, your
installation is valid, and you can proceed to use the system.
An introductory tutorial may help you get
started. If you have problems with the regression tests, send mail to
predator-support@cs.cornell.edu
with details of the problems that arise.
Running
All suites
If you have not already done so, create an environment variable called XXX_SERVER_PORT that has some random port number above 5000. (You may wish to add this variable to your .cshrc file.) Then in your $XXXROOT/regression/
directory, type make.
Each of the test suites (located in their respective directories in the
$XXXROOT/regression/suites directory) will be run in turn, and
error messages will be output to the screen. If a test fails, you will
want to examine the contents of regression/suites/suitename/out/testname.out
to determine what went wrong. You can find the instructions piped to the
client in regression/suites/suitename/run/testname.run.
The output of the server can be found in regression/suites/suitename/out/serverrun.out.
setenv XXX_SERVER_PORT 5776
cd $XXXROOT/regression
make
Some Useful Tips
Selected suites
You can run a subset of the suites by providing their names as parameters to runsuites, e.g.,
runsuites image audio counter
Creating
Adding a new regression suite
A new regression test suite should be added to test an entirely new
functionality of the PREDATOR system, e.g., a new data type or a new SQL
statement. To do this, follow these steps:
where suite_name is the name of the new suite.
This script not only creates a local directory tree for your script,
but an RCS tree for it too. For this reason, please do not run
the script unless you are creating a real regression suite.
makesuite <suite_name>
It will not work, but it will provide the .out files
in the out/ subdirectory.
cd $XXXROOT/regression
runsuites <suite_name>
Adding a new test to an existing suite
To add a new test to an existing suite, follow these steps:
Mail user support: predator-support@cs.cornell.edu
.... Back to PREDATOR Home Page