xref: /aosp_15_r20/cts/hostsidetests/multidevices/nfc/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
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_fwk_nfc",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20python_defaults {
21    name: "CtsNfcMultiDevicePythonDefaults",
22    libs: [
23        "mobly",
24        "pn532-python",
25        "platform-test-py-annotations",
26    ],
27    test_suites: [
28        // Added this test suite to CTS-V
29        "general-tests",
30    ],
31    version: {
32        py3: {
33            embedded_launcher: true,
34        },
35    },
36}
37
38python_test_host {
39    name: "CtsNfcHceMultiDeviceTestCases",
40    main: "cts_nfc_hce_multi_device_test.py",
41    srcs: ["cts_nfc_hce_multi_device_test.py"],
42    test_config: "AndroidTest.xml",
43    device_common_data: [
44        ":NfcReaderTestApp",
45        ":NfcEmulatorTestApp",
46    ],
47    test_options: {
48        unit_test: false,
49        runner: "mobly",
50    },
51    defaults: ["CtsNfcMultiDevicePythonDefaults"],
52}
53
54// CTS-V specific binary build target that excludes the snippet APKs.
55python_test_host {
56    name: "CtsNfcHceMultiDeviceTestCases-py-ctsv",
57    main: "cts_nfc_hce_multi_device_test.py",
58    srcs: ["cts_nfc_hce_multi_device_test.py"],
59    test_config: "AndroidTest.xml",
60    test_options: {
61        unit_test: false,
62        runner: "mobly",
63    },
64    defaults: ["CtsNfcMultiDevicePythonDefaults"],
65}
66