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