summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2014-12-01 14:42:38 -0500
committerMartin Michlmayr <tbm@cyrius.com>2014-12-01 14:42:38 -0500
commita32913d7acd174b2245f6a73eb55cc267c415960 (patch)
tree08b5d8ae0133e11bc92cd8a8064a2b8e2f1b0ae9 /test
parent4ee5329955bd43d725802ff9e2ec5edc0b1f2f14 (diff)
parent31ccb6d368c26481d815ba4b54b32752e564239e (diff)
downloadfork-ledger-a32913d7acd174b2245f6a73eb55cc267c415960.tar.gz
fork-ledger-a32913d7acd174b2245f6a73eb55cc267c415960.tar.bz2
fork-ledger-a32913d7acd174b2245f6a73eb55cc267c415960.zip
Merge pull request #333 from afh/pull/DocTests
Fix and re-enable DocTests
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt23
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