diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | spec.txt | 4 | ||||
-rwxr-xr-x | spec_tests.py (renamed from runtests.py) | 0 |
4 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2eb9815..05679ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ enable_testing() # To get verbose output: cmake --build build --target "test" -- ARGS='-V' add_test(spectest_library - python "${CMAKE_SOURCE_DIR}/runtests.py" "--no-normalize" "--spec" + python "${CMAKE_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_SOURCE_DIR}/spec.txt" "--library-dir" "${CMAKE_BINARY_DIR}/src" ) add_test(pathological_tests_library @@ -38,7 +38,7 @@ if (WIN32) ) endif(WIN32) add_test(spectest_executable - python "${CMAKE_SOURCE_DIR}/runtests.py" "--no-normalize" "--spec" "${CMAKE_SOURCE_DIR}/spec.txt" "--program" "${CMAKE_BINARY_DIR}/src/cmark" + python "${CMAKE_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_SOURCE_DIR}/spec.txt" "--program" "${CMAKE_BINARY_DIR}/src/cmark" ) if(NOT CMAKE_BUILD_TYPE) @@ -75,12 +75,12 @@ Or, to create Xcode project files on OSX: Tests can also be run manually on any executable `$PROG` using: - python runtests.py --program $PROG + python spec_tests.py --program $PROG If you want to extract the raw test data from the spec without actually running the tests, you can do: - python runtests.py --dump-tests + python spec_tests.py --dump-tests and you'll get all the tests in JSON format. @@ -170,10 +170,10 @@ as a "syntax error," the divergence often isn't discovered right away. This document attempts to specify Markdown syntax unambiguously. It contains many examples with side-by-side Markdown and HTML. These are intended to double as conformance tests. An -accompanying script `runtests.py` can be used to run the tests +accompanying script `spec_tests.py` can be used to run the tests against any Markdown program: - python runtests.py --spec spec.txt --program PROGRAM + python spec_tests.py --spec spec.txt --program PROGRAM Since this document describes how Markdown is to be parsed into an abstract syntax tree, it would have made sense to use an abstract diff --git a/runtests.py b/spec_tests.py index 5d04818..5d04818 100755 --- a/runtests.py +++ b/spec_tests.py |