diff options
author | Loïc Hoguin <[email protected]> | 2015-05-11 13:47:51 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-11 13:48:24 +0300 |
commit | 789a4fb6be3bb92380e4314748872ab441ed5554 (patch) | |
tree | 28806969fa0a77b19e4d45c0a7372ad451de6b93 /test | |
parent | 47eb068a47a4a9a079dfeac5e255b979f5df03ab (diff) | |
download | erlang.mk-789a4fb6be3bb92380e4314748872ab441ed5554.tar.gz erlang.mk-789a4fb6be3bb92380e4314748872ab441ed5554.tar.bz2 erlang.mk-789a4fb6be3bb92380e4314748872ab441ed5554.zip |
Fix cover tests and use Erlang snippet
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile index 180b5a1..5449ee5 100644 --- a/test/Makefile +++ b/test/Makefile @@ -35,7 +35,7 @@ endif .PHONY: all clean app ct eunit tests-cover docs -all: app ct eunit tests-cover docs clean +all: clean app ct eunit tests-cover docs $i '+---------------------+' $i '| All tests passed. |' $i '+---------------------+' @@ -161,9 +161,12 @@ tests-cover: app1 $t [ -e app1/cover/index.html ] $i "Checking combined coverage from eunit and ct." $t [ `grep 'Total: 100%' app1/cover/index.html | wc -l` -eq 1 ] - $i "Checking that cover-clean removes cover data and report." - $t make -C app1 cover-clean $v - $t [ ! -e app1/cover ] && [ ! -e app1/eunit.coverdata ] + $i "Checking that cover-report-clean removes cover report." + $t make -C app1 cover-report-clean $v + $t [ ! -e app1/cover ] + $i "Checking that coverdata-clean removes cover data." + $t make -C app1 coverdata-clean $v + $t [ ! -e app1/eunit.coverdata ] @# clean up $t rm -rf app1/src/t.erl app1/test app1/test-eunit.log $t make -C app1 clean $v @@ -196,6 +199,7 @@ docs: app1 app1: $i "Setting up app." $t mkdir -p app1 + $t cd .. && make $t cp ../erlang.mk app1/ $t make -C app1 -f erlang.mk bootstrap-lib $t printf "%s\n" \ |