Contents
- TDDC++301 TDD for Embedded C++ Exercises
- Solutions
- Templates
- Build the application
- Build a project
- Run tests
The primary build environment for Feabhas projects is Ubuntu Linux using the Linux GNU Toolchain (for host based courses), or the Arm GNU Toolchain (for embedded courses), and the CMake build system.
Solutions are provided for all exercises.
Sample starter projects for different exercises. Either copy the project to a new workspace or work within the project itself.
Using CMake is a two step process:
- generate build configuration files
- run the build
From a project root:
$ cmake -S . -B build
You need to regenerate the build configuration if you add
new source or header files, or add a #include
for your own
header files to an existing file.
From project root:
$ cmake --build build
Remember to regenerate the build configuration if you add new source or header files.
From project root:
$ cmake --build build -- test
From project root:
$ CTEST_OUTPUT_ON_FAILURE=1 cmake --build build -- test
or to get colour output
$ cd build
$ TEST_COLOR=1 ctest -V