teleport/integrations/Makefile
Justinas Stankevičius 6af6e7f566
Vendor slack plugin and supporting libraries (#23045)
* Vendor slack plugin and supporting libraries

* Fix up plugin integration tests (wip)

* Run GCI on vendored code

* Use newtype instead of type alias

golangci-lint currently panics on this,
"skip-files" et al don't help, as it is a linter panic, not an error

See d717045480

* Remove long-runing plugins tests from difftest

* Move access plugin tests to unit-tests-integrations
2023-03-22 19:39:07 +00:00

29 lines
757 B
Makefile

# Set up a system-agnostic in-place sed command
IS_GNU_SED = $(shell sed --version 1>/dev/null 2>&1 && echo true || echo false)
ifeq ($(IS_GNU_SED),true)
SED = sed -i
else
SED = sed -i ''
endif
TELEPORT_GET_VERSION ?= v12.1.0
.PHONY: update-test-version
update-test-version:
curl https://get.gravitational.com/teleport-{ent-,}${TELEPORT_GET_VERSION}-{darwin-amd64,linux-{amd64,arm64,arm}}-bin.tar.gz.sha256 > \
lib/testing/integration/download_sha.dsv
(cd ../ && \
$(SED) 's/TELEPORT_GET_VERSION: .*/TELEPORT_GET_VERSION: $(TELEPORT_GET_VERSION)/g' .github/workflows/unit-tests-integrations.yaml \
)
.PHONY: test
test: test-access test-lib
.PHONY: test-access
test-access:
go test -v ./access/...
.PHONY: test-lib
test-lib:
go test ./lib/...