Plugins Reference#
Available plugins#
Bazel label |
Module path |
Description |
|---|---|---|
N/A |
|
Core plugin. Always active and implicitly enabled. Provides the
base |
|
|
Docker container target. Starts and stops containers per test (or
per session with |
|
|
QEMU virtual machine target. Provides |
|
|
DLT (Diagnostic Log and Trace) capture plugin. Provides the
|
|
|
Requirement traceability plugin. Provides the
|
Target capabilities#
Capability |
Provided by |
Description |
|---|---|---|
|
Docker, QEMU |
|
|
QEMU |
|
|
QEMU |
|
|
Docker, QEMU |
|
|
Docker, QEMU |
|
Target class API#
All concrete target classes inherit the following public methods from
score.itf.core.target.Target.
Method |
Description |
|---|---|
|
Run a command synchronously; returns |
|
Start a binary without blocking; returns an |
|
Copy a file from the test host to the target. |
|
Copy a file from the target to the test host. |
|
Restart the target environment. |
|
Return |
|
Return |
|
Return |
|
Return a copy of all capability strings registered on this target. |
|
Dynamically register an additional capability on the target instance. |
|
Dynamically remove a capability from the target instance. |
|
Convenience wrapper around |
CLI arguments#
The following arguments are accepted by their respective plugins at test
runtime. Pass them via args in py_itf_test or override at the
command line with --test_arg.
Docker plugin#
Argument |
Description |
|---|---|
|
Required. Docker image reference (e.g. |
|
Command run on the host before the container is started. Use this for
setup steps that must complete before the test body runs. |
|
Flag. If set, extracts coverage files ( |
|
Directory to write extracted coverage files. Defaults to
|
QEMU plugin#
Argument |
Description |
|---|---|
|
Required. Path to a JSON configuration file that specifies network settings, SSH port, number of CPU cores, and RAM size. |
|
Path to the QEMU kernel/disk image. Use
|
DLT plugin#
Argument |
Description |
|---|---|
|
Required path to the DLT receive executable used by the plugin.
When using the Bazel |
|
Optional path to a JSON configuration file with DLT network
settings ( |
Core plugin#
Argument |
Description |
|---|---|
|
Keep the target running across all tests in a session instead of creating a fresh target per test function. Speeds up long test suites but means tests share target state. |