File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Any targets that should be shared between fbcode and xplat must be defined in
2+ # targets.bzl.
3+
4+ load ("@fbsource//tools/build_defs:fbsource_utils.bzl" , "is_fbcode" )
5+ load (":targets.bzl" , "define_common_targets" )
6+
7+ oncall ("executorch" )
8+
9+ define_common_targets (is_fbcode = is_fbcode ())
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
2+
3+ def define_common_targets (is_fbcode = False ):
4+ if not is_fbcode :
5+ return
6+
7+ runtime .python_test (
8+ name = "test_runtime" ,
9+ srcs = ["test_runtime.py" ],
10+ deps = [
11+ "//executorch/extension/pybindings/test:make_test" ,
12+ "//executorch/runtime:runtime" ,
13+ "//executorch/devtools/etdump:serialize" ,
14+ ],
15+ )
16+
17+ runtime .python_test (
18+ name = "test_runtime_etdump_gen" ,
19+ srcs = ["test_runtime_etdump_gen.py" ],
20+ deps = [
21+ "//executorch/extension/pybindings/test:make_test" ,
22+ "//executorch/runtime:runtime" ,
23+ "//executorch/devtools/etdump:serialize" ,
24+ ],
25+ )
26+
27+ runtime .python_test (
28+ name = "test_runtime_xnnpack" ,
29+ srcs = ["test_runtime_xnnpack.py" ],
30+ deps = [
31+ "//caffe2:torch" ,
32+ "//executorch/backends/xnnpack/partition:xnnpack_partitioner" ,
33+ "//executorch/exir:lib" ,
34+ "//executorch/runtime:runtime" ,
35+ ],
36+ )
You can’t perform that action at this time.
0 commit comments