NAME

Tapper::Fake::Master - Fake Tapper::MCP::Master for testing purpose

SYNOPSIS

use Tapper::Fake::Master;
my $mcp = Tapper::Fake::Master->new();
$mcp->run();

Attributes

hosts

List of hosts this MCP may use.

dead_child

Number of pending dead child processes.

child

Contains all information about all child processes.

scheduler

Associated Scheduler object.

FUNCTIONS

BUILD

Initializes scheduler on object creation.

WNOHANG

Constant imported from POSIX.pm.

set_interrupt_handlers

Set interrupt handlers for important signals. No parameters, no return values.

@return success - 0

handle_dead_children

Each test run is handled by a child process. All information needed for communication with this child process is kept in $self->child. Reset all these information when the test run is finished and the child process ends.

run_due_tests

Run the tests that are due.

@param hash - containing test run ids accessible through host names

@retval success - 0 @retval error - error string

runloop

Main loop of this module. Checks for new tests and runs them. The looping itself is put outside of function to allow testing.

prepare_server

Create communication data structures used in MCP.

@return

run

Set up all needed data structures then wait for new tests.

AUTHOR

AMD OSRC Tapper Team <tapper@amd64.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..

This is free software, licensed under:

The (two-clause) FreeBSD License