script for checking output of regression tests