Commit graph

38 commits

Author SHA1 Message Date
Dan Shi
ba4d532fee Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
2020-07-28 15:12:32 -07:00
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
nelsonli
6edb7e28d4 [vts-core] add VtsHalVrV1_0TargetTest to vts-core
Convert VtsHalVrV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalVrV1_0TargetTest
Change-Id: Ic14260b15baebad082f6da0c52c09e58e40760b2
2019-10-29 16:16:55 +08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
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
Tri Vo
d94a7d2df9 Remove .vts spec files
Test: mmma hardware/interfaces
Change-Id: Idae97ce60a6368cfa685ae6b2d71b9ad163e8605
2017-02-22 12:53:52 -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
Zhuoyao Zhang
3bef939f94 Update .vts files on master based on the latest .hal file and hidl-gen
Test: mma
Change-Id: I9558f300505db83e26f7c241c5cf729cd005a07b
2017-02-13 18:03:06 -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
TreeHugger Robot
6e3cb80c19 Merge "Add VR Hal host test." 2017-01-04 00:13:01 +00:00
Keun Soo Yim
0500fb47b7 fix: add missing Android.mk links
Test: mma
Change-Id: I8324b5c8bd8392ff75c86b8473b748c41b6375ca
2016-12-28 13:20:09 -08:00
Zhuoyao Zhang
c57e359d1a Update Android.bp and vts/Android.mk for Hidl HALs
* Using update-makefiles.sh to add make rule for profiler in Android.bp
* Remove make rule for profiler in vts/Android.mk.

Bug:31930023
Test: mma
Change-Id: Iea834d8610501c2fce63f65742db31bafb85c0b8
2016-12-22 17:09:12 -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
Keun Soo Yim
b62dc3e6ee use the new oneshot vts driver generation build rule
Test: mma
Change-Id: Ib15399d6e7d5049b7a1912623ac2d95de9dfba73
2016-12-16 13:40:33 -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
TreeHugger Robot
17452436fb Merge "Remove -DENABLE_TREBLE from vts test LOCAL_CFLAGS." 2016-11-18 16:24:29 +00:00
Yifan Hong
6b920e43d3 Split libhidl into base and transport.
Bug: 32756130

Test: mma
Change-Id: Id21cf23abe2910f26bb7895511862443b93dc112
2016-11-18 00:00:54 -08:00
Steven Moreland
2b2cef2864 Remove -DENABLE_TREBLE from vts test LOCAL_CFLAGS.
I went ahead and removed some no-ops from the mk's.

Bug: 32978887
Test: mma -j64
Change-Id: I6f8341332aa9f249912f6a8b3a3664b76d362e99
2016-11-17 14:57:37 -08:00
Keun Soo Yim
51d5bb99e8 Define VTS driver and profiler modules for VR HAL 1.0
Test: mma
Change-Id: Ibedaf99a964bbb70f85cc876700a3eec0592a20c
2016-11-04 08:27:11 -07:00
Craig Donner
bd8766a31d VTS file for VR hal.
Bug: 32022964
Test: manual
Change-Id: Ia9dc36636e38bf817ec78729cb3e281a5da98f12
2016-10-27 10:10:55 -07:00