You can add tests to your projects using the qi_add_test functions.
You can then run the tests with:
$ qibuild test foo
qibuild test does not use ctest executable, and qi_add_test is not calling upstream add_test function.
The reasons for this are:
This means that you cannot use set_test_properties for a test created with qi_add_test
Also note that qibuild test is intended to be used with Jenkins, instead of CDash.
<testsuite name="test">
<testcase name="test_foo" status="run">
<failure message="Return code: 2">
<![CDATA[
ERROR: ...
]]>
</failure>
</testcase>
</testsuite>
<testsuite name="test">
<testcase name="test_foo" status="run">
<failure message="Timed out (2 s)">
</failure>
</testcase>
</testsuite>