[libdatetime-timezone-perl] 11/23: Add option to not make zdump tests in update-from-latest-olson
gregor herrmann
gregoa at debian.org
Wed Apr 15 19:03:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to annotated tag v1.77
in repository libdatetime-timezone-perl.
commit e9d9d50cea04a1b54b632bd8427337d3de139f69
Author: Dave Rolsky <autarch at urth.org>
Date: Tue Nov 4 14:20:58 2014 -0600
Add option to not make zdump tests in update-from-latest-olson
---
tools/update-from-latest-olson | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/tools/update-from-latest-olson b/tools/update-from-latest-olson
index 9faf8b9..c5551e6 100755
--- a/tools/update-from-latest-olson
+++ b/tools/update-from-latest-olson
@@ -12,12 +12,13 @@ use Path::Class qw( dir tempdir );
sub main {
my %opts = (
download => 1,
- dir => undef,
+ tests => 1,
);
GetOptions(
'download!' => \$opts{download},
'dir:s' => \$opts{dir},
+ 'tests!' => \$opts{tests},
);
my $olson_version;
@@ -34,7 +35,7 @@ sub main {
}
_compile_tzdata($dir);
- _parse_olson( $dir, $olson_version );
+ _parse_olson( $dir, $olson_version, $opts{tests} );
}
sub _download {
@@ -140,8 +141,9 @@ sub _compile_tzdata {
}
sub _parse_olson {
- my $dir = shift;
- my $olson_version = shift;
+ my $dir = shift;
+ my $olson_version = shift;
+ my $generate_tests = shift;
system(
'./tools/parse_olson',
@@ -150,9 +152,11 @@ sub _parse_olson {
'--dir', $dir,
) and die "Cannot run parse_olson: $!";
- print "Generating tests from zdump\n";
- system('./tools/tests_from_zdump')
- and die "Cannot run tests_from_zdump: $!";
+ if ($generate_tests) {
+ print "Generating tests from zdump\n";
+ system('./tools/tests_from_zdump')
+ and die "Cannot run tests_from_zdump: $!";
+ }
}
main();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdatetime-timezone-perl.git
More information about the Pkg-perl-cvs-commits
mailing list