mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
40 lines
813 B
Python
40 lines
813 B
Python
load("//tools:defs.bzl", "go_library")
|
|
load("//tools/nogo:defs.bzl", "nogo_config", "nogo_test")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "sanity",
|
|
srcs = ["sanity.go"],
|
|
# This would fail, so we need to disable here. Instead, we manually
|
|
# construct the nogo test below, and ensure that it is failing.
|
|
nogo = False,
|
|
)
|
|
|
|
nogo_config(
|
|
name = "sanity_config",
|
|
srcs = ["sanity.yaml"],
|
|
)
|
|
|
|
nogo_test(
|
|
name = "sanity_nogo",
|
|
srcs = ["sanity.go"],
|
|
config = ":sanity_config",
|
|
tags = [
|
|
"manual",
|
|
"noguitar",
|
|
"notap",
|
|
],
|
|
deps = [":sanity"],
|
|
)
|
|
|
|
sh_test(
|
|
name = "sanity_test",
|
|
srcs = ["sanity_test.sh"],
|
|
args = ["$(location :sanity_nogo)"],
|
|
data = [":sanity_nogo"],
|
|
)
|