1// Copyright (C) 2023 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_fwk_uwb",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20python_defaults {
21    name: "quick_start_perf_test_defaults",
22    pkg_path: "performance_test",
23}
24
25python_library_host {
26    name: "nc_constants",
27    defaults: ["quick_start_perf_test_defaults"],
28    srcs: [
29        "nc_constants.py",
30    ],
31    libs: [
32    ],
33}
34
35python_library_host {
36    name: "gms_auto_updates_util",
37    defaults: ["quick_start_perf_test_defaults"],
38    srcs: [
39        "gms_auto_updates_util.py",
40    ],
41    libs: [
42        "mobly",
43    ],
44}
45
46python_library_host {
47    name: "setup_utils",
48    defaults: ["quick_start_perf_test_defaults"],
49    srcs: [
50        "setup_utils.py",
51    ],
52    libs: [
53        "gms_auto_updates_util",
54        "nc_constants",
55        "mobly",
56    ],
57}
58
59python_library_host {
60    name: "nc_base_test",
61    defaults: ["quick_start_perf_test_defaults"],
62    srcs: [
63        "nc_base_test.py",
64    ],
65    libs: [
66        "nc_constants",
67        "setup_utils",
68        "mobly",
69    ],
70}
71
72python_library_host {
73    name: "nearby_connection_wrapper",
74    defaults: ["quick_start_perf_test_defaults"],
75    srcs: [
76        "nearby_connection_wrapper.py",
77    ],
78    libs: [
79        "nc_constants",
80        "setup_utils",
81        "mobly",
82    ],
83}
84
85python_test_host {
86    name: "quick_start_stress_test",
87    main: "quick_start_stress_test.py",
88    srcs: ["quick_start_stress_test.py"],
89    libs: [
90        "nc_constants",
91        "setup_utils",
92        "nearby_connection_wrapper",
93        "nc_base_test",
94        "mobly",
95    ],
96    test_suites: [],
97    test_options: {
98        unit_test: false, // as Mobly tests require device(s)
99        // This tag is used to enable the ATest Mobly runner
100        tags: ["mobly"],
101    },
102    data: [
103        "local_dev_testbed.yml",
104        // package the snippes for atest
105        ":nearby_snippet",
106        ":nearby_snippet_2",
107    ],
108    version: {
109        py3: {
110            embedded_launcher: false,
111        },
112    },
113}
114
115python_test_host {
116    name: "esim_transfer_stress_test",
117    main: "esim_transfer_stress_test.py",
118    srcs: ["esim_transfer_stress_test.py"],
119    libs: [
120        "nc_constants",
121        "setup_utils",
122        "nearby_connection_wrapper",
123        "nc_base_test",
124        "mobly",
125    ],
126    test_suites: [],
127    test_options: {
128        unit_test: false, // as Mobly tests require device(s)
129        // This tag is used to enable the ATest Mobly runner
130        tags: ["mobly"],
131    },
132    data: [
133        "local_esim_testbed.yml",
134        // package the snippes for atest
135        ":nearby_snippet",
136    ],
137    version: {
138        py3: {
139            embedded_launcher: false,
140        },
141    },
142}
143
144python_test_host {
145    name: "nearby_share_stress_test",
146    main: "nearby_share_stress_test.py",
147    srcs: ["nearby_share_stress_test.py"],
148    libs: [
149        "nc_constants",
150        "setup_utils",
151        "nearby_connection_wrapper",
152        "nc_base_test",
153        "mobly",
154    ],
155    test_suites: [],
156    test_options: {
157        unit_test: false, // as Mobly tests require device(s)
158        // This tag is used to enable the ATest Mobly runner
159        tags: ["mobly"],
160    },
161    data: [
162        "local_nearby_share_testbed.yml",
163        // package the snippes for atest
164        ":nearby_snippet",
165    ],
166    version: {
167        py3: {
168            embedded_launcher: false,
169        },
170    },
171}
172