File: check_datetime_version.pl

package info (click to toggle)
libdatetime-timezone-perl 1%3A1.58-1%2B2016d
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 174,932 kB
  • sloc: perl: 2,468; sh: 35; makefile: 16
file content (21 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;

use DateTime::TimeZone;

BEGIN {
    # Work around not having a version when using dzil
    if ( ! $DateTime::TimeZone::VERSION ) {
        $DateTime::TimeZone::VERSION = 99;
    }

    my $version = '0.1501';
    eval "use DateTime $version";
    if ($@) {
        Test::More::plan( skip_all =>
                "Cannot run tests before DateTime.pm $version is installed."
        );
        exit;
    }
}

1;