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- # add this empty BUCK file to unblock landing. Without this, we get land error:
2- # "No build file at xplat/executorch/exir/dialects/edge/test/BUCK when resolving target fbsource//xplat/executorch/exir/dialects/edge/test:."
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" )
36
47oncall ("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 ("@fbcode_macros//build_defs:python_unittest.bzl" , "python_unittest" )
2+
3+ def define_common_targets (is_fbcode = False ):
4+ if not is_fbcode :
5+ return
6+
7+ python_unittest (
8+ name = "test_edge_yaml" ,
9+ srcs = [
10+ "test_edge_yaml.py" ,
11+ ],
12+ resources = {
13+ "//executorch/exir/dialects/edge:edge_yaml" : "edge.yaml" ,
14+ },
15+ labels = ["long_running" ],
16+ deps = [
17+ "fbsource//third-party/pypi/expecttest:expecttest" , # @manual
18+ "//caffe2:torch" ,
19+ "//executorch/exir/dialects/edge/dtype:lib" ,
20+ "//executorch/exir/dialects/edge/spec:lib" ,
21+ ],
22+ )
23+
24+ python_unittest (
25+ name = "test_edge_ops" ,
26+ srcs = [
27+ "test_edge_ops.py" ,
28+ ],
29+ deps = [
30+ "//caffe2:torch" ,
31+ "//executorch/exir/dialects:lib" ,
32+ "//executorch/exir/dialects/edge:lib" ,
33+ ],
34+ )
Original file line number Diff line number Diff line change 1- # add this empty BUCK file to unblock landing. Without this, we get land error:
2- # "No build file at xplat/executorch/exir/tests/BUCK when resolving target fbsource//xplat/executorch/exir/tests:."
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" )
36
47oncall ("executorch" )
8+
9+ define_common_targets (is_fbcode = is_fbcode ())
You can’t perform that action at this time.
0 commit comments