In order for the hil to know where to find Devices Under Test (DUT), they need to be configured.
Each DUT needs its own configuration under config/DUT_NAME/config.toml
.
Take current configuration as example and change at least the YKush serial number to your specific setup.
Each YKush device has a unique serial number. The hil uses these to enable or disable the connection of specific DUTs as needed.
This is configured under ykush_serial_number
in each DUTs config.toml
.
Use the ykushcmd
tool to find out this serial number:
- Make sure you have only one YKush device connected
- Enter the running container set up in deploy
make gl-runner-enter
- Execute
ykushcmd ykush3 -l
- This shuould output the serial number of the connected
- Enter the serial number in the
config.toml
for the device you connect to this YKush device
NRF52 devices need nrf and bootloaders configured.
Example bootloaders for Nitrokey 3A mini and Nitrokey Passkey can be found in the example configuration.
In the job script of your ci clone this repository and start the hil with the following command for a specific DUT and tests:
make -C nitrokey-hardware-test ci FW=../artifacts MODEL=$DUT TESTS=$TESTS