Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Test::SerialFork 0.01

    Download button

    No screenshots available
    Downloads: 299  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.6/5)
    9 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Peter Haworth | More programs
    Perl Artistic License / FREE
    July 25th, 2008, 09:42 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Test::SerialFork description

    Test::SerialFork is a Perl module to run iterations of a test in different processes.

    Test::SerialFork is a Perl module to run iterations of a test in different processes.

    SYNOPSIS

    use Test::More plan => 42;
    use Test::SerialFork;

    my $abc=serial_fork('abc','def','ghi');

    ok(do_my_test($abc),'It works');

    This module allows you to run multiple copies of the same test, specifying a different label for each copy. The label is made available to the test run, and will generally be used to modify its behaviour in some way. Each copy of the test will also be run in a seperate sub-process, to isolate each test run from system-wide changes made by previous runs.

    The module exports a single function, serial_fork(), whose arguments are the labels which will be passed to the subsequent runs of the test. serial_fork() iterates over these labels, forking into two processes each time.

    In the child process, serial_fork() essentially just returns the current label, and the remainder of the test program is run as normal. However, the parent process collects all of the child's output, and integrates it into the main status report generated by the test (test names have the current label prepended to make it clear which run produced each message).

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    run iterations | test iterations | Perl module | Perl | test | iterations



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM