Write most of the output of the test program to an output file.