xref: /aosp_15_r20/platform_testing/tests/example/native/Android.bp (revision dd0948b35e70be4c0246aabd6c72554a5eb8b22a)
1*dd0948b3SAndroid Build Coastguard Worker// Copyright (C) 2018 The Android Open Source Project
2*dd0948b3SAndroid Build Coastguard Worker//
3*dd0948b3SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*dd0948b3SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*dd0948b3SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*dd0948b3SAndroid Build Coastguard Worker//
7*dd0948b3SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*dd0948b3SAndroid Build Coastguard Worker//
9*dd0948b3SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*dd0948b3SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*dd0948b3SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*dd0948b3SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*dd0948b3SAndroid Build Coastguard Worker// limitations under the License.
14*dd0948b3SAndroid Build Coastguard Worker
15*dd0948b3SAndroid Build Coastguard Workerpackage {
16*dd0948b3SAndroid Build Coastguard Worker    default_team: "trendy_team_tooltopia",
17*dd0948b3SAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
18*dd0948b3SAndroid Build Coastguard Worker}
19*dd0948b3SAndroid Build Coastguard Worker
20*dd0948b3SAndroid Build Coastguard Workercc_test {
21*dd0948b3SAndroid Build Coastguard Worker    name: "hello_world_test",
22*dd0948b3SAndroid Build Coastguard Worker    srcs: ["HelloWorldTest.cpp"],
23*dd0948b3SAndroid Build Coastguard Worker
24*dd0948b3SAndroid Build Coastguard Worker    cflags: [
25*dd0948b3SAndroid Build Coastguard Worker        "-Wall",
26*dd0948b3SAndroid Build Coastguard Worker        "-Werror",
27*dd0948b3SAndroid Build Coastguard Worker    ],
28*dd0948b3SAndroid Build Coastguard Worker
29*dd0948b3SAndroid Build Coastguard Worker    test_suites: ["general-tests"],
30*dd0948b3SAndroid Build Coastguard Worker    host_supported: true,
31*dd0948b3SAndroid Build Coastguard Worker    // Do not mark as unit tests, to use as a validation in test mapping
32*dd0948b3SAndroid Build Coastguard Worker    // and test harness in some situations.
33*dd0948b3SAndroid Build Coastguard Worker    test_options: {
34*dd0948b3SAndroid Build Coastguard Worker        unit_test: false,
35*dd0948b3SAndroid Build Coastguard Worker    },
36*dd0948b3SAndroid Build Coastguard Worker}
37