package(default_visibility = ["//visibility:public"]) LUA = "//hack/tools:lua" sh_test( name = "lua_test", size = "small", srcs = ["run_lua_tests.sh"], args = [ "$(location %s)" % LUA, "pkg/edge/logging/fluentbit", "third_party/lua/simple_test/src", ], data = [ LUA, ":target_dir", # there's a filegroup rule in /third_party/lua/BUILD.bazel which defines the files for this target "//third_party/lua:lua_test_library", ], ) # make all the files under pkg/edge/logging/fluentbit/** available to the test script filegroup( name = "target_dir", srcs = glob([ "**/*.lua", "testdata/**", ]), visibility = ["//visibility:public"], )