git.iko.soy/typeable/pandoc
on master help sign in
Changed test-markdown target in Makefile: Now it will find any

markdown test suites in the 'test' directory (subdirectories beginning with 'MarkdownTest_') and run them all. This allows us to have multiple test suites, e.g. for 1.0 and for a beta version. git-svn-id: https://pandoc.googlecode.com/svn/trunk@414 788f1e2b-df1e-0410-8736-df70ead52e1b

commitb6663c7e1675c6ceb5b92d4ec21bc09b240b6ea9 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 4 Jan 2007, 17:23 (20 years ago) parentb770a9f
1 file changed+9−3
Makefile+9−3
Makefile+9−3
@@ -296,10 +296,16 @@ $(win_pkg_name): $(THIS).exe $(win_docs)
296296test: $(MAIN)
297297 @cd $(TESTDIR) && perl runtests.pl -s $(PWD)/$(MAIN)
298298compat:=$(PWD)/hsmarkdown
299+markdown_test_dirs:=$(wildcard $(TESTDIR)/MarkdownTest_*)
299300test-markdown: $(MAIN) $(compat)
300− @# set path so that wrapper can be run even if pandoc not installed
301− @PATH=$(PWD):$$PATH; export PATH; cd $(TESTDIR)/MarkdownTest_1.0.3 && \
302− perl MarkdownTest.pl -s $(compat) -tidy \
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}.";\
305+ PATH=$(PWD):$$PATH; export PATH; cd $$suite && \
306+ perl MarkdownTest.pl -s $(compat) -tidy ; \
307+ ) \
308+ done
303309
304310# Stolen and slightly improved from a GPLed Makefile. Credits to John Meacham.
305311src_all:=$(shell find $(SRCDIR) -type f -name '*hs' | egrep -v '^\./(_darcs|lib|test)/')