2023-03-09 09:23:42 -05:00
|
|
|
load("@bazel_skylib//rules:build_test.bzl", "build_test")
|
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_test")
|
|
|
|
|
|
|
|
exports_files(
|
|
|
|
[
|
|
|
|
"BUILD.openssl.bazel",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "openssl_test",
|
|
|
|
srcs = ["openssl_test.cc"],
|
|
|
|
linkopts = select({
|
|
|
|
"@org_openssl//:msvc_compiler": [
|
|
|
|
"advapi32.lib",
|
|
|
|
"user32.lib",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2023-06-09 04:35:52 -04:00
|
|
|
target_compatible_with = [
|
|
|
|
"@platforms//os:linux",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
deps = ["@org_openssl//:openssl"],
|
|
|
|
)
|
|
|
|
|
|
|
|
build_test(
|
|
|
|
name = "build_test",
|
2023-06-09 04:35:52 -04:00
|
|
|
target_compatible_with = [
|
|
|
|
"@platforms//os:linux",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
targets = [
|
|
|
|
"@org_openssl//:openssl",
|
|
|
|
],
|
|
|
|
visibility = ["//:__pkg__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
test_suite(
|
|
|
|
name = "openssl_test_suite",
|
|
|
|
tests = [
|
|
|
|
":build_test",
|
|
|
|
":openssl_test",
|
|
|
|
],
|
|
|
|
visibility = ["//:__pkg__"],
|
|
|
|
)
|