-
Notifications
You must be signed in to change notification settings - Fork 13
/
BUILD.bazel
71 lines (61 loc) · 1.44 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
load("@bazel_skylib//lib:selects.bzl", "selects")
package_group(
name = "internal",
packages = ["//..."],
)
config_setting(
name = "freebsd",
constraint_values = ["@platforms//os:freebsd"],
)
config_setting(
name = "linux",
constraint_values = ["@platforms//os:linux"],
)
config_setting(
name = "macos",
constraint_values = ["@platforms//os:macos"],
)
config_setting(
name = "windows",
constraint_values = ["@platforms//os:windows"],
)
selects.config_setting_group(
name = "posix",
match_any = [
":freebsd",
":linux",
":macos",
],
)
config_setting(
name = "fips",
values = {"define": "fips=1"},
)
config_setting(
name = "openssl",
values = {"define": "openssl=1"},
)
# A target to encompass tests that are tagged 'manual'
# but should be run in CI environments.
test_suite(
name = "ci_only_tests",
tags = ["manual"],
tests = [
"//kmsp11/main:binary_test",
"//kmsp11/test/e2e:e2e_test",
],
)
# A target to encompass tests that are tagged 'manual'
# but should be run in Windows CI environments.
#
# We should be able to merge this with :ci_only tests in Bazel 7
# using the new flag --skip_incompatible_explicit_targets.
# https://github.com/bazelbuild/bazel/issues/17403
test_suite(
name = "windows_ci_only_tests",
tags = ["manual"],
tests = [
"//kmscng/main:install_test",
"//kmscng/test:signtool_test",
],
)