aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/Makefile
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-02-18 12:47:24 +0100
committerAnders Svensson <[email protected]>2013-02-18 19:22:59 +0100
commitb864edd81d648606a996143a99e09a538e21d47a (patch)
treeac057fd970e7da834a290edd7f4b8f7e2bad8705 /lib/diameter/test/Makefile
parent9e636ec4d8ae12b87fdf4d9bd60403c734b0dead (diff)
downloadotp-b864edd81d648606a996143a99e09a538e21d47a.tar.gz
otp-b864edd81d648606a996143a99e09a538e21d47a.tar.bz2
otp-b864edd81d648606a996143a99e09a538e21d47a.zip
Add cover target to test/Makefile
Diffstat (limited to 'lib/diameter/test/Makefile')
-rw-r--r--lib/diameter/test/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/diameter/test/Makefile b/lib/diameter/test/Makefile
index 47f84a8a42..061f0bcbef 100644
--- a/lib/diameter/test/Makefile
+++ b/lib/diameter/test/Makefile
@@ -77,7 +77,7 @@ any: opt
clean:
rm -f $(TARGET_FILES)
- rm -f depend.mk
+ rm -f depend.mk coverspec
realclean: clean
rm -rf log
@@ -136,10 +136,21 @@ $(SUITES): log opt
| awk '{print} / FAILED /{rc=1} END{exit rc}' rc=0
# Shorter in sed but requires a GNU extension (ie. Q).
+cover: log opt coverspec
+ $(ERL) -noinput \
+ -pa $(realpath ../ebin) \
+ -sname diameter_cover \
+ -s diameter_ct cover \
+ -s init stop \
+ | awk '{print} / FAILED /{rc=1} END{exit rc}' rc=0
+
+coverspec: diameter.cover
+ sed -f [email protected] $< > $@
+
log:
mkdir $@
-.PHONY: $(SUITES)
+.PHONY: $(SUITES) cover
# ----------------------------------------------------
# Release Targets