diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-08-10 09:11:05 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-08-10 09:11:05 -0700 |
commit | a541e39f69cfa75422fbe70c59c2ac40fbdbe1d7 (patch) | |
tree | c2a909d2f534c5654d3b7ee3482e52ba155c5c9c /test | |
parent | 50114ff73006e97bc60761191dfd0ac8024aea73 (diff) | |
parent | bb9f8086d4873defc0adee3e6b05327e41a3d885 (diff) |
Merge pull request #75 from kainjow/master
Fix FileNotFoundError errors on tests when cmark is built from anotheā¦
Diffstat (limited to 'test')
-rwxr-xr-x[-rw-r--r--] | test/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6d752ca..164fba1 100644..100755 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -27,20 +27,20 @@ IF (PYTHONINTERP_FOUND) add_test(spectest_library ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" - "${CMAKE_SOURCE_DIR}/test/spec.txt" "--library-dir" "${CMAKE_BINARY_DIR}/src" + "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" "--library-dir" "${CMAKE_CURRENT_BINARY_DIR}/../src" ) add_test(pathological_tests_library ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/pathological_tests.py" - "--library-dir" "${CMAKE_BINARY_DIR}/src" + "--library-dir" "${CMAKE_CURRENT_BINARY_DIR}/../src" ) add_test(spectest_executable - ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_SOURCE_DIR}/test/spec.txt" "--program" "${CMAKE_BINARY_DIR}/src/cmark" + ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" "--program" "${CMAKE_CURRENT_BINARY_DIR}/../src/cmark" ) add_test(smartpuncttest_executable - ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_SOURCE_DIR}/test/smart_punct.txt" "--program" "${CMAKE_BINARY_DIR}/src/cmark --smart" + ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_CURRENT_SOURCE_DIR}/smart_punct.txt" "--program" "${CMAKE_CURRENT_BINARY_DIR}/../src/cmark --smart" ) ELSE(PYTHONINTERP_FOUND) |