tests+ci: Enable dual XML and HRF output of unit test results
This commit also makes unit tests to run against a debug build, to
ensure assertions are properly evaluated (based on suggestion
in I5f4419ea48d4eb333e9d107115ef3df4123f76e5).
Change-Id: I1bbf14f75aab155ed80a36fc4006f7a5d13f1289
Refs: #2252, #2805
diff --git a/tests/other/wscript b/tests/other/wscript
index 51f8b6b..074e72c 100644
--- a/tests/other/wscript
+++ b/tests/other/wscript
@@ -27,8 +27,22 @@
top = '../..'
def build(bld):
- bld.program(target="../../cs-benchmark",
- source="cs-benchmark.cpp",
- use='daemon-objects unit-tests-main',
- install_path=None,
- )
+ for module, name in {"cs-benchmark": "CS Benchmark"}.iteritems():
+ # main()
+ bld(target='unit-tests-%s-main' % module,
+ name='unit-tests-%s-main' % module,
+ features='cxx',
+ use='BOOST',
+ source='../main.cpp',
+ defines=['BOOST_TEST_MODULE=%s' % name]
+ )
+
+ # unit-tests-%module
+ bld.program(
+ target='../../%s' % module,
+ features='cxx cxxprogram',
+ source=bld.path.ant_glob(['%s*.cpp' % module]),
+ use='daemon-objects unit-tests-base unit-tests-%s-main' % module,
+ includes='.',
+ install_path=None,
+ )