loki.transformations.tests.test_parametrise

A selection of tests for the parametrisation functionality.

Functions

check_arguments_and_parameter(scheduler, ...)

Check the parameters, subroutine and call arguments of each subroutine.

compile_and_test(scheduler, tmp_path[, a, b])

Compile the source code and call the driver function in order to test the results for correctness.

fixture_config()

Default configuration dict with basic options.

fixture_here()

fixture_testdir(here)

test_parametrise_modified_callback(tmp_path, ...)

Testing of the parametrisation functionality with modified callbacks for failed sanity checks.

test_parametrise_modified_callback_wrong_input(...)

Testing of the parametrisation functionality with modified callback for failed sanity checks including test of a failed sanity check.

test_parametrise_non_driver_entry_points(...)

Testing of parametrisation functionality with defined entry points/functions, thus not being the default (driver).

test_parametrise_simple(tmp_path, testdir, ...)

Basic testing of parametrisation functionality.

test_parametrise_simple_replace_by_value(...)

Basic testing of parametrisation functionality including replacing of the variables with the actual values.

test_parametrise_source(tmp_path, testdir, ...)

Test the actual source code without any transformations applied.

fixture_here()
fixture_testdir(here)
fixture_config()

Default configuration dict with basic options.

compile_and_test(scheduler, tmp_path, a=5, b=1)

Compile the source code and call the driver function in order to test the results for correctness.

check_arguments_and_parameter(scheduler, subroutine_arguments, call_arguments, parameter_variables)

Check the parameters, subroutine and call arguments of each subroutine.

test_parametrise_source(tmp_path, testdir, frontend, config)

Test the actual source code without any transformations applied.

test_parametrise_simple(tmp_path, testdir, frontend, config)

Basic testing of parametrisation functionality.

test_parametrise_simple_replace_by_value(tmp_path, testdir, frontend, config)

Basic testing of parametrisation functionality including replacing of the variables with the actual values.

test_parametrise_modified_callback(tmp_path, testdir, frontend, config)

Testing of the parametrisation functionality with modified callbacks for failed sanity checks.

test_parametrise_modified_callback_wrong_input(tmp_path, testdir, frontend, config)

Testing of the parametrisation functionality with modified callback for failed sanity checks including test of a failed sanity check.

test_parametrise_non_driver_entry_points(tmp_path, testdir, frontend, config)

Testing of parametrisation functionality with defined entry points/functions, thus not being the default (driver).