git.iko.soy/typeable/pandoc
on master help sign in
Changed test-markdown target in Makefile: Now it will find any
b6663c7fiddlosopher
Makefile+9−3
@@ -296,10 +296,16 @@ $(win_pkg_name): $(THIS).exe $(win_docs)
296test: $(MAIN)
296test: $(MAIN)
297 @cd $(TESTDIR) && perl runtests.pl -s $(PWD)/$(MAIN)
297 @cd $(TESTDIR) && perl runtests.pl -s $(PWD)/$(MAIN)
298compat:=$(PWD)/hsmarkdown
298compat:=$(PWD)/hsmarkdown
299+markdown_test_dirs:=$(wildcard $(TESTDIR)/MarkdownTest_*)
299test-markdown: $(MAIN) $(compat)
300test-markdown: $(MAIN) $(compat)
300− @# set path so that wrapper can be run even if pandoc not installed
301+ @for suite in $(markdown_test_dirs); do \
302+ ( \
303+ suite_version=$$(echo $$suite | sed -e 's/.*_//');\
304+ echo "\nRunning Markdown test suite version $${suite_version}.";\
301− @PATH=$(PWD):$$PATH; export PATH; cd $(TESTDIR)/MarkdownTest_1.0.3 && \
305+ PATH=$(PWD):$$PATH; export PATH; cd $$suite && \
302− perl MarkdownTest.pl -s $(compat) -tidy \
306+ perl MarkdownTest.pl -s $(compat) -tidy ; \
307+ ) \
308+ done
303
309
304# Stolen and slightly improved from a GPLed Makefile. Credits to John Meacham.
310# Stolen and slightly improved from a GPLed Makefile. Credits to John Meacham.
305src_all:=$(shell find $(SRCDIR) -type f -name '*hs' | egrep -v '^\./(_darcs|lib|test)/')
311src_all:=$(shell find $(SRCDIR) -type f -name '*hs' | egrep -v '^\./(_darcs|lib|test)/')