mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:09:42 +00:00
Merge "Improve process to run the Vendor HAL gTest suite." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
01cf38f349
14
wifi/aidl/default/tests/README.md
Normal file
14
wifi/aidl/default/tests/README.md
Normal 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
|
||||||
|
```
|
||||||
@@ -20,7 +20,8 @@ if [ -z $ANDROID_BUILD_TOP ]; then
|
|||||||
fi
|
fi
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
$ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode android.hardware.wifi-service-tests
|
|
||||||
adb root
|
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 sync data
|
||||||
adb shell /data/nativetest64/vendor/android.hardware.wifi-service-tests/android.hardware.wifi-service-tests
|
adb shell /data/nativetest64/vendor/android.hardware.wifi-service-tests/android.hardware.wifi-service-tests
|
||||||
|
|||||||
Reference in New Issue
Block a user