Groups | Search | Server Info | Login | Register
Groups > perl.dbd.pg.changes > #3
| Newsgroups | perl.dbd.pg.changes |
|---|---|
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!nntp.perl.org |
| Xref | csiph.com perl.dbd.pg.changes:3 |
| Return-Path | <greg@vm212.endpoint.com> |
| Mailing-List | contact dbd-pg-changes-help@perl.org; run by ezmlm |
| Delivered-To | mailing list dbd-pg-changes@perl.org |
| Received | (qmail 14009 invoked from network); 19 Aug 2015 19:39:00 -0000 |
| Received | from x1.develooper.com (207.171.7.70) by x6.develooper.com with SMTP; 19 Aug 2015 19:39:00 -0000 |
| Received | (qmail 24100 invoked by uid 225); 19 Aug 2015 19:39:00 -0000 |
| Delivered-To | dbd-pg-changes@perl.org |
| Received | (qmail 24091 invoked by alias); 19 Aug 2015 19:39:00 -0000 |
| X-Spam-Status | No, hits=-1.5 required=8.0 tests=BAYES_00,HK_RANDOM_FROM,RP_MATCHES_RCVD |
| X-Spam-Check-By | la.mx.develooper.com |
| Received | from vm212.endpoint.com (HELO vm212.endpoint.com) (5.9.255.107) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 19 Aug 2015 12:38:53 -0700 |
| Received | by vm212.endpoint.com (Postfix, from userid 500) id 756EF229E4; Wed, 19 Aug 2015 19:38:49 +0000 (UTC) |
| To | dbd-pg-changes@perl.org |
| Subject | [DBD::Pg 2/2] Add tests for version differences back in |
| Date | Wed, 19 Aug 2015 19:38:49 +0000 |
| Message-ID | <1440013129-17784-2-git-send-email-dbdpg-commits@bucardo.org> (permalink) |
| X-Mailer | git-send-email 1.8.4 |
| In-Reply-To | <1440013129-17784-1-git-send-email-dbdpg-commits@bucardo.org> |
| References | <1440013129-17784-1-git-send-email-dbdpg-commits@bucardo.org> |
| X-Git-Newrev | f8611b84d67ed717fc54b262e84929768eb465cb |
| X-Git-Committed-By | Greg Sabino Mullane <greg@endpoint.com> |
| Approved | news@nntp.perl.org |
| From | dbdpg-commits@bucardo.org |
Show key headers only | View raw
Committed by Greg Sabino Mullane <greg@endpoint.com>
Subject: [DBD::Pg 2/2] Add tests for version differences back in
---
t/00_release.t | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/t/00_release.t b/t/00_release.t
index 3b70a92..0ae6ead 100644
--- a/t/00_release.t
+++ b/t/00_release.t
@@ -40,14 +40,18 @@ my $lastversion = '?';
for my $file (sort keys %filelist) {
my ($expected,$regexlist) = @{ $filelist{$file} };
- #diag "Want file $file to have $expected";
my $instances = 0;
open my $fh, '<', $file or die qq{Could not open "$file": $!\n};
SLURP: while (<$fh>) {
for my $regex (@{ $regexlist }) {
if ($_ =~ /$regex/) {
- push @{$v{$file}} => [$1, $.];
+ my $foundversion = $1;
+ push @{$v{$file}} => [$foundversion, $.];
+ if ($lastversion =~ /\d/ and $foundversion ne $lastversion) {
+ $goodversion = 0;
+ }
+ $lastversion = $foundversion;
$instances++;
last SLURP if $file eq 'Changes'; ## Only the top version please
}
--
1.8.4
Back to perl.dbd.pg.changes | Previous | Next — Previous in thread | Find similar
[DBD::Pg 1/2] Note need to get rid of 'adsrc' references dbdpg-commits@bucardo.org - 2015-08-19 19:38 +0000 [DBD::Pg 2/2] Add tests for version differences back in dbdpg-commits@bucardo.org - 2015-08-19 19:38 +0000
csiph-web