pounder_test/hitl/run.sh

23 lines
724 B
Bash
Raw Normal View History

2021-04-07 19:53:29 +08:00
#!/usr/bin/bash -e
2021-04-06 19:28:07 +08:00
# Title:
# Stabilizer hardware-in-the-loop (HITL) test script.
#
# Description:
# This shell file is executed by the hardware runner in Quartiq's office to exercise the various
# hardware aspects of Stabilizer.
2021-04-06 20:28:08 +08:00
# Set up python for testing
python3 -m venv --system-site-packages py
source py/bin/activate
python3 -m pip install -r requirements.txt
2021-04-06 19:28:07 +08:00
# Test pinging Stabilizer. This exercises that:
# * DHCP is functional and an IP has been acquired
# * Stabilizer's network is functioning as intended
# * The stabilizer application is opeerational
2021-04-06 20:28:08 +08:00
ping -c 5 -w 20 gonnigan.ber.quartiq.de
2021-04-06 19:28:07 +08:00
# Test the MQTT interface.
python3 miniconf.py --broker mqtt.ber.quartiq.de dt/sinara/stabilizer afe/0 '"G2"'