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
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
package(
default_visibility = ["//visibility:public"],
)
licenses(["notice"]) # Apache 2.0
exports_files(["LICENSE"] + glob(["testdata/*.textproto"]))
go_library(
name = "go_default_library",
srcs = [
"envcheck.go",
],
importpath = "github.com/google/cel-spec/tests/envcheck",
deps = [
"//tools/celrpc:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
"@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library",
"@org_golang_google_genproto//googleapis/api/expr/conformance/v1alpha1:go_default_library",
"@org_golang_google_genproto//googleapis/rpc/status:go_default_library",
"@org_golang_google_grpc//codes:go_default_library",
"@org_golang_google_grpc//status:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
],
)
# This test target is meant to be called from the repositories
# of various CEL implementations, passing their own conformance
# server as an argument. However, this test must be exposed as
# a go_test target. So when called without arguments, the test
# will simply exit with success.
go_test(
name = "envcheck_test",
srcs = ["envcheck_test.go"],
embed = [":go_default_library"],
deps = [
"//proto/test/v1:testpb_go_proto",
"//tools/celrpc:go_default_library",
"@org_golang_google_protobuf//encoding/prototext:go_default_library",
],
# This is the magic setting that lets external invokers see
# files in their expected locations.
rundir = "../..",
)
|