2017-01-18 17:47:47 +00:00
|
|
|
GO_ := $(CURDIR)/vendor/github.com/cloudflare/tls-tris/_dev/go.sh
|
2017-01-09 23:24:36 +00:00
|
|
|
|
2017-01-18 17:47:47 +00:00
|
|
|
.PHONY: bin/crypto-tls-bogo-shim
|
|
|
|
bin/crypto-tls-bogo-shim:
|
|
|
|
GOBIN=$(CURDIR)/bin $(GO_) install -v .
|
2017-01-09 21:47:43 +00:00
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
run: bin/crypto-tls-bogo-shim
|
2017-01-18 17:47:47 +00:00
|
|
|
ifdef NAME
|
|
|
|
$(eval ARGS += -test $(NAME))
|
|
|
|
endif
|
|
|
|
ifdef EXTRA_ARGS
|
|
|
|
$(eval ARGS += $(EXTRA_ARGS))
|
|
|
|
endif
|
2017-01-09 21:47:43 +00:00
|
|
|
unset GOPATH && cd vendor/github.com/google/boringssl/ssl/test/runner && \
|
2017-01-18 17:47:47 +00:00
|
|
|
go test -loose-errors -allow-unimplemented -shim-path $(CURDIR)/bin/crypto-tls-bogo-shim -shim-config $(CURDIR)/config.json $(ARGS)
|