xref: /aosp_15_r20/tools/asuite/atest/bazel/reporter/Android.bp (revision c2e18aaa1096c836b086f94603d04f4eb9cf37f5)
1*c2e18aaaSAndroid Build Coastguard Worker// Copyright (C) 2021 The Android Open Source Project
2*c2e18aaaSAndroid Build Coastguard Worker//
3*c2e18aaaSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*c2e18aaaSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*c2e18aaaSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*c2e18aaaSAndroid Build Coastguard Worker//
7*c2e18aaaSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*c2e18aaaSAndroid Build Coastguard Worker//
9*c2e18aaaSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*c2e18aaaSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*c2e18aaaSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*c2e18aaaSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*c2e18aaaSAndroid Build Coastguard Worker// limitations under the License.
14*c2e18aaaSAndroid Build Coastguard Worker
15*c2e18aaaSAndroid Build Coastguard Workerpackage {
16*c2e18aaaSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
17*c2e18aaaSAndroid Build Coastguard Worker}
18*c2e18aaaSAndroid Build Coastguard Worker
19*c2e18aaaSAndroid Build Coastguard Workerjava_library_host {
20*c2e18aaaSAndroid Build Coastguard Worker    name: "bazel-result-reporter",
21*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
22*c2e18aaaSAndroid Build Coastguard Worker        "src/com/android/tradefed/result/BazelExitCodeResultReporter.java",
23*c2e18aaaSAndroid Build Coastguard Worker        "src/com/android/tradefed/result/BazelXmlResultReporter.java"
24*c2e18aaaSAndroid Build Coastguard Worker    ],
25*c2e18aaaSAndroid Build Coastguard Worker    // b/267831518: Pin tradefed and dependencies to Java 11.
26*c2e18aaaSAndroid Build Coastguard Worker    java_version: "11",
27*c2e18aaaSAndroid Build Coastguard Worker    libs: [
28*c2e18aaaSAndroid Build Coastguard Worker        "tradefed",
29*c2e18aaaSAndroid Build Coastguard Worker    ],
30*c2e18aaaSAndroid Build Coastguard Worker}
31*c2e18aaaSAndroid Build Coastguard Worker
32*c2e18aaaSAndroid Build Coastguard Workerjava_test_host {
33*c2e18aaaSAndroid Build Coastguard Worker    name: "bazel-result-reporter-tests",
34*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
35*c2e18aaaSAndroid Build Coastguard Worker        "javatests/com/android/tradefed/result/BazelExitCodeResultReporterTest.java",
36*c2e18aaaSAndroid Build Coastguard Worker        "javatests/com/android/tradefed/result/BazelXmlResultReporterTest.java"
37*c2e18aaaSAndroid Build Coastguard Worker    ],
38*c2e18aaaSAndroid Build Coastguard Worker    static_libs: [
39*c2e18aaaSAndroid Build Coastguard Worker        "bazel-result-reporter",
40*c2e18aaaSAndroid Build Coastguard Worker        "jimfs",
41*c2e18aaaSAndroid Build Coastguard Worker        "tradefed",
42*c2e18aaaSAndroid Build Coastguard Worker    ],
43*c2e18aaaSAndroid Build Coastguard Worker    test_options: {
44*c2e18aaaSAndroid Build Coastguard Worker        unit_test: true,
45*c2e18aaaSAndroid Build Coastguard Worker    },
46*c2e18aaaSAndroid Build Coastguard Worker}
47