-
Notifications
You must be signed in to change notification settings - Fork 971
Expand file tree
/
Copy pathBUCK
More file actions
87 lines (76 loc) · 2.66 KB
/
BUCK
File metadata and controls
87 lines (76 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
# Copyright 2025 Arm Limited and/or its affiliates.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load(":targets.bzl", "define_arm_tests")
oncall("executorch")
fbcode_target(_kind = runtime.python_library,
name = "conftest",
srcs = ["conftest.py"],
deps = [
"//executorch/exir:lib",
"//executorch/exir/backend:compile_spec_schema",
"fbsource//third-party/pypi/pytest:pytest",
]
)
fbcode_target(_kind = runtime.python_library,
name = "runner_utils",
srcs = ["runner_utils.py"],
resources = {
"fbsource//third-party/flatbuffers:flatc-host": "flatbuffers-flatc",
},
deps = [
":conftest",
"//executorch/backends/arm:arm_compile_spec",
"//executorch/backends/arm:ethosu",
"//executorch/backends/arm/tosa:compile_spec",
"//executorch/backends/arm/tosa:schemas",
"//executorch/backends/arm:vgf",
"//executorch/backends/arm/tosa:specification",
"//executorch/exir:lib",
"//executorch/exir/backend:compile_spec_schema",
]
)
fbcode_target(_kind = runtime.python_library,
name = "common",
srcs = ["common.py"],
deps = [
":runner_utils",
"//executorch/backends/arm/tosa:tosa",
"fbsource//third-party/pypi/pytest:pytest",
]
)
fbcode_target(_kind = runtime.python_library,
name = "arm_tester_serialize",
srcs = ["tester/serialize.py"],
deps = [
"//executorch/backends/xnnpack/test/tester:tester",
"//executorch/devtools/backend_debug:delegation_info",
]
)
fbcode_target(_kind = runtime.python_library,
name = "arm_tester_lib",
srcs = glob(["tester/*.py"], exclude = ["tester/serialize.py"]),
deps = [
":common",
"//executorch/backends/xnnpack/test/tester:tester",
"//executorch/backends/arm:ethosu",
"//executorch/backends/arm/quantizer:lib",
"//executorch/backends/arm/tosa:mapping",
"//executorch/backends/arm:vgf",
"//executorch/backends/arm:_factory",
"//executorch/devtools/backend_debug:delegation_info",
"//executorch/exir/backend:operator_support",
"fbsource//third-party/pypi/tabulate:tabulate",
]
)
fbcode_target(_kind = runtime.python_library,
name = "arm_tester",
deps = [
"//executorch/backends/arm/test:arm_tester_lib",
"//executorch/backends/arm/test:arm_tester_serialize",
]
)
fbcode_target(_kind = define_arm_tests,)