diff options
author | Loïc Hoguin <[email protected]> | 2015-01-12 16:35:50 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-01-12 16:35:50 +0100 |
commit | 2f177ad17364994db5165336a07e1bca52efe2e0 (patch) | |
tree | 5125f601326d66b743c9ff718d63b174a632521e /test | |
parent | ca2911d303ddab7ebfe52b76a137b04de0866703 (diff) | |
parent | ddca43cbb6b0ec3d2110a59a1571f9522e3b8e9c (diff) | |
download | erlang.mk-2f177ad17364994db5165336a07e1bca52efe2e0.tar.gz erlang.mk-2f177ad17364994db5165336a07e1bca52efe2e0.tar.bz2 erlang.mk-2f177ad17364994db5165336a07e1bca52efe2e0.zip |
Merge branch 'doc-deps' of https://github.com/zuiderkwast/erlang.mk
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index aec10c1..265c67c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -33,9 +33,9 @@ else i = @echo == endif -.PHONY: all clean app ct eunit +.PHONY: all clean app ct eunit docs -all: app ct eunit clean +all: app ct eunit docs clean $i '+---------------------+' $i '| All tests passed. |' $i '+---------------------+' @@ -147,6 +147,29 @@ eunit: app1 $t rm -rf app1/eunit app1/src/t.erl app1/test-eunit.log $i "Test 'eunit' passed." +docs: app1 + $i "docs: Testing EDoc including DOC_DEPS." + $t printf "%s\n" \ + "PROJECT = app1" \ + "DOC_DEPS = edown" \ + "dep_edown = git https://github.com/uwiger/edown.git 0.5" \ + "EDOC_OPTS = {doclet, edown_doclet}" \ + "include erlang.mk" \ + "distclean:: distclean-doc-md" \ + "distclean-doc-md:" \ + " rm -rf doc/*.md" \ + > app1/Makefile-doc + $i "Downloading doc deps (edown) and building docs." + $t make -C app1 -f Makefile-doc docs $v + $i "Checking that 'make docs' using edown generated a markdown file." + $t [ -e app1/doc/m.md ] + $i "Checking that 'make distclean' deletes all generated doc files." + $t make -C app1 -f Makefile-doc distclean $v + $t [ "`ls app1/doc/`" == "" ] + $i "Cleaning up test data." + $t rm app1/Makefile-doc + $i "Test 'docs' passed." + # Test application used for testing. app1: $i "Setting up app." |