diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-18 21:38:45 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-18 23:52:24 -0800 |
commit | 4b87bbb3e29c460940fc183f63a3b424ddf90187 (patch) | |
tree | 1992fffbf5a241810badf801187faacc00b65a6c /CMakeLists.txt | |
parent | 1ce9c8a9a4fd274beeac26ab506ce508745c47ab (diff) |
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
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) |