gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/tools/nogo/sanity/BUILD (about) 1 load("//tools:defs.bzl", "go_library") 2 load("//tools/nogo:defs.bzl", "nogo_config", "nogo_test") 3 4 package( 5 default_applicable_licenses = ["//:license"], 6 licenses = ["notice"], 7 ) 8 9 go_library( 10 name = "sanity", 11 srcs = ["sanity.go"], 12 # This would fail, so we need to disable here. Instead, we manually 13 # construct the nogo test below, and ensure that it is failing. 14 nogo = False, 15 ) 16 17 nogo_config( 18 name = "sanity_config", 19 srcs = ["sanity.yaml"], 20 ) 21 22 nogo_test( 23 name = "sanity_nogo", 24 srcs = ["sanity.go"], 25 config = ":sanity_config", 26 tags = [ 27 "manual", 28 "noguitar", 29 "notap", 30 ], 31 deps = [":sanity"], 32 ) 33 34 sh_test( 35 name = "sanity_test", 36 srcs = ["sanity_test.sh"], 37 args = ["$(location :sanity_nogo)"], 38 data = [":sanity_nogo"], 39 )