GNU Go Documentation
20.4 Regression testing with GTP
GNU Go uses GTP for regression testing. These tests are implemented as
files with GTP commands, which are fed to GNU Go simply by redirecting
stdin to read from a file. The output is filtered so that equal signs
and responses from commands without id numbers are removed. These
results are then compared with expected results encoded in GTP comments
in the file, using matching with regular expressions. More information
can be found in the regression chapter (see section 21. Regression testing).