From 789e1ddf8bdb0ae13ec1feee5e731ffe73927e3d Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Wed, 19 Apr 2023 23:16:53 +0100 Subject: [PATCH] chore: add make tests. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 \