test execution flow outline

Here is an outline of the flow of control for test execution in fuego:

This example if for the fictional test Functional.foo:

sample paths [edit section]

The overlay generator is called with the following arguments:

comparison of top-level scripts [edit section]

Here is a comparison of the 3 top-level scripts used by Fuego base scripts:

functional.sh outline:

benchmark.sh outline:

stress.sh outline:

stress.sh is only used by 2 tests, and is a strict subset of the functional test. The 2 tests are: Functional.scrashme and Functional.pi_tests.

Here is a table showing the differences:
step stress.sh functional.sh benchmark.sh
source overlays.sh, set_overlay_vars x x x
source reports.sh x x x
source functions.sh x x x
pre_test x x x
if $Rebuild, build x x x
deploy x x x
test_run x x x
get_testlog x x (called inside bench_processing)
test_processing . x .
set_testres_file . . x
bench_processing . . x
check_create_logrun . . x

FIXTHIS - 1.2 the table (and this page) need updating for the 1.2 release

See function_fetch_results, function_test_fetch_results (used only by LTP), function_post_test

test information [edit section]

jobs definitions [edit section]

As of February 2017, there are 67 job config.xml files under fuego-core/jobs

63 jobs source something besides functions.sh (functions.sh is sourced for the call to post_test)

The job Functional.libpng/config.xml sources 2 items (besides functions.sh) This test is very weird and runs all the phases itself, instead of running a single base script.

The following jobs don't source any shell scripts:

There are 30 Functional job directories, and 30 Benchmark job directories.

The following job directly sources reports.sh, then does gen_report:

The following tests don't start with Functional or Benchmark:

test definitions [edit section]

There are 31 Functional test directories, and 33 Benchmark test directories.

.sh scripts [edit section]

There are 29 Functional tests with .sh files:

There are 31 Benchmark tests with .sh files:

Functional tests not sourcing functional.sh [edit section]

There are 21 Functional .sh files that call functional.sh Here are the ones that don't:

There are 2 Functional tests that source stress.sh

Benchmark tests not sourcing benchmark.sh [edit section]

There are 28 Benchmark tests that source benchmark.sh.

Here are the ones that don't: