fuego board function lib.sh

Description [edit section]

fuego_board_function_lib.sh is library of shell functions for performing certain board-side operations in a distribution-independent way. This set of utility functions is provided so that commonly used operations can be performed on a variety of distributions (both desktop and embedded distributions of Linux) without having to write special-case implementations.

The library is written purely in POSIX, so it can be used for board-side testing on almost all Linux platforms.

The library is normally copied to the board during the test's deploy phase. It resides in found in the host computer in the 'scripts' directory. This is found at /fuego-core/engine/scripts/fuego_board_function_lib.sh inside the docker container.

Deploying the library [edit section]

To put the script on board being tested, copy it to the board during the test's 'deploy' phase (in test_deploy in the test's fuego_test.sh file), with a command like so:

Using the library [edit section]

Once the script is on the board, you can use it in your test's board-side shell script by sourc'ing it into the script, and calling its functions.

Assuming you have a shell script running in the $BOARD_TESTDIR/fuego.$TESTDIR directory, you could have the following lines inside your script:

This 'sources' the script (function library) into your current shell environment, and then calls the 'set_init_manager' routine, which is one of the functions in the library.

Functionality overview [edit section]

fuego_board_function_lib.sh supports the following operations:

Function reference [edit section]