Skip Menu |
 

This queue is for tickets about the Module-Install-TestTarget CPAN distribution.

Report information
The Basics
Id: 106843
Status: open
Priority: 0/
Queue: Module-Install-TestTarget

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.19
Fixed in: (no value)

Attachments
Module-Install-TestTarget-0.19-Adapt-to-ExtUtils-MakeMaker-6.07.patch



Subject: Test fails with ExtUtils-MakeMaker-6.07
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-18632-1441286533-472.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1073
The t/default_make_test/with_extra_tests.t fails with ExtUtils-MakeMaker-6.07: PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/*/*.t # You have make command: make t/00_compile.t .......................... ok # Failed test 'overwrote test_dynamic' # at t/default_make_test/with_extra_tests.t line 9. # undef # doesn't match '(?^:-MFoo::Bar)' # Looks like you failed 1 test of 2. t/default_make_test/with_extra_tests.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests The ExtUtils::MakeMaker changed how to generated Makefile looks like: -test_dynamic :: pure_all +test_dynamic :: subdirs-test_dynamic $(FULLPERLRUN) "-MFoo::Bar" "-Iinc" "-MModule::Install::ExtraTests" "-e" "Module::Install::ExtraTests::__harness('Test::Harness', 1, 'xt/author', '', '', $(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)'); " $(TEST_FILES) Thus the regular expression expecting the pure_all cannot locate the command.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-18632-1441286533-472.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: API
References: <rt-4.0.18-18632-1441286533-472.0-0-0 [...] rt.cpan.org>
Content-Type: multipart/mixed; boundary="----------=_1441287515-18405-2"
Message-ID: <rt-4.0.18-18405-1441287515-1459.0-0-0 [...] rt.cpan.org>
Message-ID: <rt-4.0.18-18405-1441287515-260.106843-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
From: ppisar [...] redhat.com
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 751
Download (untitled) / with headers
text/plain 751b
Dne Čt 03.zář.2015 09:22:13, ppisar napsal(a): Show quoted text
> The t/default_make_test/with_extra_tests.t fails with ExtUtils- > MakeMaker-6.07: > > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t t/*/*.t > # You have make command: make > t/00_compile.t .......................... ok > # Failed test 'overwrote test_dynamic' > # at t/default_make_test/with_extra_tests.t line 9. > # undef > # doesn't match '(?^:-MFoo::Bar)' > # Looks like you failed 1 test of 2. > t/default_make_test/with_extra_tests.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/2 subtests >
Attached patch fixes it. -- Petr
MIME-Version: 1.0
Subject: Module-Install-TestTarget-0.19-Adapt-to-ExtUtils-MakeMaker-6.07.patch
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Type: application/octet-stream; name="Module-Install-TestTarget-0.19-Adapt-to-ExtUtils-MakeMaker-6.07.patch"
Content-Disposition: inline; filename="Module-Install-TestTarget-0.19-Adapt-to-ExtUtils-MakeMaker-6.07.patch"
Content-Transfer-Encoding: base64
Content-Length: 1328
From 65f0a251c081efa3cca725621f5a5c2ce545fdbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> Date: Thu, 3 Sep 2015 15:31:55 +0200 Subject: [PATCH] Adapt to ExtUtils-MakeMaker-6.07 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ExtUtils-MakeMaker-6.07 changes format of generated Makefile, therefore a regular expression in t/Util.pm could not locate interested line and t/default_make_test/with_extra_tests.t test failed. This patch augemnts the regular expression to work with ExtUtils-MakeMaker-6.07 either. CPAN RT#106843 Signed-off-by: Petr Písař <ppisar@redhat.com> --- t/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/Util.pm b/t/Util.pm index 2757f4f..70b5904 100644 --- a/t/Util.pm +++ b/t/Util.pm @@ -38,7 +38,7 @@ sub find_make_test_command { open my $fh, '<', 'Makefile' or die "Cannot open 'Makefile' for reading: $!"; my $regex = _regex(keys %$target); while (<$fh>) { - next unless /^ ($regex) \s+ :: \s+ (?:pure_all|$regex) /xms; + next unless /^ ($regex) \s+ :: \s+ (?:pure_all|$regex|subdirs-(?:$regex)) /xms; $commands->{$1} = scalar <$fh>; delete $target->{$1}; my @target = keys %$target; -- 2.4.3
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-18405-1441287515-1459.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-18632-1441286533-472.0-0-0 [...] rt.cpan.org> <rt-4.0.18-18405-1441287515-1459.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-13279-1441298179-591.106843-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 250
Download (untitled) / with headers
text/plain 250b
On 2015-09-03 06:38:35, ppisar wrote: Show quoted text
> Dne Čt 03.zář.2015 09:22:13, ppisar napsal(a):
> > The t/default_make_test/with_extra_tests.t fails with ExtUtils- > > MakeMaker-6.07:
Do you perhaps mean ExtUtils-MakeMaker-7.06? 6.07 is ancient indeed :)
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-13279-1441298179-591.106843-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-18632-1441286533-472.0-0-0 [...] rt.cpan.org> <rt-4.0.18-18405-1441287515-1459.0-0-0 [...] rt.cpan.org> <rt-4.0.18-13279-1441298179-591.106843-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-5392-1441313443-1459.106843-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 78
ppisar, as someone who's dabbled in EUMM, this looks like a sensible approach.
X-Scanned-BY: MIMEDefang 2.68 on 10.5.11.24
MIME-Version: 1.0
X-Spam-Status: No, score=-11.319 tagged_above=-99.9 required=10 tests=[AWL=0.871, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.289, SPF_HELO_PASS=-0.001] autolearn=ham
X-Authentication-Warning: dhcp-0-146.brq.redhat.com: petr set sender to ppisar [...] redhat.com using -f
In-Reply-To: <rt-4.0.18-13279-1441298179-512.106843-6-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-106843 [...] rt.cpan.org> <rt-4.0.18-18632-1441286533-472.106843-6-0 [...] rt.cpan.org> <rt-4.0.18-18405-1441287515-1459.106843-6-0 [...] rt.cpan.org> <rt-4.0.18-13279-1441298179-512.106843-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <20150904065608.GC2074 [...] dhcp-0-146.brq.redhat.com>
Content-Type: multipart/signed; boundary="DSayHWYpDlRfCAAQ"; micalg="pgp-sha256"; protocol="application/pgp-signature"
X-Spam-Score: -11.319
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 575EB24039A for <cpan-bug+Module-Install-TestTarget [...] hipster.bestpractical.com>; Fri, 4 Sep 2015 02:56:22 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wPQrzH6vMH+u for <cpan-bug+Module-Install-TestTarget [...] hipster.bestpractical.com>; Fri, 4 Sep 2015 02:56:20 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 7B2DB240389 for <bug-Module-Install-TestTarget [...] rt.cpan.org>; Fri, 4 Sep 2015 02:56:20 -0400 (EDT)
Received: (qmail 29447 invoked by alias); 4 Sep 2015 06:56:18 -0000
Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 03 Sep 2015 23:56:15 -0700
Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id A00EF461D4 for <bug-Module-Install-TestTarget [...] rt.cpan.org>; Fri, 4 Sep 2015 06:56:11 +0000 (UTC)
Received: from dhcp-0-146.brq.redhat.com (unused-4-180.brq.redhat.com [10.34.4.180]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t846u9r1017834 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for <bug-Module-Install-TestTarget [...] rt.cpan.org>; Fri, 4 Sep 2015 02:56:11 -0400
Received: from dhcp-0-146.brq.redhat.com (localhost.localdomain [127.0.0.1]) by dhcp-0-146.brq.redhat.com (8.15.2/8.14.5) with ESMTP id t846u9Kf002746 for <bug-Module-Install-TestTarget [...] rt.cpan.org>; Fri, 4 Sep 2015 08:56:09 +0200
Received: (from petr [...] localhost) by dhcp-0-146.brq.redhat.com (8.15.2/8.15.2/Submit) id t846u8OP002745 for bug-Module-Install-TestTarget [...] rt.cpan.org; Fri, 4 Sep 2015 08:56:08 +0200
Delivered-To: cpan-bug+Module-Install-TestTarget [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #106843] Test fails with ExtUtils-MakeMaker-6.07
User-Agent: Mutt/1.5.23 (2014-03-12)
Return-Path: <ppisar [...] redhat.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Module-Install-TestTarget [...] hipster.bestpractical.com
X-RT-Mail-Extension: module-install-testtarget
Date: Fri, 4 Sep 2015 08:56:08 +0200
X-Spam-Level:
To: Karen Etheridge via RT <bug-Module-Install-TestTarget [...] rt.cpan.org>
From: Petr Pisar <ppisar [...] redhat.com>
RT-Message-ID: <rt-4.0.18-27348-1441349783-778.106843-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 442
Download (untitled) / with headers
text/plain 442b
On Thu, Sep 03, 2015 at 12:36:25PM -0400, Karen Etheridge via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=106843 > > > On 2015-09-03 06:38:35, ppisar wrote:
> > Dne Čt 03.zář.2015 09:22:13, ppisar napsal(a):
> > > The t/default_make_test/with_extra_tests.t fails with ExtUtils- > > > MakeMaker-6.07:
> > Do you perhaps mean ExtUtils-MakeMaker-7.06? 6.07 is ancient indeed :)
Of course 7.06. Sorry for my typo. -- Petr
Content-Type: application/pgp-signature
Content-Length: 213
Download (untitled)
application/pgp-signature 213b

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.