1// Copyright (C) 2021 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: ["art_license"], 17 default_team: "trendy_team_art_mainline", 18} 19 20java_defaults { 21 name: "odsign_e2e_tests_defaults", 22 srcs: ["test-src/**/*.java"], 23 libs: ["tradefed"], 24 static_libs: [ 25 "cts-install-lib-host", 26 "frameworks-base-hostutils", 27 ], 28} 29 30java_test_host { 31 name: "odsign_e2e_tests", 32 defaults: ["odsign_e2e_tests_defaults"], 33 // TODO(b/228838581): Do not add `data` to the defaults unless the bug is 34 // fixed. 35 device_common_data: [ 36 ":odsign_e2e_test_app", 37 ], 38 test_config: "odsign-e2e-tests.xml", 39 test_suites: [ 40 "general-tests", 41 "cts", 42 ], 43} 44 45java_test_host { 46 name: "odsign_e2e_tests_full", 47 defaults: ["odsign_e2e_tests_defaults"], 48 // TODO(b/228838581): Do not add `data` to the defaults unless the bug is 49 // fixed. 50 device_common_data: [ 51 ":odsign_e2e_test_app", 52 ], 53 device_common_java_resources: [ 54 ":art-gtest-jars-Main", 55 ], 56 test_config: "odsign-e2e-tests-full.xml", 57 test_suites: [ 58 "general-tests", 59 ], 60} 61 62cc_library_shared { 63 name: "libOdsignTestAppJni", 64 defaults: ["art_defaults"], 65 srcs: ["jni/**/*.cc"], 66 shared_libs: [ 67 "libnativehelper_compat_libc++", 68 "liblog", 69 ], 70 static_libs: [ 71 "libbase_ndk", 72 ], 73 stl: "c++_static", 74 sdk_version: "current", 75} 76 77android_test_helper_app { 78 name: "odsign_e2e_test_app", 79 manifest: "AndroidManifest.xml", 80 srcs: ["src/**/*.java"], 81 jni_libs: [ 82 "libOdsignTestAppJni", 83 ], 84 compile_multilib: "both", 85 libs: [ 86 "junit", 87 ], 88 static_libs: [ 89 "androidx.test.ext.truth", 90 "androidx.test.runner", 91 "ctstestrunner-axt", 92 ], 93 sdk_version: "system_current", 94 min_sdk_version: "30", 95} 96