ITF contract map

11 packs, 21 contracts, 35 capability factories, 14 actions, 0 disagreements. Generated by itf contracts map --format html.

Contracts

application.running state, v1, stable

The application under test is running on the target.

Offered by

nobody

Needed by

none

capture.running state, v1, stable

A packet capture is running.

Offered by

  • pcap.start_on_host -
  • pcap.start -
  • sim.capture_start -

Needed by

none

console.open state, v1, stable

A console is open and recording.

Offered by

  • qemu.open_console -
  • serial.open -

Needed by

none

descriptor.credentials capability, v1, stable

How to log in: a user and a password or a key file.

suggested role: credentials

Members

  • user: str (required): Account name.
  • password: str | None (required): Password, or None when a key is used.
  • key_path: str | None (required): Path of a private key file, or None when a password is used.

Guarantees

  • user is a non-empty string.

Offered by

  • net.key key_path, password, user
  • net.password key_path, password, user
  • qemu.credentials key_path, password, user

Needed by

  • sim.shell slot credentials expects user
  • ssh.shell slot credentials expects key_path, password, user

Conformance checks

  • user_is_a_nonempty_string
  • a_secret_is_a_string_or_none

descriptor.endpoint capability, v1, stable

Where a service listens: a host and a TCP port.

suggested role: endpoint

Members

  • host: str (required): Address or name reachable from the test host.
  • port: int (required): TCP port, 1 to 65535.

Guarantees

  • host is a non-empty string and port an integer in 1..65535.

Offered by

  • docker.endpoint host, port
  • net.endpoint host, port
  • qemu.endpoint host, port

Needed by

  • dlt.receive_tcp slot endpoint expects host, port
  • ping.ping slot endpoint expects host
  • ping.pinger slot endpoint expects host
  • sim.logs slot endpoint expects host, port
  • sim.shell slot endpoint expects host, port
  • ssh.shell slot endpoint expects host, port

Conformance checks

  • host_is_a_nonempty_string
  • port_is_a_valid_tcp_port

diagnostics.core_dump capability, v1, stable

Copy the target's core files to the host, when the test or a policy decides to.

suggested role: core_dumps

Members

  • collect(output_dir: str) -> list[str] (required): Copies the core files that are new or changed since the last collect into output_dir and returns their local paths; remote files are kept.

Guarantees

  • A file is never written outside output_dir.
  • A core file that has not changed is not copied twice.

Offered by

  • core_dump.collector collect

Needed by

none

exec.command capability, v1, stable

Run one shell command and get its exit code and output.

suggested role: command

Members

  • exec(command: str, timeout: float = 30.0) -> tuple[int, bytes] (required): Returns the exit code and the output as bytes, stdout followed by stderr. A nonzero exit is returned, never raised. Timeout enforcement is factory-specific: implementations that can cancel a running command raise TimeoutError when the requested limit expires; callers must not rely on portable timeout enforcement.

Guarantees

  • A nonzero exit code is returned, not raised.
  • The output contains what the command wrote to stdout and to stderr.

Offered by

  • docker.exec exec
  • localhost.exec exec
  • serial.exec exec
  • sim.exec exec
  • ssh.exec exec

Needed by

  • core_dump.collector slot command expects exec

Conformance checks

  • output_and_exit_code_are_returned
  • a_failing_command_reports_its_exit_code_without_raising
  • stderr_is_part_of_the_output

exec.console capability, v1, stable

A console (UART, emulator serial port) whose output is recorded from the moment it opens.

suggested role: console

Members

  • open() -> None (required): Opens the console and starts recording; normally done by the state, not by tests.
  • is_open() -> bool (required): True while the console is open and its reader is healthy.
  • close() -> None (required): Stops recording and releases the device; called at teardown.
  • write(text: str) -> None (required): Sends one line of text (a newline is appended). Raises RuntimeError when not open.
  • mark() -> int (required): A cursor for lines() and wait_for(); only lines received after this call count.
  • lines(since: int = 0) -> list[str] (required): The recorded lines, from the cursor `since` (default: everything still buffered).
  • wait_for(pattern: str, timeout: float = 30.0, *, since: int | None = None, regex: bool = False) -> str | None (required): The first line containing (or matching) the pattern after `since` (default now), or None on timeout.
  • run(command: str, timeout: float = 30.0) -> tuple[int, str] (required): Runs a shell command on the console; returns exit code and output without echo or marker.

Guarantees

  • Output printed since the console opened is recorded, not only output after the first read.
  • lines(since=mark) returns only lines received after the mark was taken.
  • run reports the exit code of the command.

Offered by

  • qemu.console close, is_open, lines, mark, open, run, wait_for, write
  • serial.console close, is_open, lines, mark, open, run, wait_for, write
  • serial.pty_console close, is_open, lines, mark, open, run, wait_for, write

Needed by

  • serial.exec slot console expects run
  • qemu.open_console slot console expects is_open, open
  • serial.open slot console expects is_open, open

Conformance checks

  • the_console_is_open
  • the_console_recorded_output_since_it_opened
  • run_reports_the_exit_code_and_the_output
  • written_text_is_seen_after_a_mark

exec.process capability, v1, stable

Start a program asynchronously and control it through a handle.

suggested role: process

Members

  • spawn(binary_path: str, args: list[str] | None = None, cwd: str = '/') -> AsyncProcess (required): Starts the program (a plain command line is accepted as the first argument) in `cwd` and returns without waiting. The handle offers pid(), is_running(), wait(timeout_s), stop(), get_exit_code() and get_output().

Guarantees

  • spawn returns before the program ends.
  • wait returns the program's exit code, and the handle then reports it is no longer running.
  • stop ends a running program (exit code 143 or 137) and the handle then reports it is not running.
  • get_output returns what the program wrote to stdout and stderr.
  • The program starts in the requested working directory.

Offered by

  • docker.process spawn, wrap_exec
  • localhost.process spawn
  • ssh.process spawn, wrap_exec

Needed by

  • dlt.on_target slot process expects spawn

Conformance checks

  • a_process_reports_pid_running_and_exit_code
  • stop_terminates_a_long_running_process
  • output_is_captured
  • cwd_is_honoured

exec.shell capability, v1, stable

An open shell session with ITF's original `Ssh` command API.

suggested role: shell

Members

  • execute_command_output(cmd: str, timeout: float = 30, max_exec_time: float = 180, logger_in=None, verbose: bool = True, separate_stderr: bool = True) -> tuple[int, list[str], list[str]] (required): Returns the exit code, the stdout lines and the stderr lines, each line keeping its newline; stderr is merged into stdout unless separate_stderr. The exit code is -1 when the command exceeds max_exec_time.
  • execute_command(cmd: str, timeout: float = 30, max_exec_time: float = 180, logger_in=None, verbose: bool = True) -> int (required): Returns the exit code; never raises on a nonzero exit.

Guarantees

  • Line splitting preserves each newline.
  • A command exceeding max_exec_time reports exit code -1.

Offered by

  • sim.shell close, connect, endpoint, execute_command, execute_command_output, is_connected, platform
  • ssh.shell __enter__, __exit__, close, connect, endpoint, execute_command, execute_command_output, get_paramiko_client, is_connected

Needed by

  • ssh.exec slot shell expects execute_command, execute_command_output, get_paramiko_client
  • ssh.process slot shell expects execute_command, execute_command_output, get_paramiko_client
  • ssh.files slot shell expects endpoint, execute_command, get_paramiko_client
  • sim.open slot shell expects connect, is_connected, platform
  • ssh.open slot shell expects connect, endpoint, is_connected

Conformance checks

  • execute_command_returns_the_exit_code
  • stdout_and_stderr_can_be_kept_apart_or_merged
  • line_splitting_is_preserved
  • a_command_running_too_long_reports_minus_one

files.transfer capability, v1, stable

Copy files between the test host and the target.

suggested role: files

Members

  • __enter__() -> object (required): Returns this provider, acquiring transfer-scoped resources if needed.
  • __exit__(exc_type, exc_val, exc_tb) -> bool | None (required): Releases transfer-scoped resources without suppressing exceptions or closing the owning platform or shared shell. The provider remains usable after exit.
  • upload(local_path: str, remote_path: str) -> None (required): Copies a host file to the target, creating the destination directory. Raises FileNotFoundError when the local file does not exist.
  • download(remote_path: str, local_path: str) -> None (required): Copies a target file to the host, creating the destination directory.

Guarantees

  • A file uploaded and downloaded again has the same content.
  • Missing destination directories are created.
  • The target sees the uploaded file at the remote path (a command can read it).
  • Entering a context returns the provider itself; successful and exceptional exits leave it reusable.
  • Context exit never suppresses exceptions or takes ownership of the platform or shared shell.

Offered by

  • docker.files __enter__, __exit__, download, upload
  • localhost.files __enter__, __exit__, download, upload
  • ssh.files __enter__, __exit__, download, download_dir, exists, file_exists, get_directory_size, get_directory_size_excluding_files, get_file_size, list_dirs_and_files, list_dirs_and_files_name, listdir, make_directory, remove, rmdir, stat, upload, upload_dir, walk

Needed by

  • core_dump.collector slot files expects download
  • dlt.on_target slot files expects upload

Conformance checks

  • upload_then_download_round_trips
  • downloading_creates_the_local_directory
  • uploading_a_missing_source_raises_file_not_found
  • contexts_preserve_identity_errors_and_reusability
  • remote_file_management

image.present state, v1, stable

The software image under test is installed on the platform.

Offered by

nobody

Needed by

none

logs.active state, v1, stable

The session is subscribed to the target's log stream.

Offered by

  • dlt.start_receive -
  • sim.subscribe -

Needed by

none

logs.on_target capability, v1, stable

dlt-receive run on the target itself, started and stopped by the test.

suggested role: dlt_on_target

Members

  • start(transport, host_ip='127.0.0.1', target_ip='127.0.0.1', multicast_ips=None, print_to_stdout=True, output_file=None) -> ContextManager[DltReceiver] (required): Runs one receiver over transport ("tcp", "udp" or Protocol) and stops it when the block ends; the receiver has the process API plus dlt_file, the target path it records to.
  • close() -> None (required): Stops every receiver still running; called when the role is torn down.

Guarantees

  • Constructing the role touches nothing on the target.
  • No receiver started through the role outlives it.

Offered by

  • dlt.on_target close, start

Needed by

none

net.ping capability, v1, stable

Ask whether a target answers ICMP echo, and wait for it to come up or go down.

suggested role: ping

Members

  • host: str (required): The address being pinged.
  • ping() -> bool (required): One echo request; True when a reply arrives in time.
  • wait_up(timeout: float | None = None) -> bool (required): Polls until the target answers; False on timeout.
  • wait_down(timeout: float | None = None) -> bool (required): Polls until the target stops answering; False on timeout.

Guarantees

  • ping returns a boolean and never raises for an unreachable target.

Offered by

  • ping.ping host, ping, ping_lost, wait_down, wait_up
  • ping.pinger host, ping, ping_lost, wait_down, wait_up

Needed by

  • ping.await_boot slot ping expects host, ping, wait_up

Conformance checks

  • host_is_a_nonempty_string
  • ping_returns_a_boolean

network.reachable state, v1, stable

The target's endpoint accepts connections from the test host.

Offered by

  • sim.open -
  • ssh.open -

Needed by

none

observe.capture capability, v1, stable

A packet capture the test can start, stop and read.

suggested role: capture

Members

  • start() -> None (required): Starts capturing; normally done by the state, not by tests.
  • stop() -> None (required): Stops capturing and finalises the file; idempotent.
  • running() -> bool (required): True while the capture process is alive.
  • pathPath (a property) (optional): The capture file.
  • window(name: str, ready_timeout: float = 5.0) -> ContextManager[Path] (optional): Captures one block of a test into its own file, named after `name`, and yields its path.

Guarantees

  • running() is true while a capture is on.

Offered by

  • pcap.capture path, running, start, stop, window
  • sim.capture interface, packets, record, running, start, stop

Needed by

  • pcap.start_on_host slot capture expects running, start
  • pcap.start slot capture expects running, start
  • sim.capture_start slot capture expects running, start

observe.logs capability, v1, stable

Log messages the session receives from the target (DLT), searchable by the test.

suggested role: logs

Members

  • is_active() -> bool (required): True while the stream delivers messages; the probe of the state `logs.active`.
  • lines() -> list[DltMessage] (required): Every buffered message in arrival order; raises RuntimeError when the stream is dead.
  • filter(apid: str | None = None, ctid: str | None = None) -> list[DltMessage] (optional): The buffered messages of one application id and context id, in arrival order.

Guarantees

  • A message sent on the target arrives in lines() within seconds.
  • Where filter is offered, ids that no message has give an empty list.

Offered by

  • dlt.receive __enter__, __exit__, activate, close, deactivate, exit_code, file_name, filter, is_active, is_running, kill_process, lines, monitor_process, output, owned_by, path, record, restart_process, start_process, subscribe, terminate, wait_to_finish, window
  • dlt.receive_tcp __enter__, __exit__, activate, close, deactivate, exit_code, file_name, filter, is_active, is_running, kill_process, lines, monitor_process, output, owned_by, path, record, restart_process, start_process, subscribe, terminate, wait_to_finish, window
  • sim.logs close, endpoint, is_active, lines, platform, subscribe

Needed by

  • dlt.start_receive slot logs expects is_active, subscribe
  • sim.subscribe slot logs expects is_active, subscribe

platform.instance capability, v1, stable

The platform a target runs on, with a lifecycle the planner can bring up and observe.

suggested role: platform

Members

  • start() -> None (required): Brings the platform up; called by the action for platform.up, not by tests.
  • running() -> bool (required): True while the platform is up; the probe of platform.up.
  • restart() -> None (required): Restarts the platform. Anything connected to it (SSH sessions) is dropped.
  • stop() -> None (required): Takes the platform down and releases what it created; idempotent.

Guarantees

  • running() is true once the platform is up.
  • After restart() the platform is running again within a bounded time.
  • stop() can be called more than once.

Offered by

  • docker.platform client, container, exec, gateway, host_port, ip, restart, running, start, stop
  • localhost.platform is_local, restart, root, running, start, stop
  • qemu.platform close, console, disk, kernel, qemu_config, restart, rootfs, running, start, stop, terminate
  • sim.platform exec, fs, gen, ip, log, name, restart, running, start, stop

Needed by

  • docker.exec slot platform expects client, container
  • docker.process slot platform expects client, container
  • docker.files slot platform expects client, container
  • docker.endpoint slot platform expects host_port, ip
  • localhost.exec slot platform expects root
  • localhost.process slot platform expects root
  • localhost.files slot platform expects is_local
  • qemu.endpoint slot platform expects qemu_config
  • qemu.credentials slot platform expects qemu_config
  • qemu.console slot platform expects console
  • sim.logs slot platform expects gen, log
  • sim.exec slot platform expects exec, running
  • sim.shell slot platform expects exec, gen
  • docker.start slot platform expects running, start
  • localhost.start slot platform expects running, start
  • qemu.start slot platform expects running, start
  • sim.start slot platform expects running, start

Conformance checks

  • the_platform_is_running_once_up
  • a_restart_leaves_a_running_platform

platform.up state, v1, stable

The platform exists and is running.

Offered by

  • docker.start -
  • localhost.start -
  • ping.await_boot -
  • qemu.start -
  • sim.start -

Needed by

none

shell.open state, v1, stable

A shell session is connected and can run commands.

Offered by

  • sim.open -
  • ssh.open -

Needed by

none

Capability factories

core_dump.collector offers diagnostics.core_dump

shape: collect

Needs

  • slot command: exec.command expects exec
  • slot files: files.transfer expects download

Settings

none

observed by a later process: no

dlt.on_target offers logs.on_target

shape: close, start

Needs

  • slot files: files.transfer expects upload
  • slot process: exec.process expects spawn

Settings

  • binary_path str | null default None
  • remote_path str default /tmp/dlt-receive

observed by a later process: no

dlt.receive offers observe.logs

shape: __enter__, __exit__, activate, close, deactivate, exit_code, file_name, filter, is_active, is_running, kill_process, lines, monitor_process, output, owned_by, path, record, restart_process, start_process, subscribe, terminate, wait_to_finish, window

Needs

none

Settings

  • host_ip str default 127.0.0.1
  • multicast_ips str default
  • file_name str | null default None
  • print_to_stdout bool default False
  • binary_path str | null default None

observed by a later process: no

dlt.receive_tcp offers observe.logs

shape: __enter__, __exit__, activate, close, deactivate, exit_code, file_name, filter, is_active, is_running, kill_process, lines, monitor_process, output, owned_by, path, record, restart_process, start_process, subscribe, terminate, wait_to_finish, window

Needs

  • slot endpoint: descriptor.endpoint expects host, port

Settings

  • host_ip str default 127.0.0.1
  • multicast_ips str default
  • file_name str | null default None
  • print_to_stdout bool default False
  • binary_path str | null default None

observed by a later process: no

docker.endpoint offers descriptor.endpoint

shape: host, port

Needs

  • slot platform: platform.instance expects host_port, ip

Settings

  • port int default 22
  • protocol str default tcp
  • via str default auto

observed by a later process: no

docker.exec offers exec.command

shape: exec

Needs

  • slot platform: platform.instance expects client, container

Settings

none

observed by a later process: no

docker.files offers files.transfer

shape: __enter__, __exit__, download, upload

Needs

  • slot platform: platform.instance expects client, container

Settings

none

observed by a later process: no

docker.platform offers platform.instance

shape: client, container, exec, gateway, host_port, ip, restart, running, start, stop

Needs

none

Settings

  • image str required
  • name str | null default None
  • command str | null default sleep infinity
  • init bool default True
  • shm_size str | null default 2G
  • privileged bool default False
  • environment str | null default None
  • ports str | null default None
  • volumes str | null default None
  • network str | null default None
  • network_mode str | null default None
  • cap_add str | null default None
  • devices str | null default None
  • isolated_network bool default True
  • bootstrap str | null default None
  • extract_coverage bool default False
  • coverage_dir str | null default None
  • client_timeout int default 180
  • docker_sdk_kwargs str | null default None

observed by a later process: when its settings allow

docker.process offers exec.process

shape: spawn, wrap_exec

Needs

  • slot platform: platform.instance expects client, container

Settings

none

observed by a later process: no

localhost.exec offers exec.command

shape: exec

Needs

  • slot platform: platform.instance expects root

Settings

none

observed by a later process: no

localhost.files offers files.transfer

shape: __enter__, __exit__, download, upload

Needs

  • slot platform: platform.instance expects is_local

Settings

none

observed by a later process: no

localhost.platform offers platform.instance

shape: is_local, restart, root, running, start, stop

Needs

none

Settings

  • root str | null default None

observed by a later process: when its settings allow

localhost.process offers exec.process

shape: spawn

Needs

  • slot platform: platform.instance expects root

Settings

none

observed by a later process: no

net.endpoint offers descriptor.endpoint

shape: host, port

Needs

none

Settings

  • host str required
  • port int required

observed by a later process: no

net.key offers descriptor.credentials

shape: key_path, password, user

Needs

none

Settings

  • user str required
  • key_path str required secret

observed by a later process: no

net.password offers descriptor.credentials

shape: key_path, password, user

Needs

none

Settings

  • user str required
  • password str secret

observed by a later process: no

pcap.capture offers observe.capture

shape: path, running, start, stop, window

Needs

none

Settings

  • interface str required
  • out_dir str | null default None
  • filter str | null default None
  • binary_path str | null default None
  • name str | null default None

observed by a later process: no

ping.ping offers net.ping

shape: host, ping, ping_lost, wait_down, wait_up

Needs

  • slot endpoint: descriptor.endpoint expects host

Settings

none

observed by a later process: no

ping.pinger offers net.ping

shape: host, ping, ping_lost, wait_down, wait_up

Needs

  • slot endpoint: descriptor.endpoint expects host

Settings

  • boot_timeout float default 180.0
  • interval float default 1.0
  • reply_timeout float default 1.0
  • binary_path str default ping

observed by a later process: no

qemu.console offers exec.console

shape: close, is_open, lines, mark, open, run, wait_for, write

Needs

  • slot platform: platform.instance expects console

Settings

none

observed by a later process: no

qemu.credentials offers descriptor.credentials

shape: key_path, password, user

Needs

  • slot platform: platform.instance expects qemu_config

Settings

none

observed by a later process: no

qemu.endpoint offers descriptor.endpoint

shape: host, port

Needs

  • slot platform: platform.instance expects qemu_config

Settings

none

observed by a later process: no

qemu.platform offers platform.instance

shape: close, console, disk, kernel, qemu_config, restart, rootfs, running, start, stop, terminate

Needs

none

Settings

  • config_file str required
  • kernel str | null default None
  • rootfs str | null default None
  • disk str | null default None
  • binary_dir str default /usr/bin
  • serial_backend str default mon:stdio
  • panic_marker str default Shutdown[

observed by a later process: no

serial.console offers exec.console

shape: close, is_open, lines, mark, open, run, wait_for, write

Needs

none

Settings

  • device str required
  • baudrate int default 115200
  • logfile str | null default None
  • buffer int default 20000
  • read_timeout float default 0.2
  • stop_timeout float default 5.0

observed by a later process: no

serial.exec offers exec.command

shape: exec

Needs

  • slot console: exec.console expects run

Settings

none

observed by a later process: no

serial.pty_console offers exec.console

shape: close, is_open, lines, mark, open, run, wait_for, write

Needs

none

Settings

  • shell str default /bin/sh
  • banner str default ITF PTY CONSOLE READY
  • logfile str | null default None
  • buffer int default 20000
  • read_timeout float default 0.2
  • stop_timeout float default 5.0

observed by a later process: no

sim.capture offers observe.capture

shape: interface, packets, record, running, start, stop

Needs

none

Settings

  • interface str default eth0

observed by a later process: no

sim.exec offers exec.command

shape: exec

Needs

  • slot platform: platform.instance expects exec, running

Settings

none

observed by a later process: no

sim.logs offers observe.logs

shape: close, endpoint, is_active, lines, platform, subscribe

Needs

  • slot endpoint: descriptor.endpoint expects host, port
  • slot platform: platform.instance expects gen, log

Settings

none

observed by a later process: no

sim.platform offers platform.instance

shape: exec, fs, gen, ip, log, name, restart, running, start, stop

Needs

none

Settings

  • name str required
  • ip str default 127.0.0.1
  • state_dir str | null default None

observed by a later process: when its settings allow

sim.shell offers exec.shell

shape: close, connect, endpoint, execute_command, execute_command_output, is_connected, platform

Needs

  • slot credentials: descriptor.credentials expects user
  • slot endpoint: descriptor.endpoint expects host, port
  • slot platform: platform.instance expects exec, gen

Settings

none

observed by a later process: no

ssh.exec offers exec.command

shape: exec

Needs

  • slot shell: exec.shell expects execute_command, execute_command_output, get_paramiko_client

Settings

none

observed by a later process: no

ssh.files offers files.transfer

shape: __enter__, __exit__, download, download_dir, exists, file_exists, get_directory_size, get_directory_size_excluding_files, get_file_size, list_dirs_and_files, list_dirs_and_files_name, listdir, make_directory, remove, rmdir, stat, upload, upload_dir, walk

Needs

  • slot shell: exec.shell expects endpoint, execute_command, get_paramiko_client

Settings

none

observed by a later process: no

ssh.process offers exec.process

shape: spawn, wrap_exec

Needs

  • slot shell: exec.shell expects execute_command, execute_command_output, get_paramiko_client

Settings

none

observed by a later process: no

ssh.shell offers exec.shell

shape: __enter__, __exit__, close, connect, endpoint, execute_command, execute_command_output, get_paramiko_client, is_connected

Needs

  • slot credentials: descriptor.credentials expects key_path, password, user
  • slot endpoint: descriptor.endpoint expects host, port

Settings

  • timeout int default 15
  • keep_alive_interval int | null default None
  • n_retries int default 5
  • retry_interval float default 1.0
  • reuse_session bool default True

observed by a later process: no

Actions

dlt.start_receive makes logs.active true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot logs: observe.logs

docker.start makes platform.up true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot platform: platform.instance

localhost.start makes platform.up true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot platform: platform.instance

pcap.start makes capture.running true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot capture: observe.capture

pcap.start_on_host makes capture.running true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot capture: observe.capture

ping.await_boot makes platform.up true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot ping: net.ping

qemu.open_console makes console.open true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot console: exec.console

qemu.start makes platform.up true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot platform: platform.instance

serial.open makes console.open true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot console: exec.console

sim.capture_start makes capture.running true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot capture: observe.capture

sim.open makes shell.open true

after: -; breaks: -; also: network.reachable; probe: yes (skippable when it holds)

Uses

  • slot shell: exec.shell

sim.start makes platform.up true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot platform: platform.instance

sim.subscribe makes logs.active true

after: -; breaks: -; also: -; probe: yes (skippable when it holds)

Uses

  • slot logs: observe.logs

ssh.open makes shell.open true

after: -; breaks: -; also: network.reachable; probe: yes (skippable when it holds)

Uses

  • slot shell: exec.shell

Packs

core_dump 0.1.0

Explicit collection through composed command and file-transfer slots. The collector has no pytest dependency, startup action or automatic teardown hook. Its consumer decides when to collect and where to put the files.

Factories: core_dump.collector

Actions: -

Prerequisites

  • target command access to Linux or QNX core-file locations
  • target file-transfer access to download discovered core files

dlt 0.1.0

DLT logs use the bundled `dlt-receive` tool. Host UDP and target TCP receive use the same receive API; target-side receive remains available through the on-target capability.

Factories: dlt.on_target, dlt.receive, dlt.receive_tcp

Actions: dlt.start_receive

Prerequisites

  • none beyond the build (dlt-receive and libdlt are built from source)
  • the patched DLT build listens on TCP 13490

docker 0.1.0

A container as the platform, reached through the Docker API (works with any image) and, with the ssh pack, over SSH.

Factories: docker.endpoint, docker.exec, docker.files, docker.platform, docker.process

Actions: docker.start

Prerequisites

  • a Docker-compatible daemon (DOCKER_HOST for Podman)
  • under rootless Podman, publish ports and use docker.endpoint with via=published

localhost 0.1.0

The test host as the platform: commands, processes and files through subprocess.

Factories: localhost.exec, localhost.files, localhost.platform, localhost.process

Actions: localhost.start

Prerequisites

  • none

net 0.1.0

Static descriptors: where a service listens and how to log in.

Factories: net.endpoint, net.key, net.password

Actions: -

Prerequisites

  • none

pcap 0.1.0

A tcpdump capture of an interface.

Factories: pcap.capture

Actions: pcap.start, pcap.start_on_host

Prerequisites

  • CAP_NET_RAW (or root) and the interface on the host

ping 0.1.0

ICMP echo to an address; also how a machine nobody here starts counts as up.

Factories: ping.ping, ping.pinger

Actions: ping.await_boot

Prerequisites

  • net.ipv4.ping_group_range covering the user, or CAP_NET_RAW, or a ping binary

qemu 0.1.0

A QEMU machine as the platform, with its console, endpoint and login.

Factories: qemu.console, qemu.credentials, qemu.endpoint, qemu.platform

Actions: qemu.open_console, qemu.start

Prerequisites

  • qemu-system-* and qemu-img
  • /dev/kvm for acceleration
  • tap networking runs under //scripts:run_under_qemu

serial 0.1.0

A serial console, commands over it, and a pseudo-terminal console for setups without hardware.

Factories: serial.console, serial.exec, serial.pty_console

Actions: serial.open

Prerequisites

  • the serial device

sim 0.1.0

In-memory stand-ins for the platform, shell, log stream and capture, for offline runs.

Factories: sim.capture, sim.exec, sim.logs, sim.platform, sim.shell

Actions: sim.capture_start, sim.open, sim.start, sim.subscribe

Prerequisites

  • none

ssh 0.1.0

An SSH session to a machine, commands, processes and SFTP over it.

Factories: ssh.exec, ssh.files, ssh.process, ssh.shell

Actions: ssh.open

Prerequisites

  • paramiko (pip, locked)