1LIBRARIES.SH(1)       User Contributed Perl Documentation      LIBRARIES.SH(1)
2
3
4

NAME

6       BeakerLib - libraries - mechanism for loading shared test code from
7       libraries
8

DESCRIPTION

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

FUNCTIONS

14       rlImport
15
16       Imports code provided by one or more libraries into the test namespace.
17       The library search mechanism is based on Beaker test hierarchy system,
18       i.e.:
19
20       /component/type/test-name/test-file
21
22       When test-file calls rlImport with 'foo/bar' parameter, the directory
23       path is traversed upwards, and a check for presence of the test
24       /foo/Library/bar/ will be performed. This means this function needs to
25       be called from the test hierarchy, not e.g. the /tmp directory.
26
27       Once library is found, it is sourced and a verifier function is called.
28       The verifier function is cunstructed by composing the library prefix
29       and LibraryLoaded. Library prefix can be defined in the library itself.
30       If the verifier passes the library is ready to use. Also variable
31       <PREFIX>LibraryDir is created and it points to the library folder.
32
33       Usage:
34
35           rlImport --all
36           rlImport LIBRARY [LIBRARY2...]
37
38       --all
39           Read Makefile in current/original directory, pick library
40           requirements up and import them all.
41
42       LIBRARY
43           Must have 'component/library' format. Identifies the library to
44           import.
45
46       Returns 0 if the import of all libraries was successful. Returns non-
47       zero if one or more library failed to import.
48

AUTHORS

50       ·   Petr Muller <muller@redhat.com>
51
52       ·   Dalibor Pospisil <dapospis@redhat.com>
53
54
55
56perl v5.30.1                      2020-01-28                   LIBRARIES.SH(1)
Impressum