loki.batch.tests.conftest module

Utilities for Loki scheduler tests.

The overall structure of the source projects for testing is:

  • projA: - include

    • another_l1.intfb.h

    • another_l2.intfb.h

    • source - another_l1 - another_l2

    • module - header_mod

      • header_type

      • driverA_mod

      • kernelA_mod

      • compute_l1_mod

      • compute_l2_mod

      • driverB_mod

      • kernelB_mod

      • driverC_mod

      • kernelC_mod

      • driverD_mod

      • kernelD_mod

  • projB: - external

    • ext_driver_mod

    • module - ext_kernel_mod

  • projC: - util

    • proj_c_util_mod * routine_one * routine_two

fixture_here()
fixture_testdir(here)
fixture_config()

Default configuration dict with basic options.

fixture_frontend()

Frontend to use.

Not parametrizing the tests as the scheduler functionality should be independent from the specific frontend used. Cannot use OMNI for this as not all tests have dependencies fully resolved.

class VisGraphWrapper(path)

Bases: object

Testing utility to parse the generated callgraph visualisation.

property nodes
property edges