Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Makefile: add "make check" option to run unit tests for given TARGET #172

Open
@rfairley

Description

Describe the feature
make check TARGET=F4 builds and run the unit tests for the F4 board. F7 can also be specified as a target. This would involve invoking the mingw gcc/g++ compilers from the makefile and returning the gtest test output to the terminal. If possible, we should try and check for the test build dependencies, and return a helpful error message if some are not found e.g. "g++ not found, install mingw".

Reason for request
This would be another step towards unifying the RobotTest project into Robot, I think. It'd be convenient to invoke this from the command line, without needing to add a unit test run configuration in Eclipse. This would make the run configuration for unit tests simpler, as well, by invoking make check TARGET=... (possibly we can version control the unit tests run configuration as well?). Possibly, make check could be a step in the CI pipeline and it'd log results for each board.

Timeline
No particular timeline.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions