From 560f14fe8484c0b0cf935147a050ab9df241b2a9 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Thu, 22 Nov 2012 17:04:03 -0300 Subject: Added 'TEST_XML_OUTPUT' option on cmake to enable/disalbe test output in xml. OBS: The default value is On. --- tests/client/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/client/CMakeLists.txt b/tests/client/CMakeLists.txt index d946fad..392437c 100644 --- a/tests/client/CMakeLists.txt +++ b/tests/client/CMakeLists.txt @@ -8,9 +8,15 @@ macro(declare_test testname) ${GIO_LDFLAGS} ) + if(TEST_XML_OUTPUT) + set(TEST_ARGS -p -xunitxml -p -o -p test_${testname}.xml) + else() + set(TEST_ARGS "") + endif() + add_test(${testname} ${DBUS_RUNNER} - --task ${CMAKE_CURRENT_BINARY_DIR}/${testname} -p -xunitxml -p -o -p test_${testname}.xml --task-name Client + --task ${CMAKE_CURRENT_BINARY_DIR}/${testname} ${TEST_ARGS} --task-name Client --task ${CMAKE_CURRENT_SOURCE_DIR}/script_${testname}.py --task-name Server --ignore-return) set_tests_properties(${testname} PROPERTIES -- cgit v1.2.3