xref: /aosp_15_r20/external/executorch/backends/xnnpack/test/targets.bzl (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1load("@fbsource//xplat/executorch/backends/xnnpack/third-party:third_party_libs.bzl", "third_party_dep")
2load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
3
4def define_common_targets():
5    runtime.cxx_test(
6        name = "dynamic_quant_utils_test",
7        srcs = ["runtime/test_runtime_utils.cpp"],
8        fbcode_deps = [
9            "//caffe2:ATen-cpu",
10        ],
11        xplat_deps = [
12            "//caffe2:aten_cpu",
13        ],
14        deps = [
15            "//executorch/runtime/core/exec_aten/testing_util:tensor_util",
16            "//executorch/runtime/core/exec_aten/util:scalar_type_util",
17            "//executorch/extension/aten_util:aten_bridge",
18            "//executorch/backends/xnnpack:dynamic_quant_utils",
19        ],
20    )
21
22    runtime.cxx_test(
23        name = "xnnexecutor_test",
24        srcs = ["runtime/test_xnnexecutor.cpp"],
25        deps = [
26            third_party_dep("XNNPACK"),
27            third_party_dep("FP16"),
28            "//executorch/runtime/core/exec_aten/testing_util:tensor_util",
29            "//executorch/runtime/core/exec_aten/util:scalar_type_util",
30            "//executorch/backends/xnnpack:xnnpack_backend",
31        ],
32    )
33