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

NAME

6       Test::Script - Cross-platform basic tests for scripts
7

DESCRIPTION

9       The intent of this module is to provide a series of basic tests for
10       scripts in the bin directory of your Perl distribution.
11
12       Further, it aims to provide them with perfect platform-compatibility
13       and in a way that is as unobtrusive as possible.
14
15       That is, if the program works on a platform, then Test::Script should
16       also work on that platform.
17
18       In doing so, it is hoped that Test::Script can become a module that you
19       can safely make a dependency of your module, without risking your mod‐
20       ule not working on some platform because of the dependency.
21
22       Where a clash exists between wanting more functionality and maintaining
23       platform safety, this module will err on the side of platform safety.
24

FUNCTIONS

26       script_compiles_ok
27
28         script_compiles_ok( 'bin/foo', 'Main script compiles' );
29
30       The "script_compiles_ok" test calls the script with "perl -c script‐
31       name", and checks that it returns without error.
32
33       The path it should be passed is a relative unix-format script name.
34       This will be localised when running "perl -c", and if the test fails,
35       the local name used will be shown in the diagnostic output.
36
37       Note also that the test will be actually done with the same perl inter‐
38       preter that is running the test script (and not with the default system
39       perl). This will also be shown in the diagnostic output on failure.
40

SUPPORT

42       All bugs should be filed via the bug tracker at
43
44       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Script>
45
46       For other issues, or commercial enhancement and support, contact the
47       author
48

AUTHOR

50       Adam Kennedy <adamk@cpan.org>
51

SEE ALSO

53       prove, <http://ali.as/>
54
56       Copyright 2006 - 2008 Adam Kennedy.
57
58       This program is free software; you can redistribute it and/or modify it
59       under the same terms as Perl itself.
60
61       The full text of the license can be found in the LICENSE file included
62       with this module.
63
64
65
66perl v5.8.8                       2008-02-28                   Test::Script(3)
Impressum