mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 10:44:41 +00:00
Move remotely provisioned component tests to rkp directory
Now that the RKP HAL AIDL has been moved to it's own directory, we should keep the tests with the AIDL. Test: atest VtsAidlKeyMintTargetTest Test: atest VtsHalRemotelyProvisionedComponentTargetTest Change-Id: Ia87d3ea0a1b9e6704f0dea8f98b0bbaa049472fe
This commit is contained in:
@@ -90,24 +90,3 @@ cc_test_library {
|
||||
"libgmock_ndk",
|
||||
],
|
||||
}
|
||||
|
||||
cc_test {
|
||||
name: "VtsHalRemotelyProvisionedComponentTargetTest",
|
||||
defaults: [
|
||||
"keymint_vts_defaults",
|
||||
],
|
||||
srcs: [
|
||||
"VtsRemotelyProvisionedComponentTests.cpp",
|
||||
],
|
||||
static_libs: [
|
||||
"libgmock_ndk",
|
||||
"libkeymaster_portable",
|
||||
"libkeymint_vts_test_utils",
|
||||
"libpuresoftkeymasterdevice",
|
||||
],
|
||||
test_config: "VtsRemotelyProvisionedComponentTests.xml",
|
||||
test_suites: [
|
||||
"general-tests",
|
||||
"vts",
|
||||
],
|
||||
}
|
||||
|
||||
7
security/rkp/TEST_MAPPING
Normal file
7
security/rkp/TEST_MAPPING
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"presubmit": [
|
||||
{
|
||||
"name": "VtsHalRemotelyProvisionedComponentTargetTest"
|
||||
}
|
||||
]
|
||||
}
|
||||
44
security/rkp/aidl/vts/functional/Android.bp
Normal file
44
security/rkp/aidl/vts/functional/Android.bp
Normal file
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// Copyright (C) 2020 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.
|
||||
//
|
||||
|
||||
package {
|
||||
// See: http://go/android-license-faq
|
||||
default_applicable_licenses: ["hardware_interfaces_license"],
|
||||
}
|
||||
|
||||
cc_test {
|
||||
name: "VtsHalRemotelyProvisionedComponentTargetTest",
|
||||
defaults: [
|
||||
"keymint_vts_defaults",
|
||||
],
|
||||
srcs: [
|
||||
"VtsRemotelyProvisionedComponentTests.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbinder_ndk",
|
||||
"libcrypto",
|
||||
],
|
||||
static_libs: [
|
||||
"libcppbor_external",
|
||||
"libgmock_ndk",
|
||||
"libkeymint_vts_test_utils",
|
||||
],
|
||||
test_config: "VtsRemotelyProvisionedComponentTests.xml",
|
||||
test_suites: [
|
||||
"general-tests",
|
||||
"vts",
|
||||
],
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <string>
|
||||
#define LOG_TAG "VtsRemotelyProvisionableComponentTests"
|
||||
|
||||
#include <AndroidRemotelyProvisionedComponentDevice.h>
|
||||
#include <aidl/android/hardware/security/keymint/BnRemotelyProvisionedComponent.h>
|
||||
#include <aidl/android/hardware/security/keymint/IRemotelyProvisionedComponent.h>
|
||||
#include <aidl/android/hardware/security/keymint/SecurityLevel.h>
|
||||
#include <android/binder_manager.h>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 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.
|
||||
-->
|
||||
<configuration description="Runs VtsHalRemotelyProvisionedComponentTargetTest.">
|
||||
<option name="test-suite-tag" value="apct" />
|
||||
<option name="test-suite-tag" value="apct-native" />
|
||||
|
||||
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
|
||||
|
||||
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
|
||||
<option name="cleanup" value="true" />
|
||||
<option name="push-file"
|
||||
key="VtsHalRemotelyProvisionedComponentTargetTest"
|
||||
value="/data/local/tmp/VtsHalRemotelyProvisionedComponentTargetTest" />
|
||||
</target_preparer>
|
||||
|
||||
<test class="com.android.tradefed.testtype.GTest" >
|
||||
<option name="native-test-device-path" value="/data/local/tmp" />
|
||||
<option name="module-name" value="VtsHalRemotelyProvisionedComponentTargetTest" />
|
||||
<option name="native-test-timeout" value="900000"/> <!-- 15 minutes -->
|
||||
</test>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user