a5ebab63e7
* New Providers added and updated vendoring for go-discover * Vendor.json formatted using make vendorfmt * Docs/Agent/auto-join: Added documentation for the new providers introduced in this PR * Updated the golang.org/x/sys/unix in the vendor directory * Agent: TestGoDiscoverRegistration updated to reflect the addition of new providers * Deleted terraform.tfstate from vendor. * Deleted terraform.tfstate.backup Deleted terraform state file artifacts from unknown runs. * Updated x/sys/windows vendor for Windows binary compilation
30 lines
639 B
Makefile
30 lines
639 B
Makefile
.PHONY: test
|
|
|
|
all: check test
|
|
|
|
check: goimports govet
|
|
|
|
goimports:
|
|
@echo checking go imports...
|
|
@go get golang.org/x/tools/cmd/goimports
|
|
@! goimports -d . 2>&1 | egrep -v '^$$'
|
|
|
|
govet:
|
|
@echo checking go vet...
|
|
@go tool vet -structtags=false -methods=false $$(find . -mindepth 1 -maxdepth 1 -type d -not -name vendor)
|
|
|
|
install:
|
|
go install -v github.com/vmware/govmomi/govc
|
|
go install -v github.com/vmware/govmomi/vcsim
|
|
|
|
go-test:
|
|
go test -race -v $(TEST_OPTS) ./...
|
|
|
|
govc-test: install
|
|
(cd govc/test && ./vendor/github.com/sstephenson/bats/libexec/bats -t .)
|
|
|
|
test: go-test govc-test
|
|
|
|
doc: install
|
|
./govc/usage.sh > ./govc/USAGE.md
|