diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:04:59 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:04:59 +0000 |
commit | 64115c50813684e317ea8d9241357b448aed14c1 (patch) | |
tree | 6e700966fbde382cd6f62cb41d45e4fb7190d32a | |
parent | 184ff1922b8f712dc949e893b4b42dcf41834902 (diff) | |
parent | 0dbab728fbfcf658bed0ae99eb473b954941e3b4 (diff) | |
download | vndk-android12-mainline-tzdata2-release.tar.gz |
Snap for 8426163 from 0dbab728fbfcf658bed0ae99eb473b954941e3b4 to mainline-tzdata2-releaseandroid-mainline-12.0.0_r112aml_tz2_305400500aml_tz2_305400300aml_tz2_305400100aml_tz2_304500300aml_tz2_303900110aml_tz2_303900102aml_tz2_303800002aml_tz2_303800001aml_tz2_303200001android12-mainline-tzdata2-releaseaml_tz2_305400100
Change-Id: Iaf5e49922f5498e0462458abaada5d0f104b6c30
-rw-r--r-- | Android.bp | 13 | ||||
-rw-r--r-- | abi/Android.bp | 19 | ||||
-rw-r--r-- | abi/AndroidTest.xml | 26 | ||||
-rw-r--r-- | abi/OWNERS | 2 | ||||
-rw-r--r-- | dependency/Android.bp | 19 | ||||
-rw-r--r-- | dependency/AndroidTest.xml | 27 | ||||
-rw-r--r-- | dependency/OWNERS | 2 | ||||
-rw-r--r-- | dependency/vts_vndk_dependency_test.py | 29 | ||||
-rw-r--r-- | dependency/vts_vndk_dependency_test.xml | 2 | ||||
-rw-r--r-- | files/Android.bp | 19 | ||||
-rw-r--r-- | files/AndroidTest.xml | 28 | ||||
-rw-r--r-- | files/OWNERS | 2 | ||||
-rw-r--r-- | golden/Android.bp | 10 | ||||
-rwxr-xr-x | golden/extract_lsdump.py | 33 | ||||
-rw-r--r-- | golden/vndk_data.py | 4 | ||||
-rw-r--r-- | hidl/bufferpool/V1_0/target/Android.bp | 19 | ||||
-rw-r--r-- | hidl/bufferpool/V1_0/target/AndroidTest.xml | 32 | ||||
-rw-r--r-- | hidl/bufferpool/V2_0/target/Android.bp | 19 | ||||
-rw-r--r-- | hidl/bufferpool/V2_0/target/AndroidTest.xml | 32 | ||||
-rw-r--r-- | utils.py | 7 |
20 files changed, 271 insertions, 73 deletions
@@ -12,10 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -package { - default_applicable_licenses: ["Android-Apache-2.0"], -} - python_library_host { name: "vts_vndk_utils", pkg_path: "vts/testcases/vndk", @@ -68,9 +64,6 @@ python_test_host { "vts", ], test_config: "abi/vts_vndk_abi_test.xml", - test_options: { - unit_test: false, - }, } python_test_host { @@ -84,9 +77,6 @@ python_test_host { "vts", ], test_config: "dependency/vts_vndk_dependency_test.xml", - test_options: { - unit_test: false, - }, } python_test_host { @@ -100,7 +90,4 @@ python_test_host { "vts", ], test_config: "files/vts_vndk_files_test.xml", - test_options: { - unit_test: false, - }, } diff --git a/abi/Android.bp b/abi/Android.bp new file mode 100644 index 0000000..9479d3e --- /dev/null +++ b/abi/Android.bp @@ -0,0 +1,19 @@ +// +// Copyright (C) 2017 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. +// + +vts_config { + name: "VtsVndkAbi", +} diff --git a/abi/AndroidTest.xml b/abi/AndroidTest.xml new file mode 100644 index 0000000..cf220a6 --- /dev/null +++ b/abi/AndroidTest.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2017 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 VNDK ABI test cases"> + <option name="config-descriptor:metadata" key="plan" value="vts-vndk" /> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="push-group" value="HostDrivenTest.push" /> + </target_preparer> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsVndkAbi" /> + <option name="test-case-path" value="vts/testcases/vndk/abi/VtsVndkAbiTest" /> + </test> +</configuration> + diff --git a/abi/OWNERS b/abi/OWNERS deleted file mode 100644 index c8244dd..0000000 --- a/abi/OWNERS +++ /dev/null @@ -1,2 +0,0 @@ -# Bug component: 170896 -hsinyichen@google.com diff --git a/dependency/Android.bp b/dependency/Android.bp new file mode 100644 index 0000000..d9715a1 --- /dev/null +++ b/dependency/Android.bp @@ -0,0 +1,19 @@ +// +// Copyright (C) 2017 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. +// + +vts_config { + name: "VtsVndkDependency", +} diff --git a/dependency/AndroidTest.xml b/dependency/AndroidTest.xml new file mode 100644 index 0000000..70c3138 --- /dev/null +++ b/dependency/AndroidTest.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2017 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 VNDK dependency test cases"> + <option name="config-descriptor:metadata" key="plan" value="vts-vndk" /> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="push-group" value="HostDrivenTest.push" /> + </target_preparer> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsVndkDependency" /> + <option name="test-case-path" value="vts/testcases/vndk/dependency/VtsVndkDependencyTest" /> + <option name="test-timeout" value="6m" /> + </test> +</configuration> + diff --git a/dependency/OWNERS b/dependency/OWNERS deleted file mode 100644 index c8244dd..0000000 --- a/dependency/OWNERS +++ /dev/null @@ -1,2 +0,0 @@ -# Bug component: 170896 -hsinyichen@google.com diff --git a/dependency/vts_vndk_dependency_test.py b/dependency/vts_vndk_dependency_test.py index ff62885..fb0431a 100644 --- a/dependency/vts_vndk_dependency_test.py +++ b/dependency/vts_vndk_dependency_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # # Copyright (C) 2020 The Android Open Source Project # @@ -48,7 +48,6 @@ class VtsVndkDependencyTest(unittest.TestCase): _vndk_sp: Set of strings. The names of VNDK-SP libraries. _SP_HAL_LINK_PATHS: Format strings of same-process HAL's link paths. _VENDOR_LINK_PATHS: Format strings of vendor processes' link paths. - _VENDOR_APP_DIRS: The app directories in vendor partitions. """ _TARGET_DIR_SEP = "/" _TARGET_ROOT_DIR = "/" @@ -63,9 +62,6 @@ class VtsVndkDependencyTest(unittest.TestCase): "/odm/{LIB}/hw", "/odm/{LIB}/egl", "/odm/{LIB}", "/vendor/{LIB}/hw", "/vendor/{LIB}/egl", "/vendor/{LIB}" ] - _VENDOR_APP_DIRS = [ - "/vendor/app", "/vendor/priv-app", "/odm/app", "/odm/priv-app" - ] _DEFAULT_PROGRAM_INTERPRETERS = [ "/system/bin/linker", "/system/bin/linker64" ] @@ -81,11 +77,9 @@ class VtsVndkDependencyTest(unittest.TestCase): bitness: Integer. Bitness of the ELF. deps: List of strings. The names of the depended libraries. runpaths: List of strings. The library search paths. - custom_link_paths: List of strings. The library search paths. """ - def __init__(self, target_path, bitness, deps, runpaths, - custom_link_paths): + def __init__(self, target_path, bitness, deps, runpaths): self.target_path = target_path self.name = target_path_module.basename(target_path) self.target_dir = target_path_module.dirname(target_path) @@ -100,7 +94,6 @@ class VtsVndkDependencyTest(unittest.TestCase): path = path.replace("${ORIGIN}", self.target_dir) path = path.replace("$ORIGIN", self.target_dir) self.runpaths.append(path) - self.custom_link_paths = custom_link_paths def setUp(self): """Initializes device, temporary directory, and VNDK lists.""" @@ -266,16 +259,8 @@ class VtsVndkDependencyTest(unittest.TestCase): if runpaths: logging.info("%s has runpaths: %s", target_path, ":".join(runpaths)) - - # b/123216664 App libraries depend on those in the same directory. - custom_link_paths = [] - if any(target_path.startswith(app_dir + self._TARGET_DIR_SEP) for - app_dir in self._VENDOR_APP_DIRS): - custom_link_paths.append( - target_path_module.dirname(target_path)) - objs.append(self.ElfObject(target_path, elf.bitness, deps, - runpaths, custom_link_paths)) + runpaths)) return objs def _FindLibsInLinkPaths(self, bitness, link_paths, objs): @@ -314,7 +299,7 @@ class VtsVndkDependencyTest(unittest.TestCase): return searched.add(lib) for dep_name in lib.deps: - for link_path in lib.custom_link_paths + lib.runpaths + link_paths: + for link_path in lib.runpaths + link_paths: if dep_name in namespace[link_path]: self._DfsDependencies(namespace[link_path][dep_name], searched, namespace, link_paths) @@ -342,7 +327,7 @@ class VtsVndkDependencyTest(unittest.TestCase): if any((dep_name in vndk_list) for vndk_list in vndk_lists): continue if any((dep_name in namespace[link_path]) for link_path in - obj.custom_link_paths + obj.runpaths + link_paths): + obj.runpaths + link_paths): continue disallowed_libs.append(dep_name) @@ -365,8 +350,8 @@ class VtsVndkDependencyTest(unittest.TestCase): vendor_link_paths = [vndk_utils.FormatVndkPath(x, bitness) for x in self._VENDOR_LINK_PATHS] - vendor_namespace = self._FindLibsInLinkPaths( - bitness, vendor_link_paths + self._VENDOR_APP_DIRS, objs) + vendor_namespace = self._FindLibsInLinkPaths(bitness, + vendor_link_paths, objs) # Exclude VNDK and VNDK-SP extensions from vendor libraries. for vndk_ext_dir in (vndk_utils.GetVndkExtDirectories(bitness) + vndk_utils.GetVndkSpExtDirectories(bitness)): diff --git a/dependency/vts_vndk_dependency_test.xml b/dependency/vts_vndk_dependency_test.xml index 0a15678..f0f37c7 100644 --- a/dependency/vts_vndk_dependency_test.xml +++ b/dependency/vts_vndk_dependency_test.xml @@ -17,7 +17,7 @@ <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> <test class="com.android.tradefed.testtype.python.PythonBinaryHostTest"> <option name="par-file-name" value="vts_vndk_dependency_test" /> - <option name="test-timeout" value="10m" /> + <option name="test-timeout" value="6m" /> </test> </configuration> diff --git a/files/Android.bp b/files/Android.bp new file mode 100644 index 0000000..f2ff97c --- /dev/null +++ b/files/Android.bp @@ -0,0 +1,19 @@ +// +// Copyright (C) 2017 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. +// + +vts_config { + name: "VtsVndkFiles", +} diff --git a/files/AndroidTest.xml b/files/AndroidTest.xml new file mode 100644 index 0000000..b422922 --- /dev/null +++ b/files/AndroidTest.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2017 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 VNDK files test cases"> + <option name="config-descriptor:metadata" key="plan" value="vts-vndk" /> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="push-group" value="HostDrivenTest.push" /> + </target_preparer> + <multi_target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"> + </multi_target_preparer> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsVndkFiles" /> + <option name="test-case-path" value="vts/testcases/vndk/files/VtsVndkFilesTest" /> + </test> +</configuration> + diff --git a/files/OWNERS b/files/OWNERS deleted file mode 100644 index c8244dd..0000000 --- a/files/OWNERS +++ /dev/null @@ -1,2 +0,0 @@ -# Bug component: 170896 -hsinyichen@google.com diff --git a/golden/Android.bp b/golden/Android.bp index 61ea604..c9abdaa 100644 --- a/golden/Android.bp +++ b/golden/Android.bp @@ -12,22 +12,18 @@ // See the License for the specific language governing permissions and // limitations under the License. -package { - default_applicable_licenses: ["Android-Apache-2.0"], -} - python_binary_host { name: "extract_lsdump", main: "extract_lsdump.py", srcs: ["extract_lsdump.py"], version: { py2: { - enabled: false, - }, - py3: { enabled: true, embedded_launcher: true, }, + py3: { + enabled: false, + }, } } diff --git a/golden/extract_lsdump.py b/golden/extract_lsdump.py index 8849d48..fd42be6 100755 --- a/golden/extract_lsdump.py +++ b/golden/extract_lsdump.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # # Copyright (C) 2018 The Android Open Source Project # @@ -19,7 +19,6 @@ import argparse import gzip import json import os -import sys import zipfile @@ -46,27 +45,27 @@ class AttrDict(dict): def _GetTypeSymbol(record_type): """Gets the mangled name of a record type. - Before Android R, unique_id was mangled name starting with '_ZTS'. + Before Android R, unique_id was mangled name starting with "_ZTS". linker_set_key was unmangled. Since Android R, unique_id has been removed, and linker_set_key has - been changed to mangled name starting with '_ZTI'. + been changed to mangled name starting with "_ZTI". Args: record_type: An AttrDict, a record type in lsdump. Returns: - A string, the mangled name starting with '_ZTI'. + A string, the mangled name starting with "_ZTI". """ - if 'unique_id' in record_type: - return record_type['unique_id'].replace('_ZTS', '_ZTI', 1) - return record_type['linker_set_key'] + if "unique_id" in record_type: + return record_type["unique_id"].replace("_ZTS", "_ZTI", 1) + return record_type["linker_set_key"] def _OpenFileOrGzipped(file_name): """Opens a file that is either in gzip or uncompressed format. - If file_name ends with '.gz' then an opened gzip text file, else return an - opened text file. + If file_name ends with '.gz' then return gzip.open(file_name, 'rb'), + else return open(file_name, 'rb'). Args: file_name: The file name to open. @@ -78,8 +77,8 @@ def _OpenFileOrGzipped(file_name): IOError if fails to open. """ if file_name.endswith('.gz'): - return gzip.open(file_name, 'rt') - return open(file_name, 'r') + return gzip.open(file_name, 'rb') + return open(file_name, 'rb') def _ConsumeOffset(tok, beg=0): @@ -236,8 +235,8 @@ def _ParseLsdumpFileObject(lsdump_file): def _ParseLsdumpZipFile(lsdump_zip, output_zip): """Converts zipped lsdump files to the dump files for ABI test.""" for name in lsdump_zip.namelist(): - if name.endswith('.lsdump'): - with lsdump_zip.open(name, mode='r') as lsdump_file: + if name.endswith(".lsdump"): + with lsdump_zip.open(name, mode="r") as lsdump_file: output_dump = _ParseLsdumpFileObject(lsdump_file) output_str = json.dumps(output_dump, indent=1, separators=(',', ':')) @@ -263,7 +262,7 @@ def ParseLsdumpFile(input_path, output_path): with _OpenFileOrGzipped(input_path) as lsdump_file: output_dump = _ParseLsdumpFileObject(lsdump_file) - with open(output_path, 'w') as output_file: + with open(output_path, 'wb') as output_file: json.dump(output_dump, output_file, indent=1, separators=(',', ':')) except (IOError, OSError) as e: @@ -289,13 +288,13 @@ def main(): with zipfile.ZipFile(args.output_path, mode='w', compression=zipfile.ZIP_STORED) as output_zip: _ParseLsdumpZipFile(input_zip, output_zip) - sys.exit(0) + exit(0) try: ParseLsdumpFile(args.input_path, args.output_path) except LsdumpError as e: print(e) - sys.exit(1) + exit(1) if __name__ == '__main__': diff --git a/golden/vndk_data.py b/golden/vndk_data.py index 56ed5d4..5e971aa 100644 --- a/golden/vndk_data.py +++ b/golden/vndk_data.py @@ -52,8 +52,8 @@ _ABI_LIST = ( ("arm64", 64, "arm64_armv8-a"), ("arm64", 32, "arm_armv8-a"), ("arm", 32, "arm_armv7-a-neon"), - ("x86_64", 64, "x86_64"), - ("x86_64", 32, "x86_x86_64"), + ("x86_64", 64, "x86_x86_64"), + ("x86_64", 32, "x86_64"), ("x86", 32, "x86"), ) diff --git a/hidl/bufferpool/V1_0/target/Android.bp b/hidl/bufferpool/V1_0/target/Android.bp new file mode 100644 index 0000000..f4f798f --- /dev/null +++ b/hidl/bufferpool/V1_0/target/Android.bp @@ -0,0 +1,19 @@ +// +// Copyright (C) 2018 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. +// + +vts_config { + name: "VtsVndkHidlBufferpoolV1_0Target", +} diff --git a/hidl/bufferpool/V1_0/target/AndroidTest.xml b/hidl/bufferpool/V1_0/target/AndroidTest.xml new file mode 100644 index 0000000..b1c11d0 --- /dev/null +++ b/hidl/bufferpool/V1_0/target/AndroidTest.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2018 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 VtsVndkHidlBufferpoolV1_0Target test cases"> + <option name="config-descriptor:metadata" key="plan" value="vts-library" /> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="abort-on-push-failure" value="false"/> + <option name="push-group" value="HostDrivenTest.push"/> + </target_preparer> + <multi_target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsVndkHidlBufferpoolV1_0Target"/> + <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsVndkHidlBufferpoolV1_0TargetSingleTest/VtsVndkHidlBufferpoolV1_0TargetSingleTest"/> + <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsVndkHidlBufferpoolV1_0TargetSingleTest/VtsVndkHidlBufferpoolV1_0TargetSingleTest"/> + <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsVndkHidlBufferpoolV1_0TargetMultiTest/VtsVndkHidlBufferpoolV1_0TargetMultiTest"/> + <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsVndkHidlBufferpoolV1_0TargetMultiTest/VtsVndkHidlBufferpoolV1_0TargetMultiTest"/> + <option name="binary-test-type" value="gtest_binary_test"/> + <option name="test-timeout" value="1m"/> + </test> +</configuration> diff --git a/hidl/bufferpool/V2_0/target/Android.bp b/hidl/bufferpool/V2_0/target/Android.bp new file mode 100644 index 0000000..9533bab --- /dev/null +++ b/hidl/bufferpool/V2_0/target/Android.bp @@ -0,0 +1,19 @@ +// +// Copyright (C) 2018 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. +// + +vts_config { + name: "VtsVndkHidlBufferpoolV2_0Target", +} diff --git a/hidl/bufferpool/V2_0/target/AndroidTest.xml b/hidl/bufferpool/V2_0/target/AndroidTest.xml new file mode 100644 index 0000000..d3241e9 --- /dev/null +++ b/hidl/bufferpool/V2_0/target/AndroidTest.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2018 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 VtsVndkHidlBufferpoolV2_0Target test cases"> + <option name="config-descriptor:metadata" key="plan" value="vts-library" /> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="abort-on-push-failure" value="false"/> + <option name="push-group" value="HostDrivenTest.push"/> + </target_preparer> + <multi_target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer" /> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsVndkHidlBufferpoolV2_0Target"/> + <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsVndkHidlBufferpoolV2_0TargetSingleTest/VtsVndkHidlBufferpoolV2_0TargetSingleTest"/> + <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsVndkHidlBufferpoolV2_0TargetSingleTest/VtsVndkHidlBufferpoolV2_0TargetSingleTest"/> + <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsVndkHidlBufferpoolV2_0TargetMultiTest/VtsVndkHidlBufferpoolV2_0TargetMultiTest"/> + <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsVndkHidlBufferpoolV2_0TargetMultiTest/VtsVndkHidlBufferpoolV2_0TargetMultiTest"/> + <option name="binary-test-type" value="gtest_binary_test"/> + <option name="test-timeout" value="1m"/> + </test> +</configuration> @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # # Copyright (C) 2020 The Android Open Source Project # @@ -32,10 +32,7 @@ class AndroidDevice(object): def AdbPull(self, src, dst): cmd = ["adb", "-s", self._serial_number, "pull", src, dst] - env = os.environ.copy() - if "ADB_COMPRESSION" not in env: - env["ADB_COMPRESSION"] = "0" - subprocess.check_call(cmd, shell=False, env=env, stdin=subprocess.PIPE, + subprocess.check_call(cmd, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) def Execute(self, *args): |