mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-25 04:18:13 +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
|
VERSION := 0.$(shell git rev-list --count HEAD)-1
|
||||||
P = $(filter-out dpkg,$(notdir $(wildcard ${BUILD}/apparmor.d/*)))
|
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
|
all: build
|
||||||
@./${BUILD}/prebuild --complain
|
@./${BUILD}/prebuild --complain
|
||||||
|
@ -82,6 +82,10 @@ dpkg:
|
||||||
rpm:
|
rpm:
|
||||||
@make local
|
@make local
|
||||||
|
|
||||||
|
tests:
|
||||||
|
@go test ./cmd/... ./pkg/... -v -cover -coverprofile=coverage.out
|
||||||
|
@go tool cover -func=coverage.out
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@shellcheck --shell=bash \
|
@shellcheck --shell=bash \
|
||||||
PKGBUILD configure dists/build.sh \
|
PKGBUILD configure dists/build.sh \
|
||||||
|
|
Loading…
Reference in a new issue