2023-08-16 15:58:12 -04:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "test_test",
|
|
|
|
srcs = [
|
|
|
|
"benchmark_test.go",
|
|
|
|
"integration_test.go",
|
|
|
|
],
|
2023-12-05 05:19:18 -05:00
|
|
|
data = [
|
|
|
|
"@coreutils//:bin/dd",
|
|
|
|
"@coreutils//:bin/rm",
|
|
|
|
],
|
|
|
|
env = {
|
|
|
|
"DD": "$(rlocationpath @coreutils//:bin/dd)",
|
|
|
|
"RM": "$(rlocationpath @coreutils//:bin/rm)",
|
|
|
|
},
|
2023-08-16 15:58:12 -04:00
|
|
|
# keep
|
2023-12-05 05:19:18 -05:00
|
|
|
tags = [
|
|
|
|
"integration",
|
|
|
|
"local",
|
|
|
|
"no-sandbox",
|
|
|
|
],
|
|
|
|
target_compatible_with = ["@platforms//os:linux"],
|
2023-08-16 15:58:12 -04:00
|
|
|
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",
|
2023-12-05 05:19:18 -05:00
|
|
|
"@io_bazel_rules_go//go/runfiles:go_default_library",
|
2023-08-16 15:58:12 -04:00
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
"@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",
|
2023-12-05 05:19:18 -05:00
|
|
|
"@io_bazel_rules_go//go/runfiles:go_default_library",
|
2023-08-16 15:58:12 -04:00
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
|
|
|
)
|