Configuration procedures for TestBase methods.
More...
Configuration procedures for TestBase methods.
- Author
- Clément Fournier
-
Marten Lohstroh
◆ 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
-
| config | The 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
-
| config | The 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