From 4f5d8d7064faa1ee41eaf014127be15caf161ca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 1 Nov 2016 13:10:51 +0200 Subject: Test asciidoc with more than one man section --- test/plugin_asciidoc.mk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test/plugin_asciidoc.mk') diff --git a/test/plugin_asciidoc.mk b/test/plugin_asciidoc.mk index 8f20fae..62bda54 100644 --- a/test/plugin_asciidoc.mk +++ b/test/plugin_asciidoc.mk @@ -17,9 +17,6 @@ asciidoc-build: build clean $i "Add asciideck to the local dependencies" $t perl -ni.bak -e 'print;if ($$.==1) {print "DOC_DEPS = asciideck\n"}' $(APP)/Makefile - $i "Only enable man pages section 3" - $t perl -ni.bak -e 'print;if ($$.==1) {print "MAN_SECTIONS = 3\n"}' $(APP)/Makefile - $i "Run AsciiDoc" $t $(MAKE) -C $(APP) asciidoc $v @@ -27,6 +24,7 @@ asciidoc-build: build clean $t test ! -e $(APP)/doc/guide.pdf $t test ! -e $(APP)/doc/html/ $t test ! -e $(APP)/doc/man3/ + $t test ! -e $(APP)/doc/man7/ $i "Generate AsciiDoc documentation" $t mkdir -p $(APP)/doc/src/guide/ $(APP)/doc/src/manual/ @@ -39,6 +37,12 @@ asciidoc-build: build clean "erlang_mk - Erlang.mk test" "" \ "== Description" "" \ "Hello world!" > $(APP)/doc/src/manual/erlang_mk.asciidoc + $t printf "%s\n" \ + "= erlang_mk(7)" "" \ + "== Name" "" \ + "erlang_mk - Erlang.mk application" "" \ + "== Description" "" \ + "Summer is better than winter!" > $(APP)/doc/src/manual/erlang_mk_app.asciidoc $i "Run AsciiDoc" $t $(MAKE) -C $(APP) asciidoc $v @@ -47,6 +51,7 @@ asciidoc-build: build clean $t test -f $(APP)/doc/guide.pdf $t test -d $(APP)/doc/html/ $t test -f $(APP)/doc/man3/erlang_mk.3.gz + $t test -f $(APP)/doc/man7/erlang_mk.7.gz $i "Distclean the application" $t $(MAKE) -C $(APP) distclean $v @@ -55,6 +60,7 @@ asciidoc-build: build clean $t test ! -e $(APP)/doc/guide.pdf $t test ! -e $(APP)/doc/html/ $t test ! -e $(APP)/doc/man3/ + $t test ! -e $(APP)/doc/man7/ $i "Generate an invalid AsciiDoc file" $t printf "%s\n" \ -- cgit v1.2.3