Software used for testing the Q7 obc and daughterboard
We will be using openhtf is sparsely documented.
Use the following docker command for dev environment if not on linux
sudo docker run -it --rm -v $(pwd):/app -w /app python:3 bashCreate a virtual environment
python3 -m venv venvActivate the virtual environment
source venv/bin/activateInstall the required packages
pip install -r requirements.txtFirst, modify the config.yaml file to match the configuration of the device under test.
Then run the following command to start the tests
python main.py --config_file q7-config.yaml
# or
python main.py --config_file daedalus-config.yamlThe DUT folder structure should be as follows:
dut/
├── __init__.py
├── main.py
├── XX (folder)
│ ├── __init__.py
│ ├── test.py
│ ├── 0_name (folder)
│ │ ├── __init__.py
│ │ ├── test.py <--- This is the test file ran by the test manager
│ │ ├── remote (folder) <--- This folder contains scripts to be ran on the DUT
│ │ │ ├── example_script.sh
│ │ │ ├── example_script2.py
│ │ ├── data (folder) <--- This folder contains any data files to be used by the test
│ │ │ ├── example_data.csv
│ │ │ ├── example_data2.txt
│ ├── 1_name (folder)
│ │ ├── __init__.py
│ │ ├── test.py <--- This is the test file ran by the test manager
│ │ ├── remote (folder) <--- This folder contains scripts to be ran on the DUT
│ │ │ ├── example_script.sh
│ │ │ ├── example_script2.py
│ │ ├── data (folder) <--- This folder contains any data files to be used by the test
│ │ │ ├── example_data.csv
│ │ │ ├── example_data2.txt
Remote scripts are simple python, bash, etc scripts that are ran on the DUT. They are used to interact with the DUT and perform actions that are not possible from the test manager. They are stored in the remote folder of the test folder. Scripts should return a 0 exit code if they are successful and a non-zero exit code if they fail.