diff options
author | Anders Svensson <[email protected]> | 2013-02-19 16:03:38 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-02-19 16:03:38 +0100 |
commit | f6f7f67b60b3b67e79a2a4d23542bf5c74542fd3 (patch) | |
tree | 1bc6dddc3a0911dfb8b53cbbaeeb0659ead2348e /lib/diameter/test/Makefile | |
parent | e6613acf5a29c882d4673c6a8371e03523f9590c (diff) | |
parent | 44023a32d66a0eb98f3c7bd50fa1407ac4ffdb5a (diff) | |
download | otp-f6f7f67b60b3b67e79a2a4d23542bf5c74542fd3.tar.gz otp-f6f7f67b60b3b67e79a2a4d23542bf5c74542fd3.tar.bz2 otp-f6f7f67b60b3b67e79a2a4d23542bf5c74542fd3.zip |
Merge branch 'anders/diameter/R16B_release/OTP-10835'
* anders/diameter/R16B_release/OTP-10835:
vsn -> 1.4.1
Update appup for diameter-1.4.1 in R16B
Add cover target to test/Makefile
Make tweaks
Remove dialyzer nowarn_unused_function workaround
Diffstat (limited to 'lib/diameter/test/Makefile')
-rw-r--r-- | lib/diameter/test/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/lib/diameter/test/Makefile b/lib/diameter/test/Makefile index aa4b7eaeb1..061f0bcbef 100644 --- a/lib/diameter/test/Makefile +++ b/lib/diameter/test/Makefile @@ -56,7 +56,8 @@ DATA_DIRS = $(sort $(dir $(DATA))) ERL_COMPILE_FLAGS += +warn_export_vars \ +warn_unused_vars \ -I ../include \ - -I ../src/gen + -I ../src/gen \ + $(STRICT_FLAGS) # ---------------------------------------------------- # Targets @@ -64,6 +65,9 @@ ERL_COMPILE_FLAGS += +warn_export_vars \ all debug opt: $(TARGET_FILES) +strict: + $(MAKE) opt STRICT_FLAGS=-Werror + # Require success ... run: $(SUITES) @@ -73,7 +77,7 @@ any: opt clean: rm -f $(TARGET_FILES) - rm -f depend.mk + rm -f depend.mk coverspec realclean: clean rm -rf log @@ -114,7 +118,7 @@ help: @echo " Echo some relevant variables." @echo ======================================== -.PHONY: all any run clean debug docs help info opt realclean +.PHONY: all any run clean debug docs help info opt realclean strict # ---------------------------------------------------- # Special Targets @@ -132,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 |