mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-12 09:24:24 -05:00
50 lines
1.6 KiB
Python
50 lines
1.6 KiB
Python
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_test(
|
|
name = "test_test",
|
|
srcs = [
|
|
"benchmark_test.go",
|
|
"integration_test.go",
|
|
],
|
|
data = [
|
|
"@coreutils//:bin/dd",
|
|
"@coreutils//:bin/rm",
|
|
],
|
|
env = {
|
|
"DD": "$(rlocationpath @coreutils//:bin/dd)",
|
|
"RM": "$(rlocationpath @coreutils//:bin/rm)",
|
|
},
|
|
# keep
|
|
tags = [
|
|
"integration",
|
|
"local",
|
|
"no-sandbox",
|
|
],
|
|
target_compatible_with = ["@platforms//os:linux"],
|
|
deps = select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"//disk-mapper/internal/diskencryption",
|
|
"//internal/cryptsetup",
|
|
"//internal/logger",
|
|
"@com_github_martinjungblut_go_cryptsetup//:go-cryptsetup",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@io_bazel_rules_go//go/runfiles:go_default_library",
|
|
"@org_uber_go_goleak//:goleak",
|
|
"@org_uber_go_zap//zapcore",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//disk-mapper/internal/diskencryption",
|
|
"//internal/cryptsetup",
|
|
"//internal/logger",
|
|
"@com_github_martinjungblut_go_cryptsetup//:go-cryptsetup",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@io_bazel_rules_go//go/runfiles:go_default_library",
|
|
"@org_uber_go_goleak//:goleak",
|
|
"@org_uber_go_zap//zapcore",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|