scons, tests: Add support for GTest XML generation
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 13 Dec 2017 11:14:28 +0000 (11:14 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 13 Dec 2017 23:57:08 +0000 (23:57 +0000)
commited371e0fec0b40a21b5f60ccbca3e40a2e459734
treee91390a49f04ef1245c7c2311bc374f76c11bf6d
parentbace877821f2ac4a74174dd356990c5ddc738370
scons, tests: Add support for GTest XML generation

The GTest framework supports result generation in XML (JUnit). Enable
this by creating unit test specific targets in the
build/${BUILD_OPTS}/unittests.${VARIANT} directory. Targets in the
directory use the following naming convention:

${SRC_PATH}/${TEST_NAME}.xml

For example, the opt version of the bitunion test built for ARM would
have this path:

build/ARM/unittests.opt/base/bituniontest.xml

Change-Id: I174dff16817734db05b08ce1d5bcf52e8697bbac
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/6624
Reviewed-by: Gabe Black <gabeblack@google.com>
src/SConscript