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: ["Android-Apache-2.0"], 17} 18 19// We build the main test APK and helper APKs from the same source code, 20// just so they can easily share the constants, etc. 21 22java_library { 23 name: "CtsProcessTestCore", 24 static_libs: [ 25 "androidx.test.ext.junit", 26 "androidx.test.rules", 27 "compatibility-device-util-axt", 28 "guava", 29 "truth-prebuilt", 30 "testng", 31 ], 32 libs: ["android.test.base"], 33 srcs: [ 34 "src/**/*.java", 35 ], 36} 37 38java_defaults { 39 name: "CtsProcessTest_default", 40 static_libs: [ 41 "CtsProcessTestCore", 42 ], 43 test_suites: [ 44 "cts", 45 "general-tests", 46 ], 47 sdk_version: "test_current", 48} 49 50android_test { 51 name: "CtsProcessTest", 52 defaults: [ 53 "cts_defaults", 54 "CtsProcessTest_default", 55 ], 56 manifest: "AndroidManifest_main.xml", 57 data: [ 58 ":CtsProcessTestHelper4", 59 ":CtsProcessTestHelper1", 60 ":CtsProcessTestHelper2", 61 ":CtsProcessTestHelper3", 62 ], 63 per_testcase_directory: true, 64} 65 66android_test_helper_app { 67 name: "CtsProcessTestHelper1", 68 defaults: ["CtsProcessTest_default"], 69 70 manifest: "AndroidManifest_helper1.xml", 71 additional_manifests: [ 72 "AndroidManifest_helper.xml", 73 ], 74 package_name: "android.os.cts.process.helper1", 75} 76 77android_test_helper_app { 78 name: "CtsProcessTestHelper2", 79 defaults: ["CtsProcessTest_default"], 80 81 manifest: "AndroidManifest_helper2.xml", 82 additional_manifests: [ 83 "AndroidManifest_helper.xml", 84 ], 85 package_name: "android.os.cts.process.helper2", 86} 87 88android_test_helper_app { 89 name: "CtsProcessTestHelper3", 90 defaults: ["CtsProcessTest_default"], 91 92 manifest: "AndroidManifest_helper3.xml", 93 additional_manifests: [ 94 "AndroidManifest_helper.xml", 95 ], 96 package_name: "android.os.cts.process.helper3", 97} 98 99android_test_helper_app { 100 name: "CtsProcessTestHelper4", 101 defaults: ["CtsProcessTest_default"], 102 103 manifest: "AndroidManifest_helper4.xml", 104 additional_manifests: [ 105 "AndroidManifest_helper.xml", 106 ], 107 package_name: "android.os.cts.process.helper4", 108} 109