beakerlib-libraries (1) - Linux Man Pages
beakerlib-libraries: libraries - mechanism for loading shared test code from libraries
BeakerLib - libraries - mechanism for loading shared test code from libraries
DESCRIPTIONThis file contains functions for bringing external code into the test namespace.
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.:
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.
Once library is found, it is sourced and a verifier function is called. The verifier function is cunstructed by composing the library prefix and LibraryLoaded. Library prefix can be defined in the library itself. If the verifier passes the library is ready to use. Also variable <PREFIX>LibraryDir is created and it points to the library folder.
rlImport --all rlImport LIBRARY [LIBRARY2...]
- Read Makefile in current/original directory, pick library requirements up and import them all.
- Must have 'component/library' format. Identifies the library to import.
- Petr Muller <muller [at] redhat.com>
Dalibor Pospisil <dapospis [at] redhat.com>