summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-22 23:47:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-22 23:48:56 -0700
commit3e26463989346327589d1dd0d0cb89cb14c84b66 (patch)
treeee27b85443ca52129386708cf0cf063139b2927a
parenta8d97a098742413d0ffdc3602d1798df6e4f00a1 (diff)
Added HTML normalization tests to test/CMakeLists.txt.
Removed from .travis.yml. This should be a standard part of the test suite. See #245.
-rw-r--r--.travis.yml3
-rw-r--r--test/CMakeLists.txt5
2 files changed, 6 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 0446bad..8a504fa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,5 +7,4 @@ before_install:
- sudo apt-get install -qq pandoc re2c valgrind
script:
- make testtarball
- - PROG=`ls cmark-*.*/build/src/cmark` make leakcheck
- - python -m doctest test/normalize.py
+ - PROG=`ls cmark-*.*/build/src/cmark` make leakcheck \ No newline at end of file
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 6761317..1032f17 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -7,6 +7,11 @@ if (WIN32)
)
endif(WIN32)
+add_test(html_normalization
+ python "-m" "doctest"
+ "${CMAKE_CURRENT_SOURCE_DIR}/normalize.py"
+)
+
add_test(spectest_library
python "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec"
"${CMAKE_SOURCE_DIR}/spec.txt" "--library-dir" "${CMAKE_BINARY_DIR}/src"