07 Dec 2019 01:26:55 UTC
- Distribution: MooseX-Daemonize
- Module version: 0.22
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (1)
- Testers (704 / 4 / 13)
- KwaliteeBus factor: 3
- % Coverage
- License: perl_5
- Perl: v5.8.3
- Activity24 month
- Download (46.17KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userETHER Karen Etheridge 🐾 🌋🦑🇹🇼🇭🇰
Test::MooseX::Daemonize - Tool to help test MooseX::Daemonize applications
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" );
- daemonize_ok ( $daemon, ?$msg )
This will attempt to daemonize your
$daemonreturning ok on success and not ok on failure.
- check_test_output ( $daemon )
This is expected to be used with a
$daemonwhich does the Test::MooseX::Daemonize::Testable 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.
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
Stevan Little <firstname.lastname@example.org>
Chris Prather <email@example.com>
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.
Module Install Instructions
To install MooseX::Daemonize, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install MooseX::Daemonize
For more information on module installation, please visit the detailed CPAN module installation guide.