From 8200a153a6e661b8136fc6b229eadfd5ec2e87e7 Mon Sep 17 00:00:00 2001 From: Polina Bondarenko Date: Thu, 15 Dec 2016 16:41:00 +0100 Subject: [PATCH] Build target-side Thermal test with coverage. Instrument Thermal test with coverage so that coverage can be collected on Thermal implementation. Test: make vts Change-Id: I01e4bdf42351034d5fa0a0ff32848f33e0db3980 --- thermal/1.0/vts/functional/Android.bp | 4 +++ .../hal/thermal/hidl/target/AndroidTest.xml | 2 ++ .../hidl/target/ThermalHidlBasicTest.config | 25 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 thermal/1.0/vts/functional/vts/testcases/hal/thermal/hidl/target/ThermalHidlBasicTest.config diff --git a/thermal/1.0/vts/functional/Android.bp b/thermal/1.0/vts/functional/Android.bp index fedb760ebe..bef7bc213d 100644 --- a/thermal/1.0/vts/functional/Android.bp +++ b/thermal/1.0/vts/functional/Android.bp @@ -31,8 +31,12 @@ cc_test { ], static_libs: ["libgtest"], cflags: [ + "--coverage", "-O0", "-g", ], + ldflags: [ + "--coverage" + ] } diff --git a/thermal/1.0/vts/functional/vts/testcases/hal/thermal/hidl/target/AndroidTest.xml b/thermal/1.0/vts/functional/vts/testcases/hal/thermal/hidl/target/AndroidTest.xml index 169264d5c0..3e42b77636 100644 --- a/thermal/1.0/vts/functional/vts/testcases/hal/thermal/hidl/target/AndroidTest.xml +++ b/thermal/1.0/vts/functional/vts/testcases/hal/thermal/hidl/target/AndroidTest.xml @@ -26,6 +26,8 @@ "/>