From 2f513b5f342a9c4317fc89a2ca624a4e3a23de1d Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 9 Aug 2007 10:20:55 +0000 Subject: [PATCH] Added "smoketest" target and made "distrib" target depend on it. --- xsl/Makefile | 17 ++++++++++++++++- xsl/Makefile.tests | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 xsl/Makefile.tests diff --git a/xsl/Makefile b/xsl/Makefile index 6eb82e941..a9cc49374 100644 --- a/xsl/Makefile +++ b/xsl/Makefile @@ -18,7 +18,7 @@ DISTRIB_CHANGELOG_INCLUDES = gentext # value of DISTRIB_DEPENDS is a space-separated list of any # targets for this distro's "distrib" target to depend on -DISTRIB_DEPENDS = doc docsrc install.sh RELEASE-NOTES.txt RELEASE-NOTES.pdf +DISTRIB_DEPENDS = smoketest doc docsrc install.sh RELEASE-NOTES.txt RELEASE-NOTES.pdf # value of RELEASE_DEPENDS is a space-separated list of any # targets for this distro's "release" target to depend on @@ -55,6 +55,20 @@ URILIST = \ DIRS=common lib html fo manpages htmlhelp javahelp eclipse roundtrip slides website +NORMAL_STYLES=fo/docbook.xsl html/docbook.xsl xhtml/docbook.xsl +NORMAL_PROFILE_STYLES=fo/profile-docbook.xsl html/profile-docbook.xsl xhtml/profile-docbook.xsl +HELP_STYLES=htmlhelp/htmlhelp.xsl javahelp/javahelp.xsl eclipse/eclipse.xsl +CHUNK_STYLES=html/chunk.xsl html/onechunk.xsl xhtml/chunk.xsl xhtml/onechunk.xsl +CHUNK_PROFILE_STYLES=html/profile-chunk.xsl html/profile-onechunk.xsl xhtml/profile-chunk.xsl xhtml/profile-onechunk.xsl +HELP_PROFILE_STYLES=htmlhelp/profile-htmlhelp.xsl eclipse/profile-eclipse.xsl javahelp/profile-javahelp.xsl +MAN_STYLES=manpages/docbook.xsl +MAN_PROFILE_STYLES=manpages/profile-docbook.xsl + +ROUNDTRIP_STYLES=roundtrip/dbk2ooo.xsl roundtrip/dbk2pages.xsl roundtrip/dbk2wordml.xsl +SLIDES_STYLES=slides/html/default.xsl slides/xhtml/default.xsl slides/fo/plain.xsl +WEBSITE_STYLES=website/website.xsl +WEBSITE_CHUNK_STYLES=website/chunk-website.xsl + .PHONY: distrib clean doc docsrc xhtml all: base xhtml @@ -100,5 +114,6 @@ clean: $(MAKE) clean -C doc $(MAKE) clean -C docsrc +include Makefile.tests include ../releasetools/Targets.mk include ../releasetools/xslns.mk diff --git a/xsl/Makefile.tests b/xsl/Makefile.tests new file mode 100644 index 000000000..6f2f425bb --- /dev/null +++ b/xsl/Makefile.tests @@ -0,0 +1,33 @@ +# $Id$ + +smoketest: smoketest-normal smoketest-normal-profile smoketest-chunk smoketest-chunk-profile + +smoketest-normal: + for file in $(NORMAL_STYLES); do \ + echo "$(XSLT) $(DOCBOOK_SVN)/releasetools/testfile.xml $$file > /dev/null"; \ + $(XSLT) $(DOCBOOK_SVN)/releasetools/testfile.xml $$file > /dev/null; \ + done + +smoketest-normal-profile: + for file in $(NORMAL_PROFILE_STYLES); do \ + echo "$(XSLT) $(DOCBOOK_SVN)/releasetools/testfile.xml $$file > /dev/null"; \ + $(XSLT) $(DOCBOOK_SVN)/releasetools/testfile.xml $$file > /dev/null; \ + done + +smoketest-chunk: + $(RM) -r /tmp/docbook-xsl-smoketest + mkdir '/tmp/docbook-xsl-smoketest' + for file in $(CHUNK_STYLES) $(HELP_STYLES) $(MAN_STYLES) ; do \ + echo "$(XSLT) $(DOCBOOK_SVN)/releasetools/testfile.xml $(DOCBOOK_SVN)/xsl/$$file" ; \ + (cd /tmp/docbook-xsl-smoketest && $(XSLT) $(DOCBOOK_SVN)/releasetools/testfile.xml $(DOCBOOK_SVN)/xsl/$$file); \ + done; + $(RM) -r /tmp/docbook-xsl-smoketest + +smoketest-chunk-profile: + $(RM) -r /tmp/docbook-xsl-smoketest + mkdir '/tmp/docbook-xsl-smoketest' + for file in $(CHUNK_PROFILE_STYLES) $(HELP_PROFILE_STYLES) $(MAN_PROFILE_STYLES) ; do \ + echo "$(XSLT) $(DOCBOOK_SVN)/releasetools/testfile.xml $(DOCBOOK_SVN)/xsl/$$file" ; \ + (cd /tmp/docbook-xsl-smoketest && $(XSLT) $(DOCBOOK_SVN)/releasetools/testfile.xml $(DOCBOOK_SVN)/xsl/$$file); \ + done; + $(RM) -r /tmp/docbook-xsl-smoketest -- 2.40.0