2017-01-18 17:56:30 +00:00
|
|
|
TRIS := $(CURDIR)/../../cloudflare/tls-tris
|
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:
|
2017-01-18 17:56:30 +00:00
|
|
|
GOBIN=$(CURDIR)/bin $(TRIS)/_dev/go.sh 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)
|