GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::MOOSEX::DAEMONIZE (3)

.ds Aq ’

NAME

Test::MooseX::Daemonize - Tool to help test MooseX::Daemonize applications

CONTENTS

VERSION

version 0.21

SYNOPSIS



    use File::Spec::Functions;
    use File::Temp qw(tempdir);

    my $dir = tempdir( CLEANUP => 1 );

    ## Try to make sure we are in the test directory

    my $file = catfile( $dir, "im_alive" );
    my $daemon = FileMaker->new( pidbase => $dir, filename => $file );

    daemonize_ok( $daemon, child forked okay );
    ok( -e $file, "$file exists" );



DESCRIPTION

This module provides some basic Test::Builder-compatible test methods to use when writing tests for your MooseX::Daemonize-based modules.

EXPORTED FUNCTIONS

<B>daemonize_ok ( B>$daemon<B>, ?$msg )B> This will attempt to daemonize your $daemon returning ok on success and not ok on failure.
<B>check_test_output ( B>$daemon<B> )B> This is expected to be used with a $daemon which does the <B>Test::MooseX::Daemonize::TestableB> role (included in this package — see the source for more info). It will collect the test output from your daemon and apply it in the parent process by mucking around with Test::Builder stuff, again, read the source for more info. If we get time we will document this more thoroughly.

SEE ALSO

MooseX::Daemonize

SUPPORT

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Daemonize> (or bug-MooseX-Daemonize@rt.cpan.org <mailto:bug-MooseX-Daemonize@rt.cpan.org>).

There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html>.

There is also an irc channel available for users of this distribution, at #moose on irc.perl.org <irc://irc.perl.org/#moose>.

AUTHORS

o Stevan Little <stevan.little@iinteractive.com>
o Chris Prather <chris@prather.org>

COPYRIGHT AND LICENCE

This software is copyright (c) 2007 by Chris Prather.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEST::MOOSEX::DAEMONIZE (3) 2016-02-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.