Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Parrot::Configure::Options::Test 0.5.2

    Download button

    No screenshots available
    Downloads: 380  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    James E Keenan | More programs
    Perl Artistic License / FREE
    February 11th, 2008, 00:47 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Parrot::Configure::Options::Test description

    Parrot::Configure::Options::Test is a Perl module used to run configuration and build tests along with Configure.pl.

    Parrot::Configure::Options::Test is a Perl module used to run configuration and build tests along with Configure.pl.

    SYNOPSIS

    In Configure.pl:
    use Parrot::Configure::Options;
    use Parrot::Configure::Options::Test;

    $args = process_options( {
    argv => [ @ARGV ],
    mode => q{configure},
    } );

    $opttest = Parrot::Configure::Options::Test->new($args);

    $opttest->run_configure_tests();

    $opttest->run_build_tests();
    On command line:
    # run tests of configuration tools, then configure
    perl Configure.pl --test=configure

    # configure, then run tests of build tools
    perl Configure.pl --test=build

    # run tests of configuration tools, then configure,
    # then run tests of build tools
    perl Configure.pl --test

    Test suites have been constructed which test those of Parrot's configuration and build tools that are written in Perl 5. These tests are not necessarily run when you invoke make test. In any event, running these tests as part of make test is, in a certain sense, running them too late. If you have successfully called Configure.pl and make, you have implicitly demonstrated that the configuration and build tools work (for the most part), so running tests of those tools post-make is somewhat redundant.

    On the other hand, tests of the configuration tools are meaningful if run before Configure.pl is invoked and, similarly, tests of the build tools are meaningful if run before make is invoked. Parrot::Configure::Options::Test provides functionality for running such tests.

    SUBROUTINES

    new()

    Purpose
    Parrot::Configure::Options::Test constructor.
    Arguments
    One argument: The hash reference which is the return value of Parrot::Configure::Options::process_options().
    Return Value
    Parrot::Configure::Options::Test object.
    Comment

    run_configure_tests()

    Purpose
    Run tests of Parrot's configuration tools.
    Arguments
    None.
    Return Value
    None.
    Comments
    The tests to be executed are listed in @Parrot::Configure::Options::Test::preconfiguration_tests. Edit that list to run different tests. Currently, that array runs all tests in t/configure/*.t.

    run_build_tests()

    Purpose
    Run tests of Parrot's build tools. Also, run tests of certain aspects of the configuration process which, for legacy reasons, must run after Configure.pl has completed execution.
    Arguments
    None.
    Return Value
    None.
    Comments
    The tests to be executed are listed in @Parrot::Configure::Options::Test::postconfiguration_tests. Edit that list to run different tests. Currently, that array runs all tests in:

    t/postconfigure/*.t
    t/tools/pmc2cutils/*.t
    t/tools/ops2cutils/*.t
    t/tools/ops2pmutils/*.t

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    configuration tests | build tests | Perl module | Parrot | configuration | build

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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