mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-18 19:47:54 -04:00
bazel: allow "bazel test" to work without cgo dependencies
This commit is contained in:
parent
de863aece0
commit
1f12541a36
10 changed files with 154 additions and 130 deletions
|
@ -1,5 +1,5 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
load("//bazel/go:go_test.bzl", "go_ld_test", "go_test")
|
||||
load("//bazel/go:go_test.bzl", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "server",
|
||||
|
@ -20,10 +20,16 @@ go_library(
|
|||
|
||||
go_test(
|
||||
name = "server_test",
|
||||
srcs = ["server_test.go"],
|
||||
srcs = [
|
||||
"server_cgo_test.go",
|
||||
"server_cross_test.go",
|
||||
"server_test.go",
|
||||
],
|
||||
embed = [":server"],
|
||||
# keep
|
||||
tags = ["manual"],
|
||||
pure = "on",
|
||||
# keep
|
||||
race = "off",
|
||||
deps = [
|
||||
"//hack/qemu-metadata-api/virtwrapper",
|
||||
"//internal/cloud/metadata",
|
||||
|
@ -33,9 +39,3 @@ go_test(
|
|||
"@org_libvirt_go_libvirt//:libvirt",
|
||||
],
|
||||
)
|
||||
|
||||
go_ld_test(
|
||||
name = "server_ld_test",
|
||||
src = "server_test",
|
||||
ld = "//rpm:ld",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue