...
1package(default_visibility = ["//visibility:public"])
2
3LUA = "//hack/tools:lua"
4
5sh_test(
6 name = "lua_test",
7 size = "small",
8 srcs = ["run_lua_tests.sh"],
9 args = [
10 "$(location %s)" % LUA,
11 "pkg/edge/logging/fluentbit",
12 "third_party/lua/simple_test/src",
13 ],
14 data = [
15 LUA,
16 ":target_dir",
17 # there's a filegroup rule in /third_party/lua/BUILD.bazel which defines the files for this target
18 "//third_party/lua:lua_test_library",
19 ],
20)
21
22# make all the files under pkg/edge/logging/fluentbit/** available to the test script
23filegroup(
24 name = "target_dir",
25 srcs = glob([
26 "**/*.lua",
27 "testdata/**",
28 ]),
29 visibility = ["//visibility:public"],
30)
View as plain text