1Test::MooseX::DaemonizeU(s3e)r Contributed Perl DocumentaTteisotn::MooseX::Daemonize(3)
2
3
4

NAME

6       Test::MooseX::Daemonize - Tool to help test MooseX::Daemonize
7       applications
8

VERSION

10       This document describes MooseX::Daemonize version 0.0.1
11

SYNOPSIS

13           use File::Spec::Functions;
14           use File::Temp qw(tempdir);
15
16           my $dir = tempdir( CLEANUP => 1 );
17
18           ## Try to make sure we are in the test directory
19
20           my $file = catfile( $dir, "im_alive" );
21           my $daemon = FileMaker->new( pidbase => $dir, filename => $file );
22
23           daemonize_ok( $daemon, 'child forked okay' );
24           ok( -e $file, "$file exists" );
25

DESCRIPTION

27       This module provides some basic Test::Builder compatible test methods
28       to use when writing tests for you MooseX::Daemonize based modules.
29

EXPORTED FUNCTIONS

31       daemonize_ok ( $daemon, ?$msg )
32           This will attempt to daemonize your $daemon returning ok on success
33           and not ok on failure.
34
35       check_test_output ( $daemon )
36           This is expected to be used with a $daemon which does the
37           Test::MooseX::Daemonize::Testable role (included in this package
38           see the source for more info). It will collect the test output from
39           your daemon and apply it in the parent process by mucking around
40           with Test::Builder stuff, again, read the source for more info. If
41           we get time we will document this more thoroughly.
42

INCOMPATIBILITIES

44       None reported.
45

BUGS AND LIMITATIONS

47       No bugs have been reported.
48
49       Please report any bugs or feature requests to
50       "bug-acme-dahut-call@rt.cpan.org", or through the web interface at
51       <http://rt.cpan.org>.
52

SEE ALSO

54       MooseX::Daemonize
55

AUTHOR

57       Chris Prather  "<perigrin@cpan.org>"
58
60       Copyright (c) 2007-2008, Chris Prather "<perigrin@cpan.org>". All
61       rights reserved.
62
63       This module is free software; you can redistribute it and/or modify it
64       under the same terms as Perl itself. See perlartistic.
65

DISCLAIMER OF WARRANTY

67       BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
68       FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
69       WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
70       PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
71       EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
72       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
73       ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
74       YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
75       NECESSARY SERVICING, REPAIR, OR CORRECTION.
76
77       IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
78       WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
79       REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
80       TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
81       CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
82       SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
83       RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
84       FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
85       SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
86       DAMAGES.
87
88
89
90perl v5.12.0                      2009-10-05        Test::MooseX::Daemonize(3)
Impressum