diff options
| author | Bernie Innocenti <codewiz@google.com> | 2018-05-07 01:39:25 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-05-07 01:39:25 +0000 |
| commit | 6ab97b7a87ffcfecf108934244dde08e41b82060 (patch) | |
| tree | 2302bd90ca30e51f0f492f07400531fac41799e7 | |
| parent | d73c86327142065c797873126abf26e5ee37bd7e (diff) | |
| parent | 7958f2b7e4b15efd16157d0377444e530dd89eb3 (diff) | |
| download | platform_test_vts-testcase_hal-6ab97b7a87ffcfecf108934244dde08e41b82060.tar.gz platform_test_vts-testcase_hal-6ab97b7a87ffcfecf108934244dde08e41b82060.tar.bz2 platform_test_vts-testcase_hal-6ab97b7a87ffcfecf108934244dde08e41b82060.zip | |
Merge "vts driver for net/netd" into pi-dev
| -rw-r--r-- | net/netd/V1_0/build/Android.bp | 88 | ||||
| -rw-r--r-- | net/netd/V1_0/target/Android.mk | 23 | ||||
| -rw-r--r-- | net/netd/V1_0/target/AndroidTest.xml | 29 | ||||
| -rw-r--r-- | net/netd/V1_0/target_profiling/Android.mk | 23 | ||||
| -rw-r--r-- | net/netd/V1_0/target_profiling/AndroidTest.xml | 33 | ||||
| -rw-r--r-- | net/netd/V1_1/build/Android.bp | 94 | ||||
| -rw-r--r-- | net/netd/V1_1/target/Android.mk | 23 | ||||
| -rw-r--r-- | net/netd/V1_1/target/AndroidTest.xml | 29 | ||||
| -rw-r--r-- | net/netd/V1_1/target_profiling/Android.mk | 23 | ||||
| -rw-r--r-- | net/netd/V1_1/target_profiling/AndroidTest.xml | 35 |
10 files changed, 400 insertions, 0 deletions
diff --git a/net/netd/V1_0/build/Android.bp b/net/netd/V1_0/build/Android.bp new file mode 100644 index 00000000..d6518810 --- /dev/null +++ b/net/netd/V1_0/build/Android.bp @@ -0,0 +1,88 @@ +// This file was auto-generated. Do not edit manually. +// Use test/vts-testcase/hal/script/update_makefiles.py to generate this file. + +// Generate .vts spec files. +hal2vts { + name: "android.system.net.netd@1.0-vts.spec", + srcs: [ + ":android.system.net.netd@1.0_hal", + ], + out: [ + "android/system/net/netd/1.0/Netd.vts", + ], +} + +// Build VTS driver. +genrule { + name: "android.system.net.netd@1.0-vts.driver_genc++", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.system:system/hardware/interfaces -randroid.hidl:system/libhidl/transport android.system.net.netd@1.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/system/net/netd/1.0/ $(genDir)/android/system/net/netd/1.0/", + srcs: [ + ":android.system.net.netd@1.0_hal", + ], + out: [ + "android/system/net/netd/1.0/Netd.vts.cpp", + ], +} + +genrule { + name: "android.system.net.netd@1.0-vts.driver_genc++_headers", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.system:system/hardware/interfaces -randroid.hidl:system/libhidl/transport android.system.net.netd@1.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/system/net/netd/1.0/ $(genDir)/android/system/net/netd/1.0/", + srcs: [ + ":android.system.net.netd@1.0_hal", + ], + out: [ + "android/system/net/netd/1.0/Netd.vts.h", + ], +} + +cc_library_shared { + name: "android.system.net.netd@1.0-vts.driver", + generated_sources: ["android.system.net.netd@1.0-vts.driver_genc++"], + generated_headers: ["android.system.net.netd@1.0-vts.driver_genc++_headers"], + export_generated_headers: ["android.system.net.netd@1.0-vts.driver_genc++_headers"], + defaults: ["VtsHalDriverDefaults"], + shared_libs: [], + static_libs: [ + "android.system.net.netd@1.0", + ], +} + +// Build VTS profiler. +genrule { + name: "android.system.net.netd@1.0-vts.profiler_genc++", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.system:system/hardware/interfaces -randroid.hidl:system/libhidl/transport android.system.net.netd@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/system/net/netd/1.0/ $(genDir)/android/system/net/netd/1.0/", + srcs: [ + ":android.system.net.netd@1.0_hal", + ], + out: [ + "android/system/net/netd/1.0/Netd.vts.cpp", + ], +} + +genrule { + name: "android.system.net.netd@1.0-vts.profiler_genc++_headers", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.system:system/hardware/interfaces -randroid.hidl:system/libhidl/transport android.system.net.netd@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/system/net/netd/1.0/ $(genDir)/android/system/net/netd/1.0/", + srcs: [ + ":android.system.net.netd@1.0_hal", + ], + out: [ + "android/system/net/netd/1.0/Netd.vts.h", + ], +} + +cc_library_shared { + name: "android.system.net.netd@1.0-vts.profiler", + generated_sources: ["android.system.net.netd@1.0-vts.profiler_genc++"], + generated_headers: ["android.system.net.netd@1.0-vts.profiler_genc++_headers"], + export_generated_headers: ["android.system.net.netd@1.0-vts.profiler_genc++_headers"], + defaults: ["VtsHalProfilerDefaults"], + shared_libs: [], + static_libs: [ + "android.system.net.netd@1.0", + ], +} + diff --git a/net/netd/V1_0/target/Android.mk b/net/netd/V1_0/target/Android.mk new file mode 100644 index 00000000..452389a2 --- /dev/null +++ b/net/netd/V1_0/target/Android.mk @@ -0,0 +1,23 @@ +# +# 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. +# + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := VtsHalNetNetdV1_0Target +VTS_CONFIG_SRC_DIR := testcases/hal/net/netd/V1_0/target +include test/vts/tools/build/Android.host_config.mk diff --git a/net/netd/V1_0/target/AndroidTest.xml b/net/netd/V1_0/target/AndroidTest.xml new file mode 100644 index 00000000..79b89afe --- /dev/null +++ b/net/netd/V1_0/target/AndroidTest.xml @@ -0,0 +1,29 @@ +<?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 VtsHalNetNetdV1_0Target test cases"> + <option key="plan" name="config-descriptor:metadata" value="vts-staging-default"/> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="abort-on-push-failure" value="false"/> + <option name="push-group" value="HalHidlTargetTest.push"/> + </target_preparer> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsHalNetNetdV1_0Target"/> + <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalNetNetdV1_0TargetTest/VtsHalNetNetdV1_0TargetTest"/> + <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalNetNetdV1_0TargetTest/VtsHalNetNetdV1_0TargetTest"/> + <option name="binary-test-type" value="hal_hidl_gtest"/> + <option name="test-timeout" value="1m"/> + </test> +</configuration> diff --git a/net/netd/V1_0/target_profiling/Android.mk b/net/netd/V1_0/target_profiling/Android.mk new file mode 100644 index 00000000..5dbf5865 --- /dev/null +++ b/net/netd/V1_0/target_profiling/Android.mk @@ -0,0 +1,23 @@ +# +# 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. +# + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := VtsHalNetNetdV1_0TargetProfiling +VTS_CONFIG_SRC_DIR := testcases/hal/net/netd/V1_0/target_profiling +include test/vts/tools/build/Android.host_config.mk diff --git a/net/netd/V1_0/target_profiling/AndroidTest.xml b/net/netd/V1_0/target_profiling/AndroidTest.xml new file mode 100644 index 00000000..c44269a9 --- /dev/null +++ b/net/netd/V1_0/target_profiling/AndroidTest.xml @@ -0,0 +1,33 @@ +<?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 VtsHalNetNetdV1_0TargetProfiling test cases"> + <option key="plan" name="config-descriptor:metadata" value="vts-hal-profiling"/> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="abort-on-push-failure" value="false"/> + <option name="push-group" value="HalHidlTargetProfilingTest.push"/> + <option name="cleanup" value="true"/> + <option name="push" value="DATA/lib/android.system.net.netd@1.0-vts.profiler.so->/data/local/tmp/32/android.system.net.netd@1.0-vts.profiler.so"/> + <option name="push" value="DATA/lib64/android.system.net.netd@1.0-vts.profiler.so->/data/local/tmp/64/android.system.net.netd@1.0-vts.profiler.so"/> + </target_preparer> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsHalNetNetdV1_0TargetProfiling"/> + <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalNetNetdV1_0TargetTest/VtsHalNetNetdV1_0TargetTest"/> + <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalNetNetdV1_0TargetTest/VtsHalNetNetdV1_0TargetTest"/> + <option name="binary-test-type" value="hal_hidl_gtest"/> + <option name="enable-profiling" value="true"/> + <option name="test-timeout" value="1m"/> + </test> +</configuration> diff --git a/net/netd/V1_1/build/Android.bp b/net/netd/V1_1/build/Android.bp new file mode 100644 index 00000000..420cefb5 --- /dev/null +++ b/net/netd/V1_1/build/Android.bp @@ -0,0 +1,94 @@ +// This file was auto-generated. Do not edit manually. +// Use test/vts-testcase/hal/script/update_makefiles.py to generate this file. + +// Generate .vts spec files. +hal2vts { + name: "android.system.net.netd@1.1-vts.spec", + srcs: [ + ":android.system.net.netd@1.1_hal", + ], + out: [ + "android/system/net/netd/1.1/Netd.vts", + ], +} + +// Build VTS driver. +genrule { + name: "android.system.net.netd@1.1-vts.driver_genc++", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.system:system/hardware/interfaces -randroid.hidl:system/libhidl/transport android.system.net.netd@1.1 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/system/net/netd/1.1/ $(genDir)/android/system/net/netd/1.1/", + srcs: [ + ":android.system.net.netd@1.1_hal", + ], + out: [ + "android/system/net/netd/1.1/Netd.vts.cpp", + ], +} + +genrule { + name: "android.system.net.netd@1.1-vts.driver_genc++_headers", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.system:system/hardware/interfaces -randroid.hidl:system/libhidl/transport android.system.net.netd@1.1 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/system/net/netd/1.1/ $(genDir)/android/system/net/netd/1.1/", + srcs: [ + ":android.system.net.netd@1.1_hal", + ], + out: [ + "android/system/net/netd/1.1/Netd.vts.h", + ], +} + +cc_library_shared { + name: "android.system.net.netd@1.1-vts.driver", + generated_sources: ["android.system.net.netd@1.1-vts.driver_genc++"], + generated_headers: ["android.system.net.netd@1.1-vts.driver_genc++_headers"], + export_generated_headers: ["android.system.net.netd@1.1-vts.driver_genc++_headers"], + defaults: ["VtsHalDriverDefaults"], + shared_libs: [ + "android.system.net.netd@1.0-vts.driver", + ], + static_libs: [ + "android.system.net.netd@1.0", + "android.system.net.netd@1.1", + ], +} + +// Build VTS profiler. +genrule { + name: "android.system.net.netd@1.1-vts.profiler_genc++", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.system:system/hardware/interfaces -randroid.hidl:system/libhidl/transport android.system.net.netd@1.1 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/system/net/netd/1.1/ $(genDir)/android/system/net/netd/1.1/", + srcs: [ + ":android.system.net.netd@1.1_hal", + ], + out: [ + "android/system/net/netd/1.1/Netd.vts.cpp", + ], +} + +genrule { + name: "android.system.net.netd@1.1-vts.profiler_genc++_headers", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.system:system/hardware/interfaces -randroid.hidl:system/libhidl/transport android.system.net.netd@1.1 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/system/net/netd/1.1/ $(genDir)/android/system/net/netd/1.1/", + srcs: [ + ":android.system.net.netd@1.1_hal", + ], + out: [ + "android/system/net/netd/1.1/Netd.vts.h", + ], +} + +cc_library_shared { + name: "android.system.net.netd@1.1-vts.profiler", + generated_sources: ["android.system.net.netd@1.1-vts.profiler_genc++"], + generated_headers: ["android.system.net.netd@1.1-vts.profiler_genc++_headers"], + export_generated_headers: ["android.system.net.netd@1.1-vts.profiler_genc++_headers"], + defaults: ["VtsHalProfilerDefaults"], + shared_libs: [ + "android.system.net.netd@1.0-vts.profiler", + ], + static_libs: [ + "android.system.net.netd@1.0", + "android.system.net.netd@1.1", + ], +} + diff --git a/net/netd/V1_1/target/Android.mk b/net/netd/V1_1/target/Android.mk new file mode 100644 index 00000000..39656034 --- /dev/null +++ b/net/netd/V1_1/target/Android.mk @@ -0,0 +1,23 @@ +# +# 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. +# + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := VtsHalNetNetdV1_1Target +VTS_CONFIG_SRC_DIR := testcases/hal/net/netd/V1_1/target +include test/vts/tools/build/Android.host_config.mk diff --git a/net/netd/V1_1/target/AndroidTest.xml b/net/netd/V1_1/target/AndroidTest.xml new file mode 100644 index 00000000..8a99036e --- /dev/null +++ b/net/netd/V1_1/target/AndroidTest.xml @@ -0,0 +1,29 @@ +<?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 VtsHalNetNetdV1_1Target test cases"> + <option key="plan" name="config-descriptor:metadata" value="vts-staging-default"/> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="abort-on-push-failure" value="false"/> + <option name="push-group" value="HalHidlTargetTest.push"/> + </target_preparer> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsHalNetNetdV1_1Target"/> + <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalNetNetdV1_1TargetTest/VtsHalNetNetdV1_1TargetTest"/> + <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalNetNetdV1_1TargetTest/VtsHalNetNetdV1_1TargetTest"/> + <option name="binary-test-type" value="hal_hidl_gtest"/> + <option name="test-timeout" value="1m"/> + </test> +</configuration> diff --git a/net/netd/V1_1/target_profiling/Android.mk b/net/netd/V1_1/target_profiling/Android.mk new file mode 100644 index 00000000..d3e50f95 --- /dev/null +++ b/net/netd/V1_1/target_profiling/Android.mk @@ -0,0 +1,23 @@ +# +# 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. +# + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := VtsHalNetNetdV1_1TargetProfiling +VTS_CONFIG_SRC_DIR := testcases/hal/net/netd/V1_1/target_profiling +include test/vts/tools/build/Android.host_config.mk diff --git a/net/netd/V1_1/target_profiling/AndroidTest.xml b/net/netd/V1_1/target_profiling/AndroidTest.xml new file mode 100644 index 00000000..b774054a --- /dev/null +++ b/net/netd/V1_1/target_profiling/AndroidTest.xml @@ -0,0 +1,35 @@ +<?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 VtsHalNetNetdV1_1TargetProfiling test cases"> + <option key="plan" name="config-descriptor:metadata" value="vts-hal-profiling"/> + <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher"> + <option name="abort-on-push-failure" value="false"/> + <option name="push-group" value="HalHidlTargetProfilingTest.push"/> + <option name="cleanup" value="true"/> + <option name="push" value="DATA/lib/android.system.net.netd@1.0-vts.profiler.so->/data/local/tmp/32/android.system.net.netd@1.0-vts.profiler.so"/> + <option name="push" value="DATA/lib64/android.system.net.netd@1.0-vts.profiler.so->/data/local/tmp/64/android.system.net.netd@1.0-vts.profiler.so"/> + <option name="push" value="DATA/lib/android.system.net.netd@1.1-vts.profiler.so->/data/local/tmp/32/android.system.net.netd@1.1-vts.profiler.so"/> + <option name="push" value="DATA/lib64/android.system.net.netd@1.1-vts.profiler.so->/data/local/tmp/64/android.system.net.netd@1.1-vts.profiler.so"/> + </target_preparer> + <test class="com.android.tradefed.testtype.VtsMultiDeviceTest"> + <option name="test-module-name" value="VtsHalNetNetdV1_1TargetProfiling"/> + <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalNetNetdV1_1TargetTest/VtsHalNetNetdV1_1TargetTest"/> + <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalNetNetdV1_1TargetTest/VtsHalNetNetdV1_1TargetTest"/> + <option name="binary-test-type" value="hal_hidl_gtest"/> + <option name="enable-profiling" value="true"/> + <option name="test-timeout" value="1m"/> + </test> +</configuration> |
