mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-24 20:08:11 +01:00
chore: add make tests.
This commit is contained in:
parent
35017ea583
commit
789e1ddf8b
1 changed files with 5 additions and 1 deletions
6
Makefile
6
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 \
|
||||
|
|
Loading…
Reference in a new issue