summaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2014-02-24 14:17:57 -0700
committerCraig Earls <enderw88@gmail.com>2014-02-24 14:17:57 -0700
commit0b4ce5698622eb361e702825b187ebfceb970789 (patch)
treec892d4d8aae61bcbf0d071867be5697b75a5ddbb /test/CMakeLists.txt
parentbb8e000d5b35fc4a42c61cf92037674c09d996ca (diff)
parentbc08eed3cb1bdb4f67d1b77273f3254d0cf13be2 (diff)
downloadfork-ledger-0b4ce5698622eb361e702825b187ebfceb970789.tar.gz
fork-ledger-0b4ce5698622eb361e702825b187ebfceb970789.tar.bz2
fork-ledger-0b4ce5698622eb361e702825b187ebfceb970789.zip
Merge commit 'bc08eed3cb1bdb4f67d1b77273f3254d0cf13be2'
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 94ce0a0a..796ef0a2 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -38,4 +38,16 @@ add_subdirectory(manual)
add_subdirectory(baseline)
add_subdirectory(regress)
+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(${_class}Test_${TestFile_Name}
+ ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/DocTests.py
+ --ledger ${LEDGER_LOCATION} --file ${TestFile})
+ set_target_properties(check PROPERTIES DEPENDS ${_class}Test_${TestFile_Name})
+ endforeach()
+endif()
+
### CMakeLists.txt ends here