beakerlib-libraries man page

BeakerLib — libraries — mechanism for loading shared test code from libraries

Description

This file contains functions for bringing external code into the test namespace.

Functions

rlImport

Imports code provided by one or more libraries into the test namespace. The library search mechanism is based on Beaker test hierarchy system, i.e.:

/component/type/test-name/test-file

When test-file calls rlImport with 'foo/bar' parameter, the directory path is traversed upwards, and a check for presence of the test /foo/Library/bar/ will be performed. This means this function needs to be called from the test hierarchy, not e.g. the /tmp directory.

Usage:

rlImport LIBRARY [LIBRARY2...]
LIBRARY
Must have 'component/library' format. Identifies the library to import.

Returns 0 if the import of all libraries was successful. Returns non-zero if one or more library failed to import.

Authors

·
Petr Muller <muller@redhat.com>

Info

2015-10-29 perl v5.22.1 User Contributed Perl Documentation