From af76e073ca035be885b9ffe0060965afdfbd8495 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Tue, 19 Dec 2017 16:46:33 -0800 Subject: [PATCH] Add a 'make check' target to the Makefile Signed-off-by: Caio Marcelo de Oliveira Filho --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 663ada5..62cced2 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ gopath: @echo "Code already in existing GOPATH=${GOPATH}" endif -.PHONY: all compliant build install clean +.PHONY: all compliant build install clean check .DEFAULT_GOAL := all all: compliant build @@ -52,6 +52,9 @@ install: gopath install -m 00755 superpack-maker.sh $(DESTDIR)/usr/bin/mixer-superpack-maker.sh install -D -m 00644 yum.conf.in $(DESTDIR)/usr/share/defaults/mixer/yum.conf.in +check: gopath + go test ${GO_PACKAGE_PREFIX}/... + clean: ifeq (,${LOCAL_GOPATH}) go clean -i -x