DUT Configuration

Device under Test (DUT)

This configuration dut.yaml describes every aspect of a DUT. Below are the key components:

Required Fields

AttributeTypeDescription
namestringUnique name of dut.
labelstringLabel that identifies the devices group.

Optional Fields

AttributeTypeDescription
attributesobjectAttributes of the DUT.
reservation-systemstringExternal Reservation System to be used for this DUT.

Example

name: Prodrive-Hermes
label: prodrivehermes
attributes:
  Host: <host-address>
  Flasher: <flasher-address>

Pre-Stage

This configuration pre.yaml describes the setup process of a DUT. Below are the key components:

Required Fields

AttributeTypeDescription
pre-stagearrayList of test step commands (see Commands)

Example

pre-stage:
  - cmd: dutctl
    name: Shutdown the DUT.
    parameters:
      host: "[[attributes.Flasher]]"
      command: power
      args: ["off"]

  - cmd: dutctl
    name: Flash the provided binary.
    parameters:
      host: "[[attributes.Flasher]]"
      command: flash
      args: [write, "[[defaults.Binary]]"]

  - cmd: dutctl
    name: Turn the DUT on
    parameters:
      host: "[[attributes.Flasher]]"
      command: power
      args: ["hardreset"]
    options:
      timeout: 2m

  - cmd: ping
    name: Wait for the device to become online.
    options:
      timeout: 4m
    parameters:
      host: "[[attributes.Host]]"

Post-Stage

This configuration post.yaml describes the teardown process of a DUT. Below are the key components:

Required Fields

AttributeTypeDescription
post-stagearrayList of test step commands (see Commands)

Example

post-stage:
  - cmd: dutctl
    name: Clean up. Shutdown the DUT.
    parameters:
      host: "[[attributes.Flasher]]"
      command: power
      args: ["off"]