next up previous contents
Next: Adding new tests Up: Gandalf: The Fast Computer Previous: Complexity Comparison of FHT   Contents


The Test Framework

There is extensive testing code in the gandalf/TestFramework directory. A simple way to test your installation of Gandalf is to execute the following commands:-
      cd gandalf/TestFramework
      make
      ./cUnit -all
This compiles the main Gandalf test program cUnit and runs through all the tests. There is at least one test program for each Gandalf package.

You can also build test programs individually by cd'ing into a Gandalf package and typing the command make all. For instance, the commands

      cd gandalf/common
      make all
      ./list_test
will compile all the test programs in the Common package, and run the linked list test program. The main test program TestFramework/cUnit.c compiles and links with all the individual test programs in the Gandalf packages.

Input files are all in the gandalf/TestInput directory. Output files are written into the gandalf/TestOutput directory. Test programs are designed to purge any old TestOutput files before running the test program.



Subsections

2006-03-17