
Add program to PROGS list in Makefile.am.

Create perl script test_PROGRAM in the test directory.
Should begin with...

 #!/usr/local/bin/perl

 BEGIN { unshift(@INC,"."); }

 use TestTools;
 use strict;


..and end with

 exit;

 END {
     $test_handle->print_test_results();
 }

..to print test pass headers.

Add tests to TestTools.pm

Add calls to generic tests and new tests to test_ file.

Add working output file to test_data directory.

run 

make check

Replace new working output files to test_data directory.
