From: Simon Ruderich Date: Wed, 21 Apr 2021 06:28:08 +0000 (+0200) Subject: Makefile: move command to test target X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=06e94a0f798e8c3e231ebe01ae85ec1337505ac8;p=safcm%2Fsafcm.git Makefile: move command to test target The permissions are only relevant when running tests. --- diff --git a/Makefile b/Makefile index 5549539..17f1213 100644 --- a/Makefile +++ b/Makefile @@ -12,10 +12,11 @@ safcm: go fmt ./... cd cmd/safcm-remote && ./build.sh go build $(GOFLAGS) -ldflags $(LDFLAGS) ruderich.org/simon/safcm/cmd/safcm - @# For proper permissions after initial clone with a strict umask - cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null test: + @# For proper permissions after initial clone with a strict umask + cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null + @# ./cmd/safcm/testdata/ssh/prepare.sh go vet ./... go test $(GOFLAGS) ./...