1// Copyright 2013 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 19java_library { 20 name: "cts-keystore-user-auth-helper-library", 21 22 srcs: ["src/android/server/**/*.java"], 23 24 static_libs: [ 25 "androidx.test.rules", 26 "compatibility-device-util-axt", 27 "hamcrest-library", 28 "junit", 29 "platformprotosnano", 30 ], 31 32 platform_apis: true, 33} 34 35java_library { 36 name: "cts-keystore-test-util", 37 38 srcs: ["src/android/keystore/cts/util/**/*.java"], 39 40 libs: [ 41 "android.test.base.stubs.system", 42 "android.test.runner.stubs.system", 43 "androidx.test.rules", 44 "compatibility-device-util-axt", 45 "junit", 46 "truth", 47 ], 48 49 platform_apis: true, 50} 51 52android_test { 53 name: "CtsKeystoreTestCases", 54 team: "trendy_team_android_hardware_backed_security", 55 defaults: ["cts_defaults"], 56 // Tag this module as a cts test artifact 57 test_suites: [ 58 "cts", 59 "general-tests", 60 ], 61 libs: [ 62 "bouncycastle-unbundled", 63 "android.test.runner.stubs.system", 64 "android.test.base.stubs.system", 65 ], 66 static_libs: [ 67 "DeviceAdminApp", 68 "Harrier", 69 "Nene", 70 "android-key-attestation", 71 "android.security.flags-aconfig-java", 72 "androidx.test.rules", 73 "compatibility-device-util-axt", 74 "core-tests-support", 75 "cts-keystore-test-util", 76 "cts-keystore-user-auth-helper-library", 77 "cts-security-test-support-library", 78 "cts-wm-util", 79 "ctstestrunner-axt", 80 "flag-junit", 81 "guava", 82 "hamcrest-library", 83 "junit", 84 "junit-params", 85 "platformprotosnano", 86 "testng", 87 ], 88 srcs: ["src/android/keystore/cts/*.java"], 89 // Can't use public/test API only because some tests use hidden API 90 // (e.g. device-provided Bouncy Castle). 91 // 92 // The comment below is not particularly accurate, but it's copied from other 93 // tests that do the same thing, so anyone grepping for it will find it here. 94 // 95 // Uncomment when b/13282254 is fixed. 96 // sdk_version: "current" 97 platform_apis: true, 98} 99 100android_test { 101 name: "CtsKeystorePerformanceTestCases", 102 team: "trendy_team_android_hardware_backed_security", 103 defaults: ["cts_defaults"], 104 manifest: "CtsKeystorePerformanceTestManifest.xml", 105 test_config: "CtsKeystorePerformanceTestConfig.xml", 106 // Tag this module as a cts test artifact 107 test_suites: [ 108 "cts", 109 "general-tests", 110 ], 111 libs: [ 112 "android.test.base.stubs.test", 113 "android.test.runner.stubs.test", 114 ], 115 static_libs: [ 116 "androidx.test.rules", 117 "compatibility-device-util-axt", 118 "core-tests-support", 119 "cts-keystore-test-util", 120 "ctstestrunner-axt", 121 "junit", 122 "platformprotosnano", 123 ], 124 srcs: [ 125 "src/android/keystore/cts/performance/**/*.java", 126 ], 127 // sdk_version: "test_current", 128 platform_apis: true, 129 sdk_version: "test_current", 130} 131 132android_test { 133 name: "CtsKeystoreWycheproofTestCases", 134 team: "trendy_team_android_hardware_backed_security", 135 defaults: ["cts_defaults"], 136 manifest: "CtsKeystoreWycheproofTestManifest.xml", 137 test_config: "CtsKeystoreWycheproofTestConfig.xml", 138 // Tag this module as a cts test artifact 139 test_suites: [ 140 "cts", 141 "general-tests", 142 ], 143 libs: [ 144 "android.test.base.stubs.test", 145 "android.test.runner.stubs.test", 146 ], 147 static_libs: [ 148 "android.security.flags-aconfig-java", 149 "bouncycastle-bcpkix-unbundled", 150 "bouncycastle-unbundled", 151 "cts-core-test-runner-axt", 152 "wycheproof-keystore", 153 "gson", 154 "cts-keystore-test-util", 155 ], 156 // sdk_version: "test_current", 157 platform_apis: true, 158 sdk_version: "test_current", 159} 160 161test_module_config { 162 name: "CtsKeystoreTestCases_RequiresDevice", 163 base: "CtsKeystoreTestCases", 164 test_suites: ["general-tests"], 165 include_annotations: ["android.platform.test.annotations.RequiresDevice"], 166 exclude_filters: [ 167 "android.keystore.cts.EcKeyGenPerformanceTest", 168 "android.keystore.cts.AttestationPerformanceTest", 169 "android.keystore.cts.SignatureTest", 170 "android.keystore.cts.KeyPairGeneratorTest", 171 "android.keystore.cts.HmacMacPerformanceTest", 172 "android.keystore.cts.KeyGeneratorTest#testHmacKeySupportedSizes", 173 "android.keystore.cts.DesCipherPerformanceTest", 174 "android.keystore.cts.MacTest#testLargeMsgKat", 175 "android.keystore.cts.DESedeECBNoPaddingCipherTest", 176 "android.keystore.cts.DESedeECBPKCS7PaddingCipherTest", 177 "android.keystore.cts.RsaKeyGenPerformanceTest", 178 "android.keystore.cts.AESCipherNistCavpKatTest", 179 "android.keystore.cts.RsaSignaturePerformanceTest", 180 "android.keystore.cts.CipherTest", 181 "android.keystore.cts.RsaCipherPerformanceTest", 182 "android.keystore.cts.AndroidKeyStoreTest", 183 "android.keystore.cts.EcdsaSignaturePerformanceTest", 184 "android.keystore.cts.AesCipherPerformanceTest", 185 ], 186} 187