| 1 |
load("@rules_python//python:py_test.bzl", "py_test") |
| 2 |
|
| 3 |
package(default_visibility = ["//visibility:public"]) |
| 4 |
|
| 5 |
filegroup( |
| 6 |
name = "golden_inputs", |
| 7 |
srcs = glob(["input/*.txt"]), |
| 8 |
) |
| 9 |
|
| 10 |
filegroup( |
| 11 |
name = "golden_outputs", |
| 12 |
srcs = glob(["output/*.txt"]), |
| 13 |
) |
| 14 |
|
| 15 |
py_test( |
| 16 |
name = "golden_convert_test", |
| 17 |
size = "small", |
| 18 |
srcs = ["golden_convert_test.py"], |
| 19 |
data = [ |
| 20 |
":golden_inputs", |
| 21 |
":golden_outputs", |
| 22 |
"//data/config", |
| 23 |
"//data/dictionary:binary_dictionaries", |
| 24 |
"//plugins/jieba:config", |
| 25 |
"//plugins/jieba:opencc-jieba", |
| 26 |
"//plugins/jieba:resources", |
| 27 |
"//src/tools:command_line", |
| 28 |
], |
| 29 |
) |