1// Copyright (C) 2016 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_team: "trendy_team_java_core_libraries", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_test { 21 name: "CtsLibcoreOjTestCases", 22 defaults: ["cts_support_defaults"], 23 platform_apis: true, 24 static_libs: [ 25 "core-ojtests-public", 26 27 // Jar containing expectations files. 28 "libcore-expectations-knownfailures-jar", 29 ], 30 libs: ["testng"], 31 dxflags: [ 32 "--core-library", 33 "--android-platform-build", 34 ], 35 dex_preopt: { 36 enabled: false, 37 }, 38 optimize: { 39 enabled: false, 40 }, 41 // Include both the 32 and 64 bit versions of libjavacoretests, 42 // where applicable. 43 compile_multilib: "both", 44 min_sdk_version: "31", 45 target_sdk_version: "31", 46 // Tag this module as a cts test artifact 47 test_suites: [ 48 "cts", 49 "general-tests", 50 "mcts-art", 51 "mts-art", 52 "mcts-art", 53 ], 54 data: [ 55 ":CtsLibcoreTestRunner", 56 ], 57 per_testcase_directory: true, 58 host_required: ["cts-dalvik-host-test-runner"], 59 sdk_version: "test_current", 60} 61 62test_module_config { 63 name: "CtsLibcoreOjTestCases_lang_invoke", 64 base: "CtsLibcoreOjTestCases", 65 test_suites: ["general-tests"], 66 include_filters: [ 67 "test.java.lang.invoke", 68 "org.openjdk.tests.java.lang.invoke", 69 ], 70} 71 72test_module_config { 73 name: "CtsLibcoreOjTestCases_net", 74 base: "CtsLibcoreOjTestCases", 75 test_suites: ["general-tests"], 76 include_filters: ["test.java.net"], 77} 78 79test_module_config { 80 name: "CtsLibcoreOjTestCases_awt_font", 81 base: "CtsLibcoreOjTestCases", 82 test_suites: ["general-tests"], 83 include_filters: ["test.java.awt.font"], 84} 85 86test_module_config { 87 name: "CtsLibcoreOjTestCases_nio_file_attribute", 88 base: "CtsLibcoreOjTestCases", 89 test_suites: ["general-tests"], 90 include_filters: ["test.java.nio.file.attribute"], 91} 92 93test_module_config { 94 name: "CtsLibcoreOjTestCases_security_cert", 95 base: "CtsLibcoreOjTestCases", 96 test_suites: ["general-tests"], 97 include_filters: ["test.java.security.cert"], 98} 99 100test_module_config { 101 name: "CtsLibcoreOjTestCases_time", 102 base: "CtsLibcoreOjTestCases", 103 test_suites: ["general-tests"], 104 include_filters: [ 105 "tck.java.time.serial", 106 "tck.java.time", 107 "test.java.time", 108 ], 109} 110 111test_module_config { 112 name: "CtsLibcoreOjTestCases_time_chrono", 113 base: "CtsLibcoreOjTestCases", 114 test_suites: ["general-tests"], 115 include_filters: [ 116 "tck.java.time.chrono.serial", 117 "test.java.time.chrono", 118 "tck.java.time.chrono", 119 ], 120} 121 122test_module_config { 123 name: "CtsLibcoreOjTestCases_time_format", 124 base: "CtsLibcoreOjTestCases", 125 test_suites: ["general-tests"], 126 include_filters: [ 127 "test.java.time.format", 128 "tck.java.time.format", 129 ], 130} 131 132test_module_config { 133 name: "CtsLibcoreOjTestCases_time_temporal", 134 base: "CtsLibcoreOjTestCases", 135 test_suites: ["general-tests"], 136 include_filters: [ 137 "tck.java.time.temporal", 138 "tck.java.time.temporal.serial", 139 "test.java.time.temporal", 140 ], 141} 142 143test_module_config { 144 name: "CtsLibcoreOjTestCases_time_zone", 145 base: "CtsLibcoreOjTestCases", 146 test_suites: ["general-tests"], 147 include_filters: [ 148 "test.java.time.zone", 149 "tck.java.time.zone.serial", 150 "tck.java.time.zone", 151 ], 152} 153