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: ["frameworks-base-hostutils", "cts-install-lib-host"],
37    srcs:  ["src/**/MteUpgradeTest.java", ":libtombstone_proto-src"],
38    data: [":mte_upgrade_test_helper", "mte_upgrade_test.rc" ],
39    test_config: "AndroidTest.xml",
40    test_suites: ["general-tests"],
41}
42