Unix and Linux Discussions Tagged with for each |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
11,331 |
Programming |
|
|
|
4 |
3,871 |
Shell Programming and Scripting |
|
|
|
3 |
1,650 |
Shell Programming and Scripting |
|
|
|
41 |
13,540 |
Shell Programming and Scripting |
|
|
|
3 |
12,434 |
Programming |
|
|
|
0 |
949 |
UNIX and Linux RSS News |
|
|
|
3 |
18,925 |
AIX |
|
|
|
7 |
5,216 |
IP Networking |
|
|
|
9 |
6,829 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,969 |
Shell Programming and Scripting |
|
|
|
1 |
1,929 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
35,106 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,525 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,617 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
7,024 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
18,112 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,275 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
15,377 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
6,535 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
5,192 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,656 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
2,890 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,337 |
IP Networking |
|
|
|
1 |
3,025 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
15,373 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
60,591 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,625 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
9,486 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,624 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,549 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,438 |
IP Networking |
|
|
|
9 |
11,108 |
Cybersecurity |
|
|
|
3 |
29,057 |
Where do I download LINUX & UNIX? |
|
|
|
3 |
2,622 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,306 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
22,395 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,566 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,597 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,623 |
UNIX for Dummies Questions & Answers |
POE::Test::Loops(3pm) User Contributed Perl Documentation POE::Test::Loops(3pm)
NAME
POE::Test::Loops - Reusable tests for POE::Loop authors
SYNOPSIS
#!/usr/bin/perl -w
use strict;
use Getopt::Long;
use POE::Test::Loops;
my ($dir_base, $flag_help, @loop_modules, $flag_verbose);
my $result = GetOptions(
'dirbase=s' => $dir_base,
'loop=s' => @loop_modules,
'verbose' => $flag_verbose,
'help' => $flag_help,
);
if (
!$result or !$dir_base or $flag_help or !@loop_modules
) {
die(
"$0 usage:
",
" --dirbase DIR (required) base directory for tests
",
" --loop MODULE (required) loop modules to test
",
" --verbose show some extra output
",
" --help you're reading it
",
);
}
POE::Test::Loops::generate($dir_base, @loop_modules, $flag_verbose);
exit 0;
DESCRIPTION
POE::Test::Loops contains one function, generate(), which will generate all the loop tests for one or more POE::Loop subclasses.
The "SYNOPSIS" example is a version of poe-gen-tests, which is a stand-alone utility to generate the actual tests. poe-gen-tests also
documents the POE::Test::Loops system in more detail.
FUNCTIONS
generate( $DIRBASE, @LOOPS, $VERBOSE )
Generates the loop tests. DIRBASE is the (relative) directory in which a subdirectory for each of the LOOPS is created. If VERBOSE is set
to a TRUE value some progress reporting is printed.
POE::Test::Loops::generate(
"./t",
[ "POE::Loop::Yours" ],
1,
);
SEE ALSO
POE::Loop and poe-gen-tests.
AUTHOR & COPYRIGHT
See poe-gen-tests.
perl v5.14.2 2012-03-11 POE::Test::Loops(3pm)