aboutsummaryrefslogtreecommitdiffstats
path: root/test/plugin_asciidoc.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-11-01 13:10:51 +0200
committerLoïc Hoguin <[email protected]>2016-11-01 13:10:51 +0200
commit4f5d8d7064faa1ee41eaf014127be15caf161ca8 (patch)
tree3c71477f1bc6c23897bbc2b27f587d29bb525fcd /test/plugin_asciidoc.mk
parentd4d307ede74303ca8005bba1ab585d2012c48cfb (diff)
downloaderlang.mk-4f5d8d7064faa1ee41eaf014127be15caf161ca8.tar.gz
erlang.mk-4f5d8d7064faa1ee41eaf014127be15caf161ca8.tar.bz2
erlang.mk-4f5d8d7064faa1ee41eaf014127be15caf161ca8.zip
Test asciidoc with more than one man section
Diffstat (limited to 'test/plugin_asciidoc.mk')
-rw-r--r--test/plugin_asciidoc.mk12
1 files changed, 9 insertions, 3 deletions
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" \