mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-12 17:34:28 -05:00
40 lines
987 B
Python
40 lines
987 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "measure",
|
|
srcs = [
|
|
"authentihash.go",
|
|
"pcr.go",
|
|
"pcr04.go",
|
|
"pcr09.go",
|
|
"pcr11.go",
|
|
],
|
|
importpath = "github.com/edgelesssys/constellation/v2/image/measured-boot/measure",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//image/measured-boot/pesection",
|
|
"@com_github_foxboron_go_uefi//authenticode",
|
|
"@org_golang_x_text//encoding/unicode",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "measure_test",
|
|
srcs = [
|
|
"authentihash_test.go",
|
|
"measure_test.go",
|
|
"pcr04_test.go",
|
|
"pcr09_test.go",
|
|
"pcr11_test.go",
|
|
"pcr_test.go",
|
|
],
|
|
embed = [":measure"],
|
|
deps = [
|
|
"//image/measured-boot/fixtures",
|
|
"//image/measured-boot/pesection",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
)
|