diff options
author | Keun Soo Yim <yim@google.com> | 2017-02-03 13:50:29 -0800 |
---|---|---|
committer | Keun Soo Yim <yim@google.com> | 2017-02-04 02:45:25 +0000 |
commit | 7b9b6ca18f182e66c35afc0ca4838175a406838b (patch) | |
tree | b1d27b88ae43503861a40680ec8c86289fabb9af /vr | |
parent | 09c92950a2e843ac935229fb939764d31de7db1a (diff) | |
download | platform_hardware_interfaces-7b9b6ca18f182e66c35afc0ca4838175a406838b.tar.gz platform_hardware_interfaces-7b9b6ca18f182e66c35afc0ca4838175a406838b.tar.bz2 platform_hardware_interfaces-7b9b6ca18f182e66c35afc0ca4838175a406838b.zip |
move VTS stub files and non-functional tests
Test: mma
Bug: 34976004
Change-Id: I20273bdc3a05e2986fcf921f65d2afd6d72781e4
Diffstat (limited to 'vr')
17 files changed, 0 insertions, 391 deletions
diff --git a/vr/1.0/vts/Android.mk b/vr/1.0/vts/Android.mk deleted file mode 100644 index e8afa869ff..0000000000 --- a/vr/1.0/vts/Android.mk +++ /dev/null @@ -1,20 +0,0 @@ -# -# Copyright (C) 2016 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 hidl test makefiles -include $(LOCAL_PATH)/functional/vts/testcases/hal/vr/hidl/Android.mk diff --git a/vr/1.0/vts/functional/vts/Android.mk b/vr/1.0/vts/functional/vts/Android.mk deleted file mode 100644 index f9e32763ff..0000000000 --- a/vr/1.0/vts/functional/vts/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 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 $(call all-subdir-makefiles) diff --git a/vr/1.0/vts/functional/vts/testcases/Android.mk b/vr/1.0/vts/functional/vts/testcases/Android.mk deleted file mode 100644 index f9e32763ff..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 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 $(call all-subdir-makefiles) diff --git a/vr/1.0/vts/functional/vts/testcases/hal/Android.mk b/vr/1.0/vts/functional/vts/testcases/hal/Android.mk deleted file mode 100644 index f9e32763ff..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 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 $(call all-subdir-makefiles) diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/Android.mk b/vr/1.0/vts/functional/vts/testcases/hal/vr/Android.mk deleted file mode 100644 index f9e32763ff..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 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 $(call all-subdir-makefiles) diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/__init__.py b/vr/1.0/vts/functional/vts/testcases/hal/vr/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/__init__.py +++ /dev/null diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/Android.mk b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/Android.mk deleted file mode 100644 index f9e32763ff..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2016 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 $(call all-subdir-makefiles) diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/__init__.py b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/__init__.py +++ /dev/null diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/Android.mk b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/Android.mk deleted file mode 100644 index 9388b8d9b3..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -# Copyright (C) 2016 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 := VrHidlTest -VTS_CONFIG_SRC_DIR := testcases/hal/vr/hidl/host -include test/vts/tools/build/Android.host_config.mk diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/AndroidTest.xml b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/AndroidTest.xml deleted file mode 100644 index 1cd2a80ad7..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/AndroidTest.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 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="Config for VTS HAL VR test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - <option name="cleanup" value="true" /> - <option name="push" value="spec/hardware/interfaces/vr/1.0/vts/Vr.vts->/data/local/tmp/spec/Vr.vts" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="VrHidlTest" /> - <option name="test-case-path" value="vts/testcases/hal/vr/hidl/host/VrHidlTest" /> - </test> -</configuration> diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/VrHidlTest.py b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/VrHidlTest.py deleted file mode 100644 index d20e9ceacd..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/VrHidlTest.py +++ /dev/null @@ -1,86 +0,0 @@ -#!/usr/bin/env python3.4 -# -# Copyright (C) 2016 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. -# - -import logging -import time - -from vts.runners.host import asserts -from vts.runners.host import base_test_with_webdb -from vts.runners.host import test_runner -from vts.utils.python.controllers import android_device -from vts.utils.python.profiling import profiling_utils - - -class VrHidlTest(base_test_with_webdb.BaseTestWithWebDbClass): - """A simple testcase for the VR HIDL HAL.""" - - def setUpClass(self): - """Creates a mirror and turns on the framework-layer VR service.""" - self.dut = self.registerController(android_device)[0] - - self.dut.shell.InvokeTerminal("one") - self.dut.shell.one.Execute("setenforce 0") # SELinux permissive mode - - # Test using the binderized mode - self.dut.shell.one.Execute( - "setprop vts.hal.vts.hidl.get_stub true") - - self.dut.hal.InitHidlHal( - target_type="vr", - target_basepaths=["/system/lib64"], - target_version=1.0, - target_package="android.hardware.vr", - target_component_name="IVr", - hw_binder_service_name=None, - bits=64) - - def tearDownClass(self): - """ If profiling is enabled for the test, collect the profiling data - and disable profiling after the test is done. - """ - if self.enable_profiling: - self.ProcessAndUploadTraceData() - - def setUpTest(self): - if self.enable_profiling: - profiling_utils.EnableVTSProfiling(self.dut.shell.one) - - def tearDownTest(self): - if self.enable_profiling: - profiling_trace_path = getattr( - self, self.VTS_PROFILING_TRACING_PATH, "") - self.ProcessTraceDataForTestCase(self.dut, profiling_trace_path) - profiling_utils.DisableVTSProfiling(self.dut.shell.one) - - def testVrBasic(self): - """A simple test case which just calls each registered function.""" - result = self.dut.hal.vr.init() - logging.info("init result: %s", result) - - time.sleep(1) - - result = self.dut.hal.vr.setVrMode(True) - logging.info("setVrMode(true) result: %s", result) - - time.sleep(1) - - result = self.dut.hal.vr.setVrMode(False) - logging.info("setVrMode(false) result: %s", result) - - -if __name__ == "__main__": - test_runner.main() diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/__init__.py b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/host/__init__.py +++ /dev/null diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/Android.mk b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/Android.mk deleted file mode 100644 index 691d1a4473..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/Android.mk +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (C) 2016 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 $(call all-subdir-makefiles) - -include $(CLEAR_VARS) - -LOCAL_MODULE := VrHidlTargetTest -VTS_CONFIG_SRC_DIR := testcases/hal/vr/hidl/target -include test/vts/tools/build/Android.host_config.mk diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/AndroidTest.xml b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/AndroidTest.xml deleted file mode 100644 index 8c7a9b7f0a..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/AndroidTest.xml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 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="Config for VTS VR HIDL HAL's target-side test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="VrHidlTargetTest" /> - <option name="binary-test-sources" value=" - _32bit::DATA/nativetest/vr_hidl_hal_test/vr_hidl_hal_test, - _64bit::DATA/nativetest64/vr_hidl_hal_test/vr_hidl_hal_test, - "/> - <option name="binary-test-type" value="hal_hidl_gtest" /> - <!-- Uncomment this and comment 'precondition-feature' to run this test - only on devices using binderized VR HALs. - <option name="precondition-hwbinder-service" value="android.hardware.vr" /> --> - <option name="precondition-feature" value="android.hardware.vr.high_performance" /> - <option name="test-timeout" value="1m" /> - <option name="test-config-path" value="vts/testcases/hal/vr/hidl/target/VrHidlTargetTest.config" /> -</test> -</configuration> diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/VrHidlTargetTest.config b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/VrHidlTargetTest.config deleted file mode 100644 index ec01b5fe54..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target/VrHidlTargetTest.config +++ /dev/null @@ -1,25 +0,0 @@ -{ - "use_gae_db": true, - "coverage": true, - "modules": [{ - "module_name": "system/lib64/hw/vr.marlin", - "git_project": { - "name": "device/google/marlin", - "path": "device/google/marlin" - } - }, - { - "module_name": "system/lib64/hw/vr.sailfish", - "git_project": { - "name": "device/google/marlin", - "path": "device/google/marlin" - } - }, - { - "module_name": "system/lib64/hw/android.hardware.vr@1.0-impl", - "git_project": { - "name": "platform/hardware/interfaces", - "path": "hardware/interfaces" - } - }] -} diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target_profiling/Android.mk b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target_profiling/Android.mk deleted file mode 100644 index 6f60af3ac5..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target_profiling/Android.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -# Copyright (C) 2016 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 := VrHidlTargetProfilingTest -VTS_CONFIG_SRC_DIR := testcases/hal/vr/hidl/target_profiling -include test/vts/tools/build/Android.host_config.mk diff --git a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target_profiling/AndroidTest.xml b/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target_profiling/AndroidTest.xml deleted file mode 100644 index 3bc711a44d..0000000000 --- a/vr/1.0/vts/functional/vts/testcases/hal/vr/hidl/target_profiling/AndroidTest.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 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="Config for VTS VR HIDL HAL's target-side, profiling test cases"> - <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> - <option name="push-group" value="HidlHalTest.push" /> - </target_preparer> - <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> - <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> - <option name="test-module-name" value="VrHidlTargetTest" /> - <option name="binary-test-sources" value=" - _32bit::DATA/nativetest/vr_hidl_hal_test/vr_hidl_hal_test, - _64bit::DATA/nativetest64/vr_hidl_hal_test/vr_hidl_hal_test, - "/> - <option name="binary-test-type" value="gtest" /> - <option name="test-timeout" value="1m" /> - <option name="enable-profiling" value="true" /> - </test> -</configuration> - |