From 5b16bc5221b4be0db96be78602f21857c6a42aac Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 20 Dec 2018 14:11:36 +0100 Subject: [PATCH] TT#49106 Move the test suite into its own target This changes the build so that we need to request running the checks explicitly. Otherwise, for the Debian packaging, for example, we end up running the checks twice. Change-Id: I55154fc97cbfa31a98808a9132c62b8ce82c132f --- Makefile | 7 +++++-- README.md | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b182b9e6b..f347f3fbe 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,6 @@ all: $(MAKE) -C daemon $(MAKE) -C recording-daemon $(MAKE) -C iptables-extension - $(MAKE) -C t .PHONY: with-kernel @@ -28,10 +27,14 @@ distclean clean: $(MAKE) -C recording-daemon $@ $(MAKE) -C iptables-extension $@ $(MAKE) -C kernel-module $@ + +.PHONY: check + +check: all $(MAKE) -C t coverity: - cov-build --dir cov-int $(MAKE) + cov-build --dir cov-int $(MAKE) check tar -czf project.tgz cov-int curl --form token=$(COVERITY_RTPENGINE_TOKEN) \ --form email=$(DEBEMAIL) \ diff --git a/README.md b/README.md index 949385be4..f772368c6 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,9 @@ see the section on *G.729 support* below for details. Manual Compilation ------------------ -There's 3 parts to *rtpengine*, which can be found in the respective subdirectories. +There's 3 parts to *rtpengine*, which can be found in the respective +subdirectories. Running `make check` on the top source directory will +build all parts and run the test suite. * `daemon`