The following software is required for running tests.
- Linux, MacOS, or Windows Subsystem for Linux
- Python 3.8
While not required, we recommend you setup a Python virtual environment, like https://realpython.com/python-virtual-environments-a-primer/
Install development packages with the Python virtual environment activated:
pip install -r test/requirements.txt
To build the host applications, run the following command from the top of the repository:
bash tools/ci/build_host.sh
The `build_host.sh`
script will copy the host applications to the dist_host
folder.
To build the test application firmware and filesystem files, run the following command from the top of the repository:
bash tools/ci/build_tests.sh
The build_test.sh
script will copy the test applications and filesystem files to the dist
folder.
Tests exists for the following:
- Audio processing pipelines
- Speech recognition command dictionaries
- Sample rate conversion
- DFU
- GPIO
- Low power mode's audio ring buffer
To run tests, see the README files located in the directories containing each test group.