Expose zml/test_runner.zig publicly to enable users to employ the async test runner. Made the dependency on zml explicit and suggest treating test_runner as a zig_library rather than a filegroup.
This commit is contained in:
parent
fe531aef06
commit
8746a5ce78
@ -15,6 +15,10 @@ zig_library(
|
|||||||
"aio/**/*.zig",
|
"aio/**/*.zig",
|
||||||
"nn/**/*.zig",
|
"nn/**/*.zig",
|
||||||
"ops/**/*.zig",
|
"ops/**/*.zig",
|
||||||
|
# TODO: test_runner.zig should not be here.
|
||||||
|
# It's here for now because it seems that test_runner property in zig_test is misbehaving.
|
||||||
|
# See https://github.com/zml/rules_zig/issues/2
|
||||||
|
"test_runner.zig",
|
||||||
]),
|
]),
|
||||||
copts = ["-lc"],
|
copts = ["-lc"],
|
||||||
main = "zml.zig",
|
main = "zml.zig",
|
||||||
@ -60,10 +64,16 @@ zig_cc_test(
|
|||||||
"aio/torch/simple.pt",
|
"aio/torch/simple.pt",
|
||||||
"aio/torch/simple_test.pickle",
|
"aio/torch/simple_test.pickle",
|
||||||
],
|
],
|
||||||
test_runner = "test_runner.zig",
|
test_runner = ":test_runner",
|
||||||
deps = [":zml"],
|
deps = [":zml"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
filegroup(
|
||||||
|
name = "test_runner",
|
||||||
|
srcs = ["test_runner.zig"],
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
)
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "srcs",
|
name = "srcs",
|
||||||
srcs = [":test_test_lib"],
|
srcs = [":test_test_lib"],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user