[perl-Glib-Object-Introspection] Tweak the test environment to work with newer ExtUtils::MakeMaker
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib-Object-Introspection] Tweak the test environment to work with newer ExtUtils::MakeMaker
- Date: Sun, 23 Oct 2016 12:25:04 +0000 (UTC)
commit 3140e42cab1ce816c9e590943b9fbf60aa65ed5c
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Sun Oct 23 13:48:05 2016 +0200
Tweak the test environment to work with newer ExtUtils::MakeMaker
Makefile.PL | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index 05561e3..f529da7 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -294,14 +294,15 @@ package MY; # so that "SUPER" works right
sub test {
my $inherited = shift->SUPER::test(@_);
+ my $target = qr/test_dynamic :: (?:pure_all|subdirs-test_dynamic)\n\t/;
if ($^O eq 'MSWin32') {
# put "build" into PATH for the tests
# FIXME: Might need tweaking for nmake...
- $inherited =~ s/(test_dynamic :: pure_all\n\t)/.IMPORT: PATH\nPATH += ;build\n.EXPORT: PATH\n$1/;
+ $inherited =~ s/($target)/.IMPORT: PATH\nPATH += ;build\n.EXPORT: PATH\n$1/;
}
else {
# put "build" into LD_LIBRARY_PATH for the tests
- $inherited =~ s/(test_dynamic :: pure_all)\n\t/$1\n\tLD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:build /;
+ $inherited =~ s/($target)/${1}LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:build /;
}
$inherited;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]