1 # Utility functions and parameters for regression tests
3 # Predefined directories you may need
4 # Stupid broken CMU Facilities autoconf doesn't do @abs_top_srcdir@
5 builddir=../"@top_builddir@"
6 sourcedir=../"@top_srcdir@"
9 # Automatically report failures on exit
11 trap "report_failures" 0
16 $builddir/libtool --mode=execute "$builddir/src/$program/$program" $@
27 failures="$failures,$title"
33 if $@ >/dev/null 2>&1; then
43 if perl "$tests/compare_table.pl" $@ | grep SUCCESS >/dev/null 2>&1; then
51 if test x"$failures" = x; then
52 echo "All sub-tests passed"
55 echo "Sub-tests failed:$failures" | sed -e 's/,/\n/g'