加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
Sandra Vrtikapa 提交于 2022-11-07 23:13 . feat: Add long form VDR (#293)
# Copyright SecureKey Technologies Inc.
#
# SPDX-License-Identifier: Apache-2.0
.PHONY: all
all: checks unit-test
.PHONY: unit-test
unit-test:
@scripts/check_unit.sh
.PHONY: vdr-trustbloc-bdd-test
vdr-trustbloc-bdd-test: generate-vdr-trustbloc-test-keys
@cd ./test/bdd/vdr/trustbloc/;go test -count=1 -v -cover . -p 1 -timeout=20m
.PHONY: vdr-orb-bdd-test
vdr-orb-bdd-test: generate-vdr-orb-test-keys
@cd ./test/bdd/vdr/orb/;go test -count=1 -run orb_ipfs -v -cover . -p 1 -timeout=20m
@cd ./test/bdd/vdr/orb/;UPDATE_DOCUMENT_STORE_ENABLED=true BATCH_TIMEOUT=10000 CAS_TYPE=local go test -count=1 -run orb_cas -v -cover . -p 1 -timeout=20m
.PHONY: checks
checks: license lint
.PHONY: license
license:
@scripts/check_license.sh
.PHONY: lint
lint:
scripts/check_lint.sh
.PHONY: generate-vdr-trustbloc-test-keys
generate-vdr-trustbloc-test-keys:
@rm -Rf ./test/bdd/vdr/trustbloc/fixtures/keys/tls
@mkdir -p -p test/bdd/vdr/trustbloc/fixtures/keys/tls
@docker run -i --rm \
-v $(abspath .):/opt/workspace/ext \
--entrypoint "/opt/workspace/ext/test/bdd/vdr/trustbloc/generate_test_keys.sh" \
frapsoft/openssl
.PHONY: generate-vdr-orb-test-keys
generate-vdr-orb-test-keys:
@rm -Rf ./test/bdd/vdr/orb/fixtures/keys/tls
@mkdir -p -p test/bdd/vdr/orb/fixtures/keys/tls
@docker run -i --rm \
-v $(abspath .):/opt/workspace/ext \
--entrypoint "/opt/workspace/ext/test/bdd/vdr/orb/generate_test_keys.sh" \
frapsoft/openssl
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化