• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2015 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
15android_test {
16    name: "CtsLibcoreTestCases",
17    defaults: ["cts_support_defaults"],
18    platform_apis: true,
19    static_libs: [
20        "apache-harmony-tests",
21        "conscrypt-support",
22        "conscrypt-tests",
23        "core-tests",
24        "cts-core-test-runner-axt",
25        "mockito-target-minus-junit4",
26        "time_zone_distro-tests",
27        "time_zone_distro_installer-tests",
28    ],
29    dex_preopt: {
30        enabled: false,
31    },
32    dxflags: ["--multi-dex"],
33    // Exclude apache harmony tests from coverage instrumentation, since it breaks
34    // the tests of reflection APIs by adding fields and methods to the test classes.
35    jacoco: {
36        exclude_filter: ["org.apache.harmony.tests.**"],
37    },
38    optimize: {
39        enabled: false,
40    },
41    jni_libs: [
42        "libjavacoretests",
43        "libsqlite_jni",
44        "libnativehelper_compat_libc++",
45        "libc++",
46    ],
47    // Include both the 32 and 64 bit versions of libjavacoretests,
48    // where applicable.
49    compile_multilib: "both",
50    // This test requires cts-dalvik-host-test-runner to be built to run via Atest.
51    host_required: ["cts-dalvik-host-test-runner"],
52    // Tag this module as a cts test artifact
53    test_suites: [
54        "cts",
55        "mts",
56        "vts10",
57        "general-tests",
58    ],
59    java_resources: [
60        ":libcore-expectations-knownfailures",
61        ":libcore-expectations-virtualdeviceknownfailures",
62    ],
63}
64