Add a unit testing package for cmake code
Since I just shot myself in the foot with some updates to the unit testing script, I thought it's about time we add some unit tests for our cmake code itself.
I am entirely open for suggestions on how to organize this and where this code should live. For now I added a new package Build/Tests/UnitTests
that is included in TestExternals
. We could also have the testing code closer to the real code, e.g. somewhere in AtlasCMake
itself.
I started populating it with some trivial (but very useful) unit tests. If this grows large, we probably want to split the unit tests across different files.
TODO:
-
@akraszna can you enable the build and unit testing for TestExternals
in the CI of this repository?