1Test::MinimumVersion(3)User Contributed Perl DocumentatioTnest::MinimumVersion(3)
2
3
4
6 Test::MinimumVersion - does your code require newer perl than you
7 think?
8
10 version 0.101080
11
13 Example minimum-perl.t:
14
15 #!perl
16 use Test::MinimumVersion;
17 all_minimum_version_ok('5.008');
18
20 minimum_version_ok
21 minimum_version_ok($file, $version);
22
23 This test passes if the given file does not seem to require any version
24 of perl newer than $version, which may be given as a version string or
25 a version object.
26
27 all_minimum_version_ok
28 all_minimum_version_ok($version, \%arg);
29
30 Given either a version string or a version object, this routine
31 produces a test plan (if there is no plan) and tests each relevant file
32 with "minimum_version_ok".
33
34 Relevant files are found by File::Find::Rule::Perl.
35
36 "\%arg" is optional. Valid arguments are:
37
38 paths - in what paths to look for files; defaults to (t, lib, xt/smoke,
39 and any .pm or .PL files in the current working directory)
40 if it contains files, they will be checked
41 no_plan - do not plan the tests about to be run
42
43 all_minimum_version_from_metayml_ok
44 all_minimum_version_from_metayml_ok(\%arg);
45
46 This routine checks META.yml for an entry in requires for perl. If no
47 META.yml file or no perl version is found, all tests are skipped. If a
48 version is found, the test proceeds as if "all_minimum_version_ok" had
49 been called with that version.
50
52 Ricardo Signes
53
55 This software is copyright (c) 2007 by Ricardo Signes.
56
57 This is free software; you can redistribute it and/or modify it under
58 the same terms as the Perl 5 programming language system itself.
59
60
61
62perl v5.16.3 2010-04-18 Test::MinimumVersion(3)