function_report_devlog >> Benchmark.netperf >> Benchmark.fs_mark >> Functional.hello_world >> Functional.pi_tests 

Fuego 1.2 wiki

Login

function test pre check in split format

NAME [edit section]

= NAME =test_pre_check

SYNOPSIS [edit section]

= SYNOPSIS = * test_pre_check

DESCRIPTION [edit section]

= DESCRIPTION =This function is defined in the base test script for a test, and executesany checks required to make sure any pre-requisites for this test areset up and ready.
This function is called from pre_test, before any othertest operations have occurred (but after the connection to the target isestablished).
This function is called from [[function_pre_test|pre_test]], before any othertest operations have occurred (but after the connection to the target isestablished).

Commonly called functions or programs [edit section]

== Commonly called functions or programs ==This function can contain calls to just about any command, but there are somecommon commands used for building Linux source * assert_define  - used to verify that an environment needed for this test is defined * is_on_target - used to verify that a program or file needed for this test is on the target device

EXAMPLES [edit section]

= EXAMPLES =Some sample contents are:{{{#!YellowBoxfunction test_pre_check {    assert_define FUNCTIONAL_BC_EXPR    assert_define FUNCTIONAL_BC_RESULT    is_on_target bc BC_PROGRAM /bin:/usr/bin:/usr/local/bin    assert_define BC_PROGRAM}}}}

ENVIRONMENT and ARGUMENTS [edit section]

Core interfaces and Variables)
= ENVIRONMENT and ARGUMENTS =A number of environment variables are set (see [[Core interfaces]] and [[Variables]])
There are no arguments to this function.
There are no arguments to this function.

RETURN [edit section]

= RETURN =returns non-zero for error.  Usually, if there is some problem,one of the functions called by test_pre_check will abort the current test.

SOURCE [edit section]

= SOURCE =Located in the base script for each test.  The base test scripts are located in /fuego-core/engine/tests/<test_name>.
An example path would be: /fuego-core/engine/tests/Functional.hello_world/fuego_test.sh (inside the Docker container)
An example path would be: ''/fuego-core/engine/tests/Functional.hello_world/fuego_test.sh'' (inside the Docker container)

SEE ALSO [edit section]

pre_test, assert_define, is_on_target, is_on_target_path, is_on_sdk
= SEE ALSO = * [[function_pre_test|pre_test]], [[function_assert_define|assert_define]], [[function_is_on_target|is_on_target]], [[function_is_on_target_path|is_on_target_path]], [[function_is_on_sdk|is_on_sdk]]
TBWiki engine 1.9.3 by Tim Bird