next up previous
Next: Third party libraries Up: Configuring, Building, and Testing Previous: AIX notes

Testing

Spheral++ includes a python based automated testing system: ats. You can use this to run a set of test cases included with the distribution. ats is installed in the same bin directory where python and pyMPI are installed. In the spheral/tests directory there is a file called integration.ats which runs the set of automated tests we currently support. You can generate a simple help/usage description for ats by executing ats -h. Here's an example of running the automated tests for a serial build assuming you downloaded the Spheral++ source into the directory /home/username/Spheral:
cd /home/username/Spheral/spheral/tests
/home/username/Spheral/bin/ats -f 'np < 2' -e /home/username/Spheral/bin/python integration.ats
Note that we added a filter (-f 'np < 2') to remove any tests requiring more than one processor.

If you built the parallel MPI enabled version of the code you would execute

cd /home/username/Spheral/spheral/tests
/home/username/Spheral/bin/ats -e /home/username/Spheral/bin/pyMPI integration.ats
which will run all the tests, including the parallel cases.



Mike Owen 2006-09-13