xref: /aosp_15_r20/external/executorch/profiler/test/TARGETS (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
2
3oncall("executorch")
4
5# Ideally this should be a python_unittest but we cannot do that as
6# we have to run this python test with a buck config flag which is
7# -c executorch.prof_enabled=true. So we instead define this as a
8# binary and run this on diffs via a Skycastle job.
9
10python_binary(
11    # @autodeps-skip
12    name = "test_profiler_e2e",
13    srcs = [
14        "test_profiler_e2e.py",
15    ],
16    main_function = "executorch.profiler.test.test_profiler_e2e.main",
17    deps = [
18        "//executorch/exir:lib",
19        "//executorch/exir/_serialize:lib",
20        "//executorch/extension/pybindings:portable_lib",
21        "//executorch/profiler/fb:parse_profiler_library",
22    ],
23)
24