Tapper::Cmd::Testrun
This project offers backend functions for all projects that manipulate testruns or preconditions in the database. This module handles the testrun part.
use Tapper::Cmd::Testrun; my $bar = Tapper::Cmd::Testrun->new(); $bar->add($testrun); ...
Tapper::Cmd::Testrun - Backend functions for manipluation of testruns in the database
Create new testruns from one element of a test plan (actually a test plan instance) that contains all information including requested hosts and features. If the new testruns belong to a test plan instance the function expects the id of this instance as second parameter. If the instance id is empty the function can also be used to create testruns from a testplan like layout without actually using test plan features, i.e. without creating a link between the new testruns and a test plan (instance).
@param hash ref - test plan element @param instance - test plan instance id
@return array - testrun ids
Add a new testrun. Owner/owner_id and requested_hosts/requested_host_ids allow to specify the associated value as id or string which will be converted to the associated id. If both values are given the id is used and the string is ignored. The function expects a hash reference with the following options: -- optional -- * requested_host_ids - array of int or * requested_hosts - array of string
* notes - string * shortname - string * topic - string * date - DateTime * instance - int
* owner_id - int or * owner - string
@param hash ref - options for new testrun
@return success - testrun id) @return error - exception
@throws exception without class
Changes values of an existing testrun. The function expects a hash reference with the following options (at least one should be given):
* hostname - string * notes - string * shortname - string * topic - string * date - DateTime * owner_id - int or * owner - string
@param int - testrun id @param hash ref - options for new testrun
@return success - testrun id @return error - undef
Delete a testrun with given id. Its named del instead of delete to prevent confusion with the buildin delete function.
@param int - testrun id
@return success - 0 @return error - error string
Insert a new testrun into the database. All values not given are taken from the existing testrun given as first argument.
@param int - id of original testrun @param hash ref - different values for new testrun
@return success - testrun id @return error - exception
AMD OSRC Tapper Team, <tapper at amd64.org>
<tapper at amd64.org>
Copyright 2012 AMD OSRC Tapper Team, all rights reserved.
This program is released under the following license: freebsd
AMD OSRC Tapper Team <tapper@amd64.org>
This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Tapper::Cmd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::Cmd
CPAN shell
perl -MCPAN -e shell install Tapper::Cmd
For more information on module installation, please visit the detailed CPAN module installation guide.