diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2014-11-29 09:06:14 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2014-11-29 09:06:14 +0100 |
commit | 31ccb6d368c26481d815ba4b54b32752e564239e (patch) | |
tree | c5ed12cdf5cc4fc32455ee2a94feca6634d261c5 /test/CMakeLists.txt | |
parent | a6d8599688a5a5657827e09a7ab98b060c2b9541 (diff) | |
download | fork-ledger-31ccb6d368c26481d815ba4b54b32752e564239e.tar.gz fork-ledger-31ccb6d368c26481d815ba4b54b32752e564239e.tar.bz2 fork-ledger-31ccb6d368c26481d815ba4b54b32752e564239e.zip |
Fix and re-enable DocTests
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 21d27c7d..44db81fb 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -36,17 +36,16 @@ add_subdirectory(manual) add_subdirectory(baseline) add_subdirectory(regress) -# jww (2014-04-17): This is temporary until we find a fix. -#if (PYTHONINTERP_FOUND) -# set(_class DocTests) -# file(GLOB ${_class}_TESTS ${PROJECT_SOURCE_DIR}/doc/*.texi) -# 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 -# --ledger $<TARGET_FILE:ledger> --file ${TestFile}) -# set_target_properties(check PROPERTIES DEPENDS ${_class}Test_${TestFile_Name}) -# endforeach() -#endif() +if (PYTHONINTERP_FOUND) + set(_class DocTests) + file(GLOB ${_class}_TESTS ${PROJECT_SOURCE_DIR}/doc/*.texi) + 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 + --ledger $<TARGET_FILE:ledger> --file ${TestFile}) + set_target_properties(check PROPERTIES DEPENDS ${_class}Test_${TestFile_Name}) + endforeach() +endif() ### CMakeLists.txt ends here |