Files
lib_xua/tests/xua_unit_tests
Michael Banther 769bfa1a5a Remove unnecessary HID functionality (#243)
* Include HID report functionality only when the HID feature is enabled
* Define HID_CONTROLS=1 so HID unit tests work correctly
2022-02-21 13:20:52 +00:00
..
2021-05-19 16:07:40 +01:00
2021-06-22 13:45:24 +01:00

xua_unit_tests test application

This example builds the xua_unit_tests application for XCORE AI

Prerequisites for building

XMOS Toolchain 15.0.3 or newer.

Install CMake version 3.13 or newer.

Building for xCORE

Set environment variable for lib_xua path:

> export XUA_PATH=<path to lib_xua>

cd to lib_xua/tests/xua_unit_tests

Run cmake and build

> cmake .
> make

Run on hardware

Ensure your XCORE AI EXPLORER board is powered up and connected to the XTAG debugger. Make sure the input.wav file is copied into the build directory

> pytest -n 1

You should see the tests collected by pytest pass