summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-29 21:14:41 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-29 21:14:41 -0700
commit7fdb93306d64607d40953bbbd53d961944819c73 (patch)
tree324b137322346790c5615ceb87a0c47000360035
parentacd11e2766a10236750424453059abb2ab759d1e (diff)
Added roundtrip_test Makefile target.
Eventually this should be pythonized and put in the cmake test routine.
-rw-r--r--.travis.yml1
-rw-r--r--Makefile3
2 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 4ef377d..c177482 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,6 +20,7 @@ before_install:
script:
- make
- make test
+ - make roundtrip_test
- |
if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]
then
diff --git a/Makefile b/Makefile
index 1ece8f7..eacc271 100644
--- a/Makefile
+++ b/Makefile
@@ -116,6 +116,9 @@ update-spec:
test: $(SPEC) cmake_build
make -C $(BUILDDIR) test || (cat $(BUILDDIR)/Testing/Temporary/LastTest.log && exit 1)
+roundtrip_test: $(SPEC) cmake_build
+ python3 test/spec_tests.py --spec $< --prog test/roundtrip.sh
+
$(ALLTESTS): $(SPEC)
python3 test/spec_tests.py --spec $< --dump-tests | python3 -c 'import json; import sys; tests = json.loads(sys.stdin.read()); print("\n".join([test["markdown"] for test in tests]))' > $@