Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab0c350b authored by Gabriel Biren's avatar Gabriel Biren Committed by Automerger Merge Worker
Browse files

Merge "Improve process to run the Vendor HAL gTest suite." into udc-dev am:...

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

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



Change-Id: I9d0b01159c7beb72801536d5ff10a528e99cbe00
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents fe5dac36 4a97e483
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
# 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
```
+2 −1
Original line number Diff line number Diff line
@@ -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