NAME

Tapper::Cmd - Tapper - Backend functions for CLI and Web

SYNOPSIS

This project offers backend functions for all projects that manipulate testruns or preconditions in the database. This module is the base module that contains common functions of all modules in the project. No such functions exist yet.

use Tapper::Cmd::Testrun;
use Tapper::Cmd::Precondition;

my $foo = Tapper::Cmd::Precondition->new();
$foo->add($precondition);

my $bar = Tapper::Cmd::Testrun->new();
$bar->add($testrun);
...

FUNCTIONS

assign_preconditions

Assign a list of preconditions to a testrun. Both have to be given as valid ids.

@param int - testrun id @param array of int - precondition ids

@return success - 0 @return error - error string

apply_macro

Process macros and substitute using Template::Toolkit. This function allows to access reportdata and use dpath in testplans.

@param string - file name @param hashref - containing substitutions @optparam string - path to more include files

@return success - text with applied macros @return error - die with error string

AUTHORS

  • AMD OSRC Tapper Team <tapper@amd64.org>

  • Tapper Team <tapper-ops@amazon.com>

COPYRIGHT AND LICENSE

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

This is free software, licensed under:

The (two-clause) FreeBSD License