tests skip junit output and cmake exclude from all

This commit is contained in:
Daniel Agar 2017-01-03 04:15:12 -05:00
parent 573aed0ee8
commit 9689163125
2 changed files with 4 additions and 1 deletions

View File

@ -279,7 +279,7 @@ unittest: posix_sitl_default
@(cd build_unittest && ctest -j2 --output-on-failure)
run_tests_posix:
@$(call PX4_RUN,$(MAKE) --no-print-directory posix_sitl_default test_results_junit)
@$(call PX4_RUN,$(MAKE) --no-print-directory posix_sitl_default test_results)
tests: run_tests_posix
@$(call PX4_RUN,$(MAKE) --no-print-directory unittest)

View File

@ -199,15 +199,18 @@ add_custom_target(test_results
USES_TERMINAL
COMMENT "Running tests in sitl"
WORKING_DIRECTORY ${PX4_BINARY_DIR})
set_target_properties(test_results PROPERTIES EXCLUDE_FROM_ALL TRUE)
add_custom_target(test_results_junit
COMMAND xsltproc ${PX4_SOURCE_DIR}/Tools/CTest2JUnit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > JUnitTestResults.xml
COMMENT "Converting ctest output to junit xml"
WORKING_DIRECTORY ${PX4_BINARY_DIR})
set_target_properties(test_results_junit PROPERTIES EXCLUDE_FROM_ALL TRUE)
add_custom_target(test_cdash_submit
COMMAND ${CMAKE_CTEST_COMMAND} -D Experimental
USES_TERMINAL
WORKING_DIRECTORY ${PX4_BINARY_DIR})
set_target_properties(test_cdash_submit PROPERTIES EXCLUDE_FROM_ALL TRUE)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :