Tester Shell Script
This is a script that I used throughout all my programming classes last year at UCSD and will most likely continue to use. It is easy to change to fit most of my testing needs.
The script takes one file containing sample cases which serve as input for a solution program (a program produced by the instructor) and a students program and compares the output of the two.
When one of the cases fails to match the solution program the offending case can be easily found by matching the number that is printed before each sample output to the line number of the test case.
The script and a README that has a little bit more of specifics of how to install and run the program can be found following this link.
The code is short enough that I included the script below.