1Test::Script(3)       User Contributed Perl Documentation      Test::Script(3)
2
3
4

NAME

6       Test::Script - Basic cross-platform tests for scripts
7

DESCRIPTION

9       The intent of this module is to provide a series of basic tests for 80%
10       of the testing you will need to do for scripts in the script (or bin as
11       is also commonly used) paths of your Perl distribution.
12
13       Further, it aims to provide this functionality with perfect platform-
14       compatibility, and in a way that is as unobtrusive as possible.
15
16       That is, if the program works on a platform, then Test::Script should
17       always work on that platform as well. Anything less than 100% is
18       considered unacceptable.
19
20       In doing so, it is hoped that Test::Script can become a module that you
21       can safely make a dependency of all your modules, without risking that
22       your module won't on some platform because of the dependency.
23
24       Where a clash exists between wanting more functionality and maintaining
25       platform safety, this module will err on the side of platform safety.
26

FUNCTIONS

28   script_compiles
29           script_compiles( 'script/foo.pl', 'Main script compiles' );
30
31       The "script_compiles" test calls the script with "perl -c script.pl",
32       and checks that it returns without error.
33
34       The path it should be passed is a relative unix-format script name.
35       This will be localised when running "perl -c" and if the test fails the
36       local name used will be shown in the diagnostic output.
37
38       Note also that the test will be run with the same perl interpreter that
39       is running the test script (and not with the default system perl). This
40       will also be shown in the diagnostic output on failure.
41
42   script_runs
43           script_runs( 'script/foo.pl', 'Main script runs' );
44
45       The "script_runs" test executes the script with "perl script.pl" and
46       checks that it returns success.
47
48       The path it should be passed is a relative unix-format script name.
49       This will be localised when running "perl -c" and if the test fails the
50       local name used will be shown in the diagnostic output.
51
52       The test will be run with the same perl interpreter that is running the
53       test script (and not with the default system perl). This will also be
54       shown in the diagnostic output on failure.
55

SUPPORT

57       All bugs should be filed via the bug tracker at
58
59       http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Script
60       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Script>
61
62       For other issues, or commercial enhancement and support, contact the
63       author.
64

AUTHOR

66       Adam Kennedy <adamk@cpan.org>
67

SEE ALSO

69       prove, <http://ali.as/>
70
72       Copyright 2006 - 2009 Adam Kennedy.
73
74       This program is free software; you can redistribute it and/or modify it
75       under the same terms as Perl itself.
76
77       The full text of the license can be found in the LICENSE file included
78       with this module.
79
80
81
82perl v5.12.0                      2009-11-24                   Test::Script(3)
Impressum