From 01252035cdc23ff64a593471e0272e7bbe9b1786 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 12 Jan 2015 11:15:03 +0100 Subject: [doc] Add CheckTests to ctest to check whether all available ledger options documented and are being tested. Signed-off-by: Alexis Hildebrandt --- test/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 44db81fb..37224d40 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -42,10 +42,15 @@ if (PYTHONINTERP_FOUND) foreach(TestFile ${${_class}_TESTS}) get_filename_component(TestFile_Name ${TestFile} NAME_WE) add_test(NAME ${_class}Test_${TestFile_Name} - COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/DocTests.py + COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/${_class}.py --ledger $ --file ${TestFile}) set_target_properties(check PROPERTIES DEPENDS ${_class}Test_${TestFile_Name}) endforeach() + + set(_class CheckTests) + add_test(NAME ${_class} + COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/${_class}.py + --ledger $ --source ${PROJECT_SOURCE_DIR}) endif() ### CMakeLists.txt ends here -- cgit v1.2.3