xref: /aosp_15_r20/cts/hostsidetests/rollback/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1// Copyright (C) 2019 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_applicable_licenses: ["Android-Apache-2.0"],
17    default_team: "trendy_team_mainline_modularization",
18}
19
20java_test_host {
21    name: "CtsRollbackManagerHostTestCases",
22    defaults: ["cts_defaults"],
23    srcs: ["src/**/*.java"],
24    libs: [
25        "cts-tradefed",
26        "cts-shim-host-lib",
27        "tradefed",
28        "truth",
29    ],
30    static_libs: [
31        "android.crashrecovery.flags-aconfig-java-host",
32        "cts-install-lib-host",
33        "flag-junit-host",
34    ],
35    device_common_data: [
36        ":CtsRollbackManagerHostTestHelperApp",
37        ":CtsRollbackManagerHostTestHelperApp2",
38    ],
39    test_suites: [
40        "cts",
41        "general-tests",
42    ],
43}
44
45android_test_helper_app {
46    name: "CtsRollbackManagerHostTestHelperApp",
47    srcs: ["app/src/**/*.java"],
48    static_libs: [
49        "androidx.test.rules",
50        "cts-rollback-lib",
51        "cts-install-lib",
52    ],
53    manifest: "app/AndroidManifest.xml",
54    java_resources: [
55        ":ApexKeyRotationTestV2_SignedBobRotRollback",
56    ],
57    sdk_version: "test_current",
58    test_suites: ["device-tests"],
59}
60
61android_test_helper_app {
62    name: "CtsRollbackManagerHostTestHelperApp2",
63    srcs: ["app2/src/**/*.java"],
64    static_libs: [
65        "androidx.test.rules",
66        "cts-rollback-lib",
67        "cts-install-lib",
68    ],
69    manifest: "app2/AndroidManifest.xml",
70    sdk_version: "test_current",
71    test_suites: ["device-tests"],
72}
73