From 65931ce7a9a84ddb9adb118b7558bfd1b8c3ee46 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 22 Sep 2013 11:28:46 -0400 Subject: Regression test portability to Solaris. --- tests/run_make_tests.pl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/run_make_tests.pl') diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index d8a093b..54c2892 100644 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -369,6 +369,15 @@ sub set_more_defaults -f "${d}gnumake.h" and $srcdir = $d; } + # Not with the make program, so see if we can get it out of the makefile + if (! $srcdir && open(MF, "< ../Makefile")) { + local $/ = undef; + $_ = ; + close(MF); + /^abs_srcdir\s*=\s*(.*?)\s*$/m; + -f "$1/gnumake.h" and $srcdir = $1; + } + # Get Purify log info--if any. if (exists $ENV{PURIFYOPTIONS} -- cgit v1.2.3