Change tests, use go vet

pull/168/head
Simon Let 4 years ago
parent 91b73ef1af
commit 3eda04629a
No known key found for this signature in database
GPG Key ID: D650C65DD46D431D
  1. 13
      Makefile

@ -11,14 +11,9 @@ build: submodules bin/resh-session-init bin/resh-collect bin/resh-postcollect bi
install: build install: build
scripts/install.sh scripts/install.sh
test_go: test:
# Running tests go test -v ./...
@for dir in {cmd,pkg}/* ; do \ go vet ./...
echo $$dir ; \
go test $$dir/*.go ; \
done
test: test_go
scripts/test.sh scripts/test.sh
rebuild: rebuild:
@ -36,7 +31,7 @@ bin/resh-%: cmd/%/*.go pkg/*/*.go cmd/control/cmd/*.go cmd/control/status/status
grep $@ .goreleaser.yml -q # all build targets need to be included in .goreleaser.yml grep $@ .goreleaser.yml -q # all build targets need to be included in .goreleaser.yml
go build ${GOFLAGS} -o $@ cmd/$*/*.go go build ${GOFLAGS} -o $@ cmd/$*/*.go
.PHONY: ser submodules build install rebuild uninstall clean .PHONY: submodules build install rebuild uninstall clean test
submodules: | submodules/bash-preexec/bash-preexec.sh submodules/bash-zsh-compat-widgets/bindfunc.sh submodules: | submodules/bash-preexec/bash-preexec.sh submodules/bash-zsh-compat-widgets/bindfunc.sh

Loading…
Cancel
Save