constellation/disk-mapper/internal/test/BUILD.bazel

37 lines
1.3 KiB
Text

load("//bazel/go:go_test.bzl", "go_test")
go_test(
name = "test_test",
srcs = [
"benchmark_test.go",
"integration_test.go",
],
gotags = ["integration"],
# keep
# tags = ["manual"],
# TODO(malt3): use libcryptsetup from nix (instead of Fedora) to make integration tests work on Linux with Bazel
tags = ["integration"],
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",
"@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",
"@org_uber_go_goleak//:goleak",
"@org_uber_go_zap//zapcore",
],
"//conditions:default": [],
}),
)