summaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-20 00:01:12 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-20 00:01:12 -0800
commit168f8666d4bad5d50ba5bf5a787a28b236754917 (patch)
treeda2eac021fe634d6b63848f92501c291dbc36059 /test/CMakeLists.txt
parent615f055c320ff23a388f342af7ab5810d21f4fb8 (diff)
Made roundtrip test part of the test suite run by cmake.
Diffstat (limited to 'test/CMakeLists.txt')
-rwxr-xr-xtest/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 164fba1..d537ab5 100755
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -16,6 +16,9 @@ if (WIN32)
set_tests_properties(api_test PROPERTIES
ENVIRONMENT "PATH=${WIN_DLL_DIR};$ENV{PATH}"
)
+ set(ROUNDTRIP,"${CMAKE_CURRENT_SOURCE_DIR}/roundtrip.bat")
+else(WIN32)
+ set(ROUNDTRIP,"${CMAKE_CURRENT_SOURCE_DIR}/roundtrip.sh")
endif(WIN32)
IF (PYTHONINTERP_FOUND)
@@ -43,6 +46,14 @@ IF (PYTHONINTERP_FOUND)
${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"
)
+ add_test(roundtriptest_executable
+ ${PYTHON_EXECUTABLE}
+ "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize"
+ "--spec" "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" "--program"
+ "${ROUNDTRIP} ${CMAKE_CURRENT_BINARY_DIR}/../src/cmark"
+ )
+
+
ELSE(PYTHONINTERP_FOUND)
message("\n*** A python 3 interpreter is required to run the spec tests.\n")