Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

r7958@agentz-office: agentz | 2008-03-10 12:43:29 +0800

 [gmake-db] skipped t/makesimple.t if GNU make not found or version too old


git-svn-id: http://svn.openfoundry.org/makefileparser/branches/gmake-db@144 62301735-6e02-0410-bc6c-954258690ed4
  • Loading branch information...
commit a8c64e71ae6b50b736222bf3dcafad5fdf48bdce 1 parent e68ebb4
agentz authored
View
5 Changes
@@ -1,5 +1,9 @@
Revision history for Perl extension Makefile::Parser.
+0.205 2008-03-10
+* Removed bogus debugging code from the makesimple script.
+* Fixed the test suite a bit.
+
0.204 2008-03-08
* Added missing external dependencies to Makefile.PL
@@ -27,6 +31,7 @@ Revision history for Perl extension Makefile::Parser.
** or
** shell
** foreach
+
* removed /r from Parsre.pm
* added support for the shell function
* degraded the version of Test::More that Makefile::Parser requires
View
2  META.yml
@@ -28,4 +28,4 @@ requires:
Text::Balanced: 0
Time::HiRes: 0
perl: 5.004
-version: 0.204
+version: 0.205
View
2  README
@@ -2,7 +2,7 @@ NAME
Makefile::Parser - A simple parser for Makefiles
VERSION
- This document describes Makefile::Parser 0.204 released on March 8,
+ This document describes Makefile::Parser 0.205 released on March 10,
2008.
SYNOPSIS
View
4 lib/Makefile/Parser.pm
@@ -11,7 +11,7 @@ use Text::Balanced qw( gen_extract_tagged );
#our $Debug = 0;
our $Strict = 0;
-our $VERSION = '0.204';
+our $VERSION = '0.205';
our $Error;
our $Runtime = undef;
@@ -867,7 +867,7 @@ Makefile::Parser - A simple parser for Makefiles
=head1 VERSION
-This document describes Makefile::Parser 0.204 released on March 8, 2008.
+This document describes Makefile::Parser 0.205 released on March 10, 2008.
=head1 SYNOPSIS
View
2  lib/Makefile/Parser/GmakeDB.pm
@@ -10,7 +10,7 @@ use List::MoreUtils qw( none );
use MDOM::Document::Gmake;
use Makefile::AST;
-our $VERSION = '0.204';
+our $VERSION = '0.205';
# XXX This should not be hard-coded this way...
our @Suffixes = (
View
22 t/makesimple.t
@@ -1,4 +1,22 @@
-use Test::Base;
+my $reason;
+BEGIN {
+ my $line = (split /\n/, `/usr/bin/env make -v`)[0];
+ if ($line) {
+ warn $line, "\n";
+ if ($line =~ /GNU Make (\d+\.\d+)/) {
+ my $make_ver = $1;
+ if ($make_ver < 3.81) {
+ $reason = 'GNU make too old (at least 3.81 is required).';
+ }
+ } else {
+ $reason = 'No GNU make found.';
+ }
+ } else {
+ $reason = 'No make found in env.';
+ }
+}
+
+use Test::Base $reason ? (skip_all => $reason) : ();
use File::Slurp;
use IPC::Run3;
@@ -10,8 +28,6 @@ use Test::Make::Util;
plan tests => 3 * blocks();
my $makefile = 'makesimple.tmp.mk';
-my $line = (split /\n/, `make -v`)[0];
-warn $line, "\n";
my $saved_cwd = cwd;
Please sign in to comment.
Something went wrong with that request. Please try again.