summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-09-11 12:58:51 +0100
committerJohn Wiegley <johnw@newartisans.com>2014-09-11 12:58:51 +0100
commit8fc83e8148479d0ce873c279759273e100ba5fb6 (patch)
treea69c44ccb77b97590f11722537f467299674d729 /test
parent03bace82bd02dc2b15e1b9ae94c0238ff728037d (diff)
parentd9d4876755efd97fdd7c7ce7552e7c6ee339a94c (diff)
downloadfork-ledger-8fc83e8148479d0ce873c279759273e100ba5fb6.tar.gz
fork-ledger-8fc83e8148479d0ce873c279759273e100ba5fb6.tar.bz2
fork-ledger-8fc83e8148479d0ce873c279759273e100ba5fb6.zip
Merge pull request #321 from kljohann/cmake
Clean up CMake files
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 0f19ae6f..21d27c7d 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -6,8 +6,6 @@ if (NOT PROCESSORS EQUAL 0)
set(CTEST_BUILD_FLAGS -j${JOBS})
endif()
-get_target_property(LEDGER_LOCATION ledger LOCATION)
-
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} ${CTEST_BUILD_FLAGS})
add_subdirectory(unit)
@@ -23,9 +21,9 @@ macro(add_ledger_harness_tests _class)
get_filename_component(TestFile_Name ${TestFile} NAME_WE)
string(FIND ${TestFile_Name} "_py" TestFile_IsPythonTest)
if ((TestFile_IsPythonTest EQUAL -1) OR HAVE_BOOST_PYTHON)
- add_test(${_class}Test_${TestFile_Name}
- ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/RegressTests.py
- ${LEDGER_LOCATION} ${PROJECT_SOURCE_DIR}
+ add_test(NAME ${_class}Test_${TestFile_Name}
+ COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/RegressTests.py
+ $<TARGET_FILE:ledger> ${PROJECT_SOURCE_DIR}
${TestFile} ${TEST_PYTHON_FLAGS})
set_target_properties(check
PROPERTIES DEPENDS ${_class}Test_${TestFile_Name})
@@ -44,9 +42,9 @@ add_subdirectory(regress)
# 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})
+# 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()