From 4b87bbb3e29c460940fc183f63a3b424ddf90187 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 18 Nov 2014 21:38:45 -0800 Subject: Added python version of test runner. This tests the dynamic library when run without a second argument. The code makes use of an amended version of the normalization method from karlcow/markdown-testsuite. Closes #161. --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e2adbd..637099d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,8 +22,12 @@ endif(UNIX) enable_testing() # To get verbose output: cmake --build build --target "test" -- ARGS='-V' -add_test(spectest - perl "${CMAKE_SOURCE_DIR}/runtests.pl" "${CMAKE_SOURCE_DIR}/spec.txt" "${CMAKE_BINARY_DIR}/src/cmark" +add_test(spectest_library + python "${CMAKE_SOURCE_DIR}/runtests.py" "--spec" + "${CMAKE_SOURCE_DIR}/spec.txt" "--library_dir" "${CMAKE_BINARY_DIR}/src" +) +add_test(spectest_executable + python "${CMAKE_SOURCE_DIR}/runtests.py" "--spec" "${CMAKE_SOURCE_DIR}/spec.txt" "--program" "${CMAKE_BINARY_DIR}/src/cmark" ) add_test(NAME api_test COMMAND api_test) -- cgit v1.2.3