1Test::MinimumVersion(3)User Contributed Perl DocumentatioTnest::MinimumVersion(3)
2
3
4

NAME

6       Test::MinimumVersion - does your code require newer perl than you
7       think?
8

VERSION

10       version 0.011
11

SYNOPSIS

13       Example minimum-perl.t:
14
15         #!perl
16         use Test::MinimumVersion;
17         all_minimum_version_ok('5.008');
18
19   minimum_version_ok
20         minimum_version_ok($file, $version);
21
22       This test passes if the given file does not seem to require any version
23       of perl newer than $version, which may be given as a version string or
24       a version object.
25
26   all_minimum_version_ok
27         all_minimum_version_ok($version, \%arg);
28
29       Given either a version string or a version object, this routine
30       produces a test plan (if there is no plan) and tests each relevant file
31       with "minimum_version_ok".
32
33       Relevant files are found by File::Find::Rule::Perl.
34
35       "\%arg" is optional.  Valid arguments are:
36
37         paths   - in what paths to look for files; defaults to (t, lib, xt/smoke,
38                   and any .pm or .PL files in the current working directory)
39                   if it contains files, they will be checked
40         no_plan - do not plan the tests about to be run
41
42   all_minimum_version_from_metayml_ok
43         all_minimum_version_from_metayml_ok(\%arg);
44
45       This routine checks META.yml for an entry in requires for perl.  If no
46       META.yml file or no perl version is found, all tests are skipped.  If a
47       version is found, the test proceeds as if "all_minimum_version_ok" had
48       been called with that version.
49

TODO

51       Uh, this code has no tests.  I'm really sorry.  I'll get around to it.
52

AUTHOR

54       Ricardo SIGNES, "<rjbs at cpan.org>"
55
57       Copyright 2007, Ricardo SIGNES.
58
59       This program is free software; you can redistribute it and/or modify it
60       under the same terms as Perl itself.
61
62
63
64perl v5.10.1                      2009-06-30           Test::MinimumVersion(3)
Impressum