From 3a81bbe70480b214afbcf2daf1415e1e2bd252f0 Mon Sep 17 00:00:00 2001 From: "Andreas J. Koenig" Date: Thu, 26 Aug 2010 07:40:17 +0200 Subject: [PATCH] fix parsign bug with configure_requires --- Changes | 6 ++ lib/CPAN/Testers/ParseReport.pm | 3 +- t/ctgetreports.t | 23 +++++ t/var/nntp-testers/8327429 | 214 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 245 insertions(+), 1 deletion(-) create mode 100644 t/var/nntp-testers/8327429 diff --git a/Changes b/Changes index a14a6a4..30201a3 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2010-08-26 Andreas J. Koenig + + * release 0.1.15 + + * fix parsing bug with configure_requires + 2010-08-08 Andreas J. Koenig * release 0.1.14 diff --git a/lib/CPAN/Testers/ParseReport.pm b/lib/CPAN/Testers/ParseReport.pm index 269c284..35890c7 100644 --- a/lib/CPAN/Testers/ParseReport.pm +++ b/lib/CPAN/Testers/ParseReport.pm @@ -29,7 +29,7 @@ CPAN::Testers::ParseReport - parse reports to www.cpantesters.org from various s =cut -use version; our $VERSION = qv('0.1.14'); +use version; our $VERSION = qv('0.1.15'); =head1 SYNOPSIS @@ -729,6 +729,7 @@ sub parse_report { next LINE; } elsif ($leader =~ /^( buil # build_requires: + |conf # configure_requires: )/x) { next LINE; } elsif ($module =~ /^( diff --git a/t/ctgetreports.t b/t/ctgetreports.t index f69c520..bca2816 100644 --- a/t/ctgetreports.t +++ b/t/ctgetreports.t @@ -446,6 +446,29 @@ my $plan; is $extract->{'mod:Image::Imlib2'}, q{0}, "report $id: mod:Image::Imlib2"; } +{ + BEGIN { + $plan += 2; + } + my $id = 8327429; + my %Opt = ( + 'local' => 1, + 'cachedir' => 't/var', + 'quiet' => 1, + 'dumpvars' => ".", + 'report' => $id, + ); + my $dumpvars = {}; + my $extract = CPAN::Testers::ParseReport::parse_report + ( + "t/var/nntp-testers/$id", + $dumpvars, + %Opt, + ); + is $extract->{'prereq:Module::Build'}, q{0.36}, "report $id: prereq:Module::Build"; + is $extract->{'mod:Module::Build'}, q{0.36_13}, "report $id: mod:Module::Build"; +} + unlink "ctgetreports.out"; BEGIN { diff --git a/t/var/nntp-testers/8327429 b/t/var/nntp-testers/8327429 new file mode 100644 index 0000000..6651ddd --- /dev/null +++ b/t/var/nntp-testers/8327429 @@ -0,0 +1,214 @@ + + + + + + +CPAN Testers Reports: Report for App-DoubleUp-v0.2.1 + + + + + + + + + + + + + + + + + + + + +
+From: "Graham Crookham (GRAHAMC)" <graham [at] crookham [dot] uklinux [dot] net (GRAHAMC)>
+Subject: PASS App-DoubleUp-v0.2.1 v5.12.1 SunOS/Solaris
+Date: 2010-08-24T12:04:30Z
+
+This distribution has been tested as part of the CPAN Testers
+project, supporting the Perl programming language.  See
+http://wiki.cpantesters.org/ for more information or email
+questions to cpan-testers-discuss@perl.org
+
+
+--
+Dear Peter Stuifzand,
+
+This is a computer-generated report for App-DoubleUp-v0.2.1
+on perl 5.12.1, created by CPAN-Reporter-1.18.
+
+Thank you for uploading your work to CPAN.  Congratulations!
+All tests were successful.
+
+Sections of this report:
+
+    * Tester comments
+    * Program output
+    * Prerequisites
+    * Environment and other context
+
+------------------------------
+TESTER COMMENTS
+------------------------------
+
+Additional comments from tester:
+
+this report is from an automated smoke testing program
+and was not reviewed by a human for accuracy
+
+------------------------------
+PROGRAM OUTPUT
+------------------------------
+
+Output from './Build test':
+
+t/01_creation.t .. ok
+All tests successful.
+Files=1, Tests=1,  1 wallclock secs ( 0.09 usr  0.04 sys +  0.44 cusr  0.10 csys =  0.67 CPU)
+Result: PASS
+
+------------------------------
+PREREQUISITES
+------------------------------
+
+Prerequisite modules loaded:
+
+requires:
+
+    Module        Need Have   
+    ------------- ---- -------
+    DBI           0    1.614  
+
+configure_requires:
+
+    Module        Need Have   
+    ------------- ---- -------
+    Module::Build 0.36 0.36_13
+
+
+------------------------------
+ENVIRONMENT AND OTHER CONTEXT
+------------------------------
+
+Environment variables:
+
+    AUTOMATED_TESTING = 1
+    LANG = en_US.UTF-8
+    LC_MESSAGES = en_US.UTF-8
+    PATH = /export/home/graham/perltest/perl/bin:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin:/usr/ccs/bin
+    PERL5LIB = 
+    PERL5OPT = 
+    PERL5_CPANPLUS_IS_RUNNING = 14111
+    PERL5_CPAN_IS_RUNNING = 14111
+    PERL5_CPAN_IS_RUNNING_IN_RECURSION = 849,14111
+    PERL_CR_SMOKER_CURRENT = App-DoubleUp-v0.2.1
+    PERL_EXTUTILS_AUTOINSTALL = --defaultdeps
+    PERL_MM_USE_DEFAULT = 1
+    SHELL = /bin/bash
+    TERM = xterm
+
+Perl special variables (and OS-specific diagnostics, for MSWin32):
+
+    $^X = /export/home/graham/perltest/perl/bin/perl
+    $UID/$EUID = 101 / 101
+    $GID = 10 10
+    $EGID = 10 10
+
+Perl module toolchain versions installed:
+
+    Module              Have   
+    ------------------- -------
+    CPAN                1.94_58
+    Cwd                 3.31_02
+    ExtUtils::CBuilder  0.2703 
+    ExtUtils::Command   1.16   
+    ExtUtils::Install   1.55   
+    ExtUtils::MakeMaker 6.56   
+    ExtUtils::Manifest  1.58   
+    ExtUtils::ParseXS   2.2206 
+    File::Spec          3.31_02
+    Module::Build       0.36_13
+    Module::Signature   n/a    
+    Test::Harness       3.21   
+    Test::More          0.96   
+    YAML                0.71   
+    YAML::Syck          1.12   
+    version             0.82   
+
+
+--
+
+Summary of my perl5 (revision 5 version 12 subversion 1) configuration:
+   
+  Platform:
+    osname=solaris, osvers=2.11, archname=i86pc-solaris
+    uname='sunos hidegkuti 5.11 snv_111b i86pc i386 i86pc solaris '
+    config_args=''
+    hint=recommended, useposix=true, d_sigaction=define
+    useithreads=undef, usemultiplicity=undef
+    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
+    use64bitint=undef, use64bitall=undef, uselongdouble=undef
+    usemymalloc=n, bincompat5005=undef
+  Compiler:
+    cc='gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV',
+    optimize='-O',
+    cppflags='-fno-strict-aliasing -pipe'
+    ccversion='', gccversion='3.4.3 (csl-sol210-3_4-20050802)', gccosandvers='solaris2.11'
+    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
+    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
+    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
+    alignbytes=4, prototype=define
+  Linker and Libraries:
+    ld='gcc', ldflags =' '
+    libpth=/usr/lib /usr/ccs/lib
+    libs=-lsocket -lnsl -ldl -lm -lc
+    perllibs=-lsocket -lnsl -ldl -lm -lc
+    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
+    gnulibc_version=''
+  Dynamic Linking:
+    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
+    cccdlflags='-fPIC', lddlflags='-G'
+
+
+Characteristics of this binary (from libperl): 
+  Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
+                        PERL_USE_SAFE_PUTENV USE_LARGE_FILES USE_PERLIO
+                        USE_PERL_ATOF
+  Built under solaris
+  Compiled at Jul 21 2010 15:14:27
+  %ENV:
+    PERL5LIB=""
+    PERL5OPT=""
+    PERL5_CPANPLUS_IS_RUNNING="14111"
+    PERL5_CPAN_IS_RUNNING="14111"
+    PERL5_CPAN_IS_RUNNING_IN_RECURSION="849,14111"
+    PERL_CR_SMOKER_CURRENT="App-DoubleUp-v0.2.1"
+    PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
+    PERL_MM_USE_DEFAULT="1"
+  @INC:
+    /export/home/graham/perltest/perl/lib/site_perl/5.12.1/i86pc-solaris
+    /export/home/graham/perltest/perl/lib/site_perl/5.12.1
+    /export/home/graham/perltest/perl/lib/5.12.1/i86pc-solaris
+    /export/home/graham/perltest/perl/lib/5.12.1
+    .
+ \ No newline at end of file -- 2.11.4.GIT