• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2024 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_aaos_framework",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20python_defaults {
21    name: "torq_defaults",
22    srcs: [
23        "src/**/*.py",
24    ],
25}
26
27python_binary_host {
28    name: "torq",
29    main: "src/torq.py",
30    defaults: ["torq_defaults"],
31}
32
33python_test_host {
34    name: "torq_unit_test",
35    main: "tests/torq_unit_test.py",
36    srcs: ["tests/torq_unit_test.py"],
37    defaults: ["torq_defaults"],
38    embedded_launcher: false,
39    test_options: {
40        unit_test: true,
41    },
42}
43
44python_test_host {
45    name: "device_unit_test",
46    main: "tests/device_unit_test.py",
47    srcs: ["tests/device_unit_test.py"],
48    defaults: ["torq_defaults"],
49    embedded_launcher: false,
50    test_options: {
51        unit_test: true,
52    },
53}
54
55python_test_host {
56    name: "config_builder_unit_test",
57    main: "tests/config_builder_unit_test.py",
58    srcs: ["tests/config_builder_unit_test.py"],
59    defaults: ["torq_defaults"],
60    embedded_launcher: false,
61    test_options: {
62        unit_test: true,
63    },
64}
65
66python_test_host {
67    name: "perfetto_command_executor_unit_test",
68    main: "tests/perfetto_command_executor_unit_test.py",
69    srcs: ["tests/perfetto_command_executor_unit_test.py"],
70    defaults: ["torq_defaults"],
71    embedded_launcher: false,
72    test_options: {
73        unit_test: true,
74    },
75}
76
77python_test_host {
78    name: "validate_simpleperf_unit_test",
79    main: "tests/validate_simpleperf_unit_test.py",
80    srcs: ["tests/validate_simpleperf_unit_test.py"],
81    defaults: ["torq_defaults"],
82    embedded_launcher: false,
83    test_options: {
84        unit_test: true,
85    },
86}
87
88python_test_host {
89    name: "utils_unit_test",
90    main: "tests/utils_unit_test.py",
91    srcs: ["tests/utils_unit_test.py"],
92    defaults: ["torq_defaults"],
93    embedded_launcher: false,
94    test_options: {
95        unit_test: true,
96    },
97}
98
99python_test_host {
100    name: "open_ui_unit_test",
101    main: "tests/open_ui_unit_test.py",
102    srcs: ["tests/open_ui_unit_test.py"],
103    defaults: ["torq_defaults"],
104    embedded_launcher: false,
105    test_options: {
106        unit_test: true,
107    },
108}
109