mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 22:43:05 +00:00
runtime: enable make file
go test needs explicit -mod=vendor argument. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
426a9cab6e
commit
93b72558ad
2
src/runtime/.gitignore
vendored
2
src/runtime/.gitignore
vendored
@ -1,6 +1,8 @@
|
|||||||
*.o
|
*.o
|
||||||
*.patch
|
*.patch
|
||||||
*.swp
|
*.swp
|
||||||
|
coverage.txt
|
||||||
|
coverage.html
|
||||||
.git-commit
|
.git-commit
|
||||||
.git-commit.tmp
|
.git-commit.tmp
|
||||||
/cli/config/configuration-acrn.toml
|
/cli/config/configuration-acrn.toml
|
||||||
|
@ -668,7 +668,7 @@ check: check-go-static
|
|||||||
test: go-test
|
test: go-test
|
||||||
|
|
||||||
go-test: $(GENERATED_FILES)
|
go-test: $(GENERATED_FILES)
|
||||||
$(QUIET_TEST).ci/go-test.sh
|
go test -v -mod=vendor ./...
|
||||||
|
|
||||||
check-go-static:
|
check-go-static:
|
||||||
$(QUIET_CHECK).ci/static-checks.sh
|
$(QUIET_CHECK).ci/static-checks.sh
|
||||||
@ -676,7 +676,8 @@ check-go-static:
|
|||||||
$(QUIET_CHECK).ci/go-no-os-exit.sh ./virtcontainers
|
$(QUIET_CHECK).ci/go-no-os-exit.sh ./virtcontainers
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
$(QUIET_TEST).ci/go-test.sh html-coverage
|
go test -v -mod=vendor -covermode=atomic -coverprofile=coverage.txt ./...
|
||||||
|
go tool cover -html=coverage.txt -o coverage.html
|
||||||
|
|
||||||
install: default install-runtime install-containerd-shim-v2 install-netmon
|
install: default install-runtime install-containerd-shim-v2 install-netmon
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user