summaryrefslogtreecommitdiff
path: root/tests/run_make_tests.pl
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-22 11:28:46 -0400
committerPaul Smith <psmith@gnu.org>2013-09-22 17:10:34 -0400
commit65931ce7a9a84ddb9adb118b7558bfd1b8c3ee46 (patch)
tree2267155ce5a4ae0f8b2b6e6e67eb315e33e3cb97 /tests/run_make_tests.pl
parent1a991ada47e0c98ddcb4b2d30b1cf14e4b6a949a (diff)
downloadgunmake-65931ce7a9a84ddb9adb118b7558bfd1b8c3ee46.tar.gz
Regression test portability to Solaris.
Diffstat (limited to 'tests/run_make_tests.pl')
-rw-r--r--tests/run_make_tests.pl9
1 files changed, 9 insertions, 0 deletions
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;
+ $_ = <MF>;
+ 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}