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

    Test::Parser::KernelBuild 1.5

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Bryce Harrington | More programs
    Perl Artistic License / FREE
    January 5th, 2008, 01:09 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Test::Parser::KernelBuild description

    Test::Parser::KernelBuild is a Perl module to parse output from Linux kernel builds.

    Test::Parser::KernelBuild is a Perl module to parse output from Linux kernel builds.

    SYNOPSIS

    use Test::Parser::KernelBuild;

    my $parser = new Test::Parser::KernelBuild;
    $parser->parse($text);
    printf("Num Errors: n", $parser->num_errors());
    printf("Num Warnings: n", $parser->num_warnings());

    Additional information is available from the subroutines listed below and from the Test::Parser baseclass.

    This module provides a way to extract information out of kernel builds, suitable for use in kernel test harnesses, similar to if you did `cat build.log | grep 'errors:' | wc -l`, except that this module also checks if the system is in the 'make config' or 'make bzImage' stages and skips any false positives that might be encountered there.

    FUNCTIONS

    Also see Test::Parser for functions available from the base class.

    new()

    Creates a new Test::Parser::KernelBuild instance. Also calls the Test::Parser base class' new() routine. Takes no arguments.

    make_targets()

    Returns a list of the different targets that were built by make.

    config_file()

    Returns the name of the kernel .config file used, if any

    states()

    Returns a list of the various steps in the build process (e.g. config, make, modules_install, etc.)

    Override of Test::Parser's default parse_line() routine to make it able to parse kernel build logs.

    config_file()

    Returns the config file name, if one is indicated in the build log output. The parser expects this appears in a line of the form: "^Using default config file '(.+)'$"

    num_states()

    The number of states the parser noticed

    states()

    Returns a reference to an array of the different build states (make config, make, make modules_install, etc.) found in the build.

    num_make_targets()

    The number of make targets seen during the build stage.

    make_targets()

    Returns a hash reference

    warnings
    errors
    states
    make_targets

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl parser | kernel builds | Perl module | kernel | builds | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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