19925601 "gmake test" failures for asciidoc
authorRich Burridge <rich.burridge@oracle.com>
Mon, 03 Nov 2014 14:27:09 -0800
changeset 2188 bbabf4f00a89
parent 2187 391c8a50fa82
child 2189 8231387581aa
19925601 "gmake test" failures for asciidoc
components/asciidoc/Makefile
components/asciidoc/patches/asciidoc.conf.patch
--- a/components/asciidoc/Makefile	Mon Nov 03 13:22:00 2014 -0800
+++ b/components/asciidoc/Makefile	Mon Nov 03 14:27:09 2014 -0800
@@ -41,6 +41,8 @@
 include ../../make-rules/configure.mk
 include ../../make-rules/ips.mk
 
+PATCH_LEVEL = 0
+
 # AsciiDoc configuration and data files belong in /usr/share, not /etc based
 # on discussion from ARC pre-review.
 #
@@ -67,20 +69,26 @@
 install:	$(INSTALL_64)
 
 # Tests require image/graphviz to be installed.  Some tests also want to run
-# programs named latex, lilypad, abc2ly and source-highlight which are not
-# available on Solaris, so these tests fail.
-#
+# programs which are not automatically available on Solaris (latex, abc2ly
+# and lilypad), so these tests will output messages of the form:
+# latex2png.py: failed command: latex ...
+# music2png.py: failed command: abc2ly ...
+# music2png.py: failed command: lilypond ...
 COMPONENT_PRE_TEST_ACTION = \
-    (cd $(@D); \
-     ln -s asciidoc.py asciidoc; \
-     export PATH=$(@D):$$PATH; \
-     cd tests; \
-     python$(PYTHON_VERSION) ./asciidocapi.py; \
-     if [ $$? -eq 0 ] ; \
-       then print "asciidocapi test passed"; else print "asciidocapi test failed"; \
-     fi; \
-     python$(PYTHON_VERSION) ./testasciidoc.py update; \
-     python$(PYTHON_VERSION) ./testasciidoc.py run; )
+	(cd $(@D); ln -s asciidoc.py asciidoc)
+
+COMPONENT_TEST_DIR =	$(@D)/tests
+COMPONENT_TEST_ENV_CMD =
+COMPONENT_TEST_ENV =	export PATH=$(@D):$$PATH;
+COMPONENT_TEST_CMD =	\
+	python$(PYTHON_VERSION) ./asciidocapi.py; \
+	if [ $$? -eq 0 ] ; \
+		then print "asciidocapi test passed"; \
+		else print "asciidocapi test failed"; \
+	fi; \
+	python$(PYTHON_VERSION) ./testasciidoc.py update; \
+	python$(PYTHON_VERSION) ./testasciidoc.py run
+COMPONENT_TEST_TARGETS =
 
 test:           $(TEST_64)
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/asciidoc/patches/asciidoc.conf.patch	Mon Nov 03 14:27:09 2014 -0800
@@ -0,0 +1,16 @@
+The source code highlighter "source-highlight" is not automatically
+available on Solaris, so substitute something that is.
+
+This change will not be passed back upstream.
+
+--- asciidoc.conf.orig	2014-11-02 16:25:48.452796225 -0800
++++ asciidoc.conf	2014-11-02 16:28:19.785578117 -0800
[email protected]@ -22,7 +22,7 @@
+ # Uncomment to use xhtml11 quirks mode CSS.
+ #quirks=
+ # HTML source code highlighter (source-highlight, pygments or highlight).
+-source-highlighter=source-highlight
++source-highlighter=pygments
+ # Uncomment to use deprecated quote attributes.
+ #deprecated-quotes=
+ empty=