DejaGnu is a framework for testing other programs. See http://www.gnu.org/software/dejagnu/