Add /nologo to nmake in CPANPLUS::Dist::Build too
authorJos I. Boumans <kane@dwim.org>
Mon, 28 May 2007 15:06:52 +0000 (17:06 +0200)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 28 May 2007 13:21:23 +0000 (13:21 +0000)
From: "Jos I. Boumans" <kane@xs4all.nl>
Message-Id: <90E1CAA6-8529-4DD1-9D42-A377538E9320@xs4all.nl>

p4raw-id: //depot/perl@31293

lib/CPANPLUS/Dist/Build/t/02_CPANPLUS-Dist-Build.t
lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz.packed
lib/CPANPLUS/Dist/Build/t/src/xs/Foo-Bar-0.01.tar.gz.packed

index 92da256..490420e 100644 (file)
@@ -13,7 +13,7 @@ use CPANPLUS::Module::Author::Fake;
 
 use Config;
 use Test::More      'no_plan';
-use File::Basename  ();
+use File::Basename  qw[basename];
 use Data::Dumper;
 use Config;
 use IPC::Cmd        'can_run';
@@ -53,6 +53,19 @@ $Conf->set_conf( signature  => 0 );
 ### running tests will mess with the test output so skip 'm
 $Conf->set_conf( skiptest   => 1 );
 
+### dmq tells us that we should run with /nologo
+### if using nmake, as it's very noise otherwise.
+### XXX copied from CPANPLUS' test include file!
+{   my $make = $Conf->get_program('make');
+    if( $make and basename($make) =~ /^nmake/i and
+        $make !~ m|/nologo|
+    ) {
+        $make .= ' /nologo';
+        $Conf->set_program( make => $make );
+    }
+}
+    
+
                 # path, cc needed?
 my %Map     = ( noxs    => 0,
                 xs      => 1 
index cc2951c..d88c88e 100644 (file)
@@ -10,7 +10,7 @@ To recreate it use the following command:
 
      uupacktool.pl -p lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz lib/CPANPLUS/Dist/Build/t/src/noxs/Foo-Bar-0.01.tar.gz.packed
 
-Created at Tue May 22 13:44:00 2007
+Created at Mon May 28 14:55:52 2007
 #########################################################################
 __UU__
 M'XL("-<X34(``T9O;RU"87(M,"XP,2YT87(`[9E;;]HP%,=Y]J<X+9722@-R
index bdb76d2..56c3ff6 100644 (file)
@@ -10,7 +10,7 @@ To recreate it use the following command:
 
      uupacktool.pl -p lib/CPANPLUS/Dist/Build/t/src/xs/Foo-Bar-0.01.tar.gz lib/CPANPLUS/Dist/Build/t/src/xs/Foo-Bar-0.01.tar.gz.packed
 
-Created at Tue May 22 13:44:00 2007
+Created at Mon May 28 14:55:52 2007
 #########################################################################
 __UU__
 M'XL("-\X34(``T9O;RU"87(M,"XP,2YT87(`[5K_3QI)%/=7YZ]XU39H(BN[