cmake: Add stripped tests

This commit is contained in:
Petri Lehtinen 2013-03-14 22:15:42 +02:00
parent 70f663db29
commit 6db70f0301

View File

@ -377,6 +377,10 @@ if (NOT WITHOUT_TESTS)
get_filename_component(TNAME ${TESTDIR} NAME)
add_test(${SUITE}__${TNAME}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/json_process ${TESTDIR})
if ((${SUITE} STREQUAL "valid" OR ${SUITE} STREQUAL "invalid") AND NOT EXISTS ${TESTDIR}/nostrip)
add_test(${SUITE}__${TNAME}__strip
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/json_process --strip ${TESTDIR})
endif ()
endif ()
endforeach ()
endforeach ()