lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.tests.Configurators Class Reference

Configuration procedures for TestBase methods. More...

Classes

interface  Configurator
 Function to adapts a given target configuration. More...

Static Public Member Functions

static boolean disableThreading (TargetConfig config)
 Configure the given test to use single-threaded execution.
static boolean makeFlexPRETCompatible (TargetConfig config)
static boolean makeFlexPRETCompatibleUnthreaded (TargetConfig config)
static boolean makePatmosCompatible (TargetConfig config)
static boolean makePatmosCompatibleUnthreaded (TargetConfig config)
static boolean makeZephyrCompatible (TargetConfig config)
static boolean makeZephyrCompatibleUnthreaded (TargetConfig config)
static boolean noChanges (TargetConfig config)
 Make no changes to the configuration.

Detailed Description

Configuration procedures for TestBase methods.

Author
Clément Fournier
Marten Lohstroh

Member Function Documentation

◆ disableThreading()

boolean org.lflang.tests.Configurators.disableThreading ( TargetConfig config)
static

Configure the given test to use single-threaded execution.

For targets that provide a threaded and an unthreaded runtime, this configures using the unthreaded runtime. For targets that do not distinguish threaded and unthreaded runtime, the number of workers is set to 1.

Parameters
configThe target configuration to alter.
Returns
True if successful, false otherwise.

◆ makeFlexPRETCompatible()

boolean org.lflang.tests.Configurators.makeFlexPRETCompatible ( TargetConfig config)
static

FlexPRET has a maximum of eight hardware threads; override the chosen number of worker threads to be 0 (meaning run-time selects it).

This is to avoid failing tests that have e.g., workers: 16.

◆ makeFlexPRETCompatibleUnthreaded()

boolean org.lflang.tests.Configurators.makeFlexPRETCompatibleUnthreaded ( TargetConfig config)
static

◆ makePatmosCompatible()

boolean org.lflang.tests.Configurators.makePatmosCompatible ( TargetConfig config)
static

Patmos has a maximum of eight hardware threads; override the chosen number of worker threads to be 0 (meaning run-time selects it).

This is to avoid failing tests that have e.g., workers: 16.

◆ makePatmosCompatibleUnthreaded()

boolean org.lflang.tests.Configurators.makePatmosCompatibleUnthreaded ( TargetConfig config)
static

◆ makeZephyrCompatible()

boolean org.lflang.tests.Configurators.makeZephyrCompatible ( TargetConfig config)
static

◆ makeZephyrCompatibleUnthreaded()

boolean org.lflang.tests.Configurators.makeZephyrCompatibleUnthreaded ( TargetConfig config)
static

◆ noChanges()

boolean org.lflang.tests.Configurators.noChanges ( TargetConfig config)
static

Make no changes to the configuration.

Parameters
configThe target configuration.
Returns
True

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/testFixtures/java/org/lflang/tests/Configurators.java