Merge "Improve process to run the Vendor HAL gTest suite." into udc-dev am: 01cf38f349 am: 4a97e483bf am: ab0c350be8

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23699649

Change-Id: I36c9f9eb0ef552394d26d052765e819cc508a804
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Gabriel Biren
2023-06-15 03:54:29 +00:00
committed by Automerger Merge Worker
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
# Vendor HAL gTest Suite
## Overview
Rather than testing an active instance of the service like the VTS tests,
this test suite will test individual files from the Vendor HAL.
This is especially useful for testing conversion methods (see `aidl_struct_util_unit_tests.cpp`),
but can also be used to test things like `wifi_chip`.
## Usage
Run the test script with a device connected:
```
./runtests.sh
```

View File

@@ -20,7 +20,8 @@ if [ -z $ANDROID_BUILD_TOP ]; then
fi
set -e
$ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode android.hardware.wifi-service-tests
adb root
adb wait-for-device
$ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode android.hardware.wifi-service-tests
adb sync data
adb shell /data/nativetest64/vendor/android.hardware.wifi-service-tests/android.hardware.wifi-service-tests