bat_test rule.

Rules

bat_test

load("@rules_batch//batch:bat_test.bzl", "bat_test")

bat_test(name, deps, srcs, data)

Declares a test batch script.

The user script is symlinked as the test entry point. Dependencies declared via deps and data are merged into the runfiles tree.

To resolve runfiles at runtime, add a dependency on @rules_batch//batch/runfiles and use the runfiles preamble in your script.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
depsDependencies (e.g. bat_library) merged into the executable runfiles.List of labelsoptional[]
srcsThe batch script source file. Must be a singleton list.List of labelsoptional[]
dataData dependencies merged into the executable runfiles.List of labelsoptional[]