Merge pull request #333 from afh/pull/DocTests
Fix and re-enable DocTests
This commit is contained in:
commit
a32913d7ac
2 changed files with 12 additions and 13 deletions
|
|
@ -2388,7 +2388,7 @@ fixed CAD $0.90
|
|||
2012-04-11 Second day Dinner in Canada
|
||||
Assets:Wallet -25.75 CAD
|
||||
Expenses:Food 25.75 CAD
|
||||
endfixed
|
||||
endfixed CAD
|
||||
@end smallexample
|
||||
|
||||
is equivalent to this:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue