• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2022 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: ["system_core_init_license"],
17}
18
19cc_binary {
20    name: "mte_upgrade_test_helper",
21    srcs: ["mte_upgrade_test_helper.cpp"],
22    sanitize: {
23        memtag_heap: true,
24        diag: {
25            memtag_heap: false,
26        },
27    },
28    init_rc: [
29        "mte_upgrade_test.rc",
30    ],
31}
32
33java_test_host {
34    name: "mte_upgrade_test",
35    libs: ["tradefed"],
36    static_libs: [
37        "frameworks-base-hostutils",
38        "cts-install-lib-host",
39    ],
40    srcs: [
41        "src/**/MteUpgradeTest.java",
42        ":libtombstone_proto-src",
43    ],
44    device_first_data: [
45        ":mte_upgrade_test_helper",
46        "mte_upgrade_test.rc",
47    ],
48    test_config: "AndroidTest.xml",
49    test_suites: ["general-tests"],
50}
51