diff options
author | Sasha Smundak <asmundak@google.com> | 2019-05-01 16:30:27 -0700 |
---|---|---|
committer | Alexander Smundak <asmundak@google.com> | 2019-05-06 19:42:47 +0000 |
commit | 00cc8645136e108a2eb55755dea007249272fb0c (patch) | |
tree | 5cc0beeaf6646d77c6b01d90726d7eb2463f837b | |
parent | c246f215313622a15f0e9b21626c3b200db0a535 (diff) | |
download | cts-00cc8645136e108a2eb55755dea007249272fb0c.tar.gz |
Convert tests/tests/keystore/Android.mk file to Android.bp (cherrypick)
Cherrypick of ag/7286294
See build/soong/README.md for more information.
Bug: 122332514
Test: atest CtsKeystoreTestCases
(same failures as baseline)
Change-Id: I9be833016b4c5ec9577683166e6a887da9d53c83
Merged-In: I9be833016b4c5ec9577683166e6a887da9d53c83
-rw-r--r-- | tests/tests/keystore/Android.bp | 50 | ||||
-rw-r--r-- | tests/tests/keystore/Android.mk | 58 |
2 files changed, 50 insertions, 58 deletions
diff --git a/tests/tests/keystore/Android.bp b/tests/tests/keystore/Android.bp new file mode 100644 index 00000000000..1122dab7ac0 --- /dev/null +++ b/tests/tests/keystore/Android.bp @@ -0,0 +1,50 @@ +// Copyright 2013 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +android_test { + name: "CtsKeystoreTestCases", + defaults: ["cts_defaults"], + // Tag this module as a cts test artifact + test_suites: [ + "cts", + "vts", + "general-tests", + ], + libs: [ + "bouncycastle-unbundled", + "android.test.runner.stubs", + "android.test.base.stubs", + ], + static_libs: [ + "androidx.test.rules", + "core-tests-support", + "compatibility-device-util-axt", + "ctstestrunner-axt", + "hamcrest-library", + "guava", + "junit", + "cts-security-test-support-library", + "platformprotosnano", + ], + srcs: ["src/**/*.java"], + // Can't use public/test API only because some tests use hidden API + // (e.g. device-provided Bouncy Castle). + // + // The comment below is not particularly accurate, but it's copied from other + // tests that do the same thing, so anyone grepping for it will find it here. + // + // Uncomment when b/13282254 is fixed. + // sdk_version: "current" + platform_apis: true, +} diff --git a/tests/tests/keystore/Android.mk b/tests/tests/keystore/Android.mk deleted file mode 100644 index 027616076cd..00000000000 --- a/tests/tests/keystore/Android.mk +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -LOCAL_PATH:= $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := tests - -LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) - -# Tag this module as a cts test artifact -LOCAL_COMPATIBILITY_SUITE := cts vts general-tests - -LOCAL_JAVA_LIBRARIES := bouncycastle-unbundled - -LOCAL_STATIC_JAVA_LIBRARIES := \ - androidx.test.rules \ - core-tests-support \ - compatibility-device-util-axt \ - ctstestrunner-axt hamcrest-library \ - guava \ - junit \ - cts-security-test-support-library \ - platformprotosnano - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_JACK_FLAGS := --multi-dex native - -LOCAL_PACKAGE_NAME := CtsKeystoreTestCases - -# Can't use public/test API only because some tests use hidden API -# (e.g. device-provided Bouncy Castle). -# -# The comment below is not particularly accurate, but it's copied from other -# tests that do the same thing, so anyone grepping for it will find it here. -# -# Uncomment when b/13282254 is fixed. -# LOCAL_SDK_VERSION := current -LOCAL_PRIVATE_PLATFORM_APIS := true -LOCAL_JAVA_LIBRARIES += android.test.runner.stubs -LOCAL_JAVA_LIBRARIES += android.test.base.stubs - -include $(BUILD_CTS_PACKAGE) - -include $(call all-makefiles-under,$(LOCAL_PATH)) |