Commit graph

23 commits

Author SHA1 Message Date
Zhuoyao Zhang
e8ca007d3f Convert vr hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalVrV1_0Target

Change-Id: Ib4a48a2b6a32139472db3d9121b1041d151af961
2018-02-09 17:57:11 +00:00
Tri Vo
b65c5ceff2 VTS tests now static link to HAL def libs.
And use VtsHalTargetTestDefaults.
This is a partial cherry-pick of ag/2657080.

Bug: 64040096
Test: compiles, works fine in internal master
Merged-In: I8f6995e9536a9aefe283ee3effec9f5a7f03b620
Change-Id: I76d47d8546416b57055841851a9d343026cd3210
2017-08-25 11:48:10 -07:00
Steven Moreland
4e7a307730 Fix transitive includes.
Files relying on transitive include of utils/Log.h (and things that it
includes) from MQDescriptor.h

Test: pass
Merged-In: Iff316b21bef556bb026378b7f89e97ded3febef4
Change-Id: Iff316b21bef556bb026378b7f89e97ded3febef4
2017-04-06 22:04:05 +00:00
Yuexi Ma
ed2bb4e8f8 Change vts target base test class name
Test: make vts succeed, vts kernel tests and nfc hal tests passed
Change-Id: I95f10ad7a66f261c9030357edd411fe6d94150e8
2017-03-10 21:14:48 +00:00
Steven Moreland
48c52249e4 hidl_default to all targets.
find hardware/interfaces -type f -not -path "*/.git/*" \
-exec sed -i -e '/cc_[A-Za-z_]\+/ { N; s/$/\n    defaults:
\["hidl_defaults"\],/ }' {} \;
./hardware/interfaces/update-makefiles.sh

Test: pass
Bug: 35840847
Change-Id: If10c464d2f000b85c8d698fe11a4f3fc4cfad282
2017-03-08 19:31:53 -08:00
Yuexi Ma
50d7e27b3c change all vts hidl tests to use VtsHalHidlTargetBaseTest (internal master)
Bug: 33385836
Test: mma
Change-Id: Ide3ebc4a9db76257f33bcfb0c1f13d2ee33eeaa8
2017-02-28 22:27:28 +00:00
Chris Phoenix
aa011ee002 Vr HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934

Change-Id: I2bd735cff9674ec5955ae30efed27359041ed723
2017-02-24 16:45:35 -08:00
Zhuoyao Zhang
8422f6aa04 Update the test binary and source file name on master.
* To confirm with Vts naming convention.

Bug: 35273456
Test: mma
Change-Id: I845da64085253cd02480465479618308045a52ed
2017-02-21 20:47:18 -08:00
Ryan Campbell
2caf0a60f3 Remove coverage flags from tests.
Remove unnecessary coverage flags from HAL tests.

Bug: 32749731
Test: none
Change-Id: I7e4e3bce2d9d444bfa8475c140bce2ee7e3b0c0d
2017-02-14 16:50:34 -08:00
Keun Soo Yim
7b9b6ca18f move VTS stub files and non-functional tests
Test: mma
Bug: 34976004
Change-Id: I20273bdc3a05e2986fcf921f65d2afd6d72781e4
2017-02-04 02:45:25 +00:00
Craig Donner
f5589bdf8d Remove assertion that VR hal is remote
Bug: 34258263
Test: manual with vts-tradefed on Pixel XL
Change-Id: I20731f0f85d6862a07e09db6ab0eda53523e58e4
2017-02-01 17:22:35 -08:00
Keun Soo Yim
b21bdc8b9f use the device's default binder/passthrough mode in vts tests
Test: mma
Change-Id: I3f2775873f5b6c091f70413adbdf7b7ae298ff44
2017-01-25 15:08:12 -08:00
Keun Soo Yim
846dc078ea Merge "Use the feature-based precondition checking for VR Test." 2017-01-24 21:14:50 +00:00
Keun Soo Yim
41249c1f52 Use the feature-based precondition checking for VR Test.
This is to run the test on both passthrough and binderized
devices.

Test: make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module
HalNfcHidlTargetBasicTest -l INFO
Bug: 32022964

Change-Id: Ib1288b7288431da6ec2d8a93aa0bc6f2c86fc4da
2017-01-23 16:29:02 -08:00
Keun Soo Yim
5d406a3a37 Merge "add target-side profiling test for multimedia HIDL HALs" 2017-01-19 02:25:34 +00:00
Keun Soo Yim
e64871a894 add target-side profiling test for multimedia HIDL HALs
Test: mma
Change-Id: I14aeb000e2a17381c28ea2115d67a7e8eb84e375
2017-01-18 23:23:49 +00:00
Zhuoyao Zhang
6ec5b21a81 Update profiling code for host-side tests.
* Parse profiling data for each test case.
* Merge the profiling data for each test case at the end of test
  and upload the profiling info to web.

Bug:34226555
Test: run vts -m VibratorHidlProfilingTest

Change-Id: I9e13eada8e7db338a29c6943868d12e76844e2c4
2017-01-17 20:10:26 -08:00
Chris Phoenix
627fc6fe4d Merge "Add name "default" as default to register service" 2017-01-13 08:22:57 +00:00
Keun Soo Yim
704cf5dbb3 skip VR HAL test if there's no a::h::vr@ service process on a target
device

Test: make vts -j10 && vts-tradefed run commandAndExit vts
--skip-all-system-status-check --primary-abi-only --skip-preconditions
--module VrHidlTargetTest -l INFO

Change-Id: Ic4c8f6c6707269e64910e93b4601b9d43de01714
2017-01-11 15:58:55 -08:00
Chris Phoenix
125378b6d6 Add name "default" as default to register service
the getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: make hidl_test; adb sync; adb shell;
data/native_test64/hidl_test64
Run VTS test from go/vtsrun on Sensors, Vr, Nfc
Verify NFC HAL works (turn NFC on and off in Settings)

In support of b/33844934

Change-Id: Ibcc140c3ce7930bff61cda2213c4c9ed4491a964
2017-01-11 15:53:45 -08:00
Craig Donner
d0256ac979 Enable coverage for VR VTS.
Bug: 32022964
Test: manual
Change-Id: I597a9692886686934b374fac9e6bd1c51e683a92
2017-01-04 11:46:23 -08:00
Craig Donner
e165cdbf09 Add VR Hal host test.
Bug: 32022964
Test:  vts-tradefed
Change-Id: Ieb491377b128f757f1e18b32f0c3dc5a40010b7e
2016-12-16 18:49:45 -08:00
Craig Donner
63cd88efba Add VR Hal target test.
Bug: 32022964
Test:  vts-tradefed
Change-Id: If1ae2b3df7ee083b5a0855d883368aefd244531a
2016-12-15 10:30:42 -08:00