Next: , Up: Regression


20.1 Regression testing in GNU Go

Regression testing is performed by the files in the regression/ directory. The tests are specified as GTP commands in files with the suffix .tst, with corresponding correct results and expected pass/fail status encoded in GTP comments following the test. To run a test suite the shell scripts test.sh, eval.sh, and regress.sh can be used. There are also Makefile targets to do this. If you make all_batches most of the tests are run. The Pike script regress.pike can also be used to run all tests or a subset of the tests.

Game records used by the regression tests are stored in the directory regression/games/ and its subdirectories.