1Test::MooseX::DaemonizeU(s3eprm)Contributed Perl DocumenTteastti:o:nMooseX::Daemonize(3pm)
2
3
4

NAME

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

VERSION

10       version 0.22
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 your 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

SEE ALSO

44       MooseX::Daemonize
45

SUPPORT

47       Bugs may be submitted through the RT bug tracker
48       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Daemonize>
49       (or bug-MooseX-Daemonize@rt.cpan.org <mailto:bug-MooseX-
50       Daemonize@rt.cpan.org>).
51
52       There is also a mailing list available for users of this distribution,
53       at <http://lists.perl.org/list/moose.html>.
54
55       There is also an irc channel available for users of this distribution,
56       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
57

AUTHORS

59       ·   Stevan Little <stevan.little@iinteractive.com>
60
61       ·   Chris Prather <chris@prather.org>
62
64       This software is copyright (c) 2007 by Chris Prather.
65
66       This is free software; you can redistribute it and/or modify it under
67       the same terms as the Perl 5 programming language system itself.
68
69
70
71perl v5.32.0                      2020-07-28      Test::MooseX::Daemonize(3pm)
Impressum