From ad7f0dc7df8ed8ea32498a61d64dce0024478c00 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 8 Jun 2015 12:51:05 -0400 Subject: test: Add infrastructure for custom test input and start options --- test/CMakeLists.txt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 763c7a7..afbbbaf 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -34,10 +34,21 @@ macro(castxml_test_cmd test) endmacro() macro(castxml_test_gccxml_common prefix ext std test) + if(castxml_test_gccxml_custom_start) + set(_castxml_start ${castxml_test_gccxml_custom_start}) + else() + set(_castxml_start --castxml-start start) + endif() + if(castxml_test_gccxml_custom_input) + set(_castxml_input ${castxml_test_gccxml_custom_input}) + else() + set(_castxml_input ${test}) + endif() set(command $ - --castxml-gccxml --castxml-start start + --castxml-gccxml + ${_castxml_start} -std=${std} - ${CMAKE_CURRENT_LIST_DIR}/input/${test}.${ext} + ${CMAKE_CURRENT_LIST_DIR}/input/${_castxml_input}.${ext} -o ${prefix}.${std}.${test}.xml ${castxml_test_gccxml_extra_arguments} ) -- cgit v0.12