diff --git a/Makefile b/Makefile index 68eb6d8f..0c3e107f 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ PKGNAME := apparmor.d VERSION := 0.$(shell git rev-list --count HEAD)-1 P = $(filter-out dpkg,$(notdir $(wildcard ${BUILD}/apparmor.d/*))) -.PHONY: all build enforce full install local $(P) pkg dpkg rpm lint clean +.PHONY: all build enforce full install local $(P) pkg dpkg rpm tests lint clean all: build @./${BUILD}/prebuild --complain @@ -82,6 +82,10 @@ dpkg: rpm: @make local +tests: + @go test ./cmd/... ./pkg/... -v -cover -coverprofile=coverage.out + @go tool cover -func=coverage.out + lint: @shellcheck --shell=bash \ PKGBUILD configure dists/build.sh \