diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-06-15 23:17:49 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-06-15 23:17:49 +0000 |
commit | 351ea81b967e1ff844998e3cbf79257551f2a98e (patch) | |
tree | 988c0b6904e4fd9c29bce98fee321585b83b2650 | |
parent | 4d1d4220c7a26a10633d52360e4583f911cae49a (diff) | |
parent | 01cf38f349e9b667d299987e70a80d12885663cc (diff) |
Snap for 10331563 from 01cf38f349e9b667d299987e70a80d12885663cc to udc-release
Change-Id: Ibf406dc3088750b09ad5345f4f61c323743435ef
-rw-r--r-- | wifi/aidl/default/tests/README.md | 14 | ||||
-rwxr-xr-x | wifi/aidl/default/tests/runtests.sh | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/wifi/aidl/default/tests/README.md b/wifi/aidl/default/tests/README.md new file mode 100644 index 0000000000..fc0a98ad92 --- /dev/null +++ b/wifi/aidl/default/tests/README.md @@ -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 +``` diff --git a/wifi/aidl/default/tests/runtests.sh b/wifi/aidl/default/tests/runtests.sh index 1f53ab8e05..228c82b950 100755 --- a/wifi/aidl/default/tests/runtests.sh +++ b/wifi/aidl/default/tests/runtests.sh @@ -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 |