Add test configs to hwui tests
Details about test configs changes are tracked in doc https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit# The 3 tests are in the same folder, have to be built together then run. Bug: 35882476 Test: local test make -j32 hwui_unit_tests make -j32 hwuimicro make -j32 hwuimacro tradefed.sh run template/local --template:map test=hwuimacro Change-Id: I13f785d8e3215c61776a1beecaa121c7dc30bfec
This commit is contained in:
@@ -267,6 +267,7 @@ include $(BUILD_SHARED_LIBRARY)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := hwui_unit_tests
|
||||
LOCAL_COMPATIBILITY_SUITE := device-tests
|
||||
LOCAL_MODULE_TAGS := tests
|
||||
LOCAL_STATIC_LIBRARIES := libgmock libhwui_static_debug
|
||||
LOCAL_SHARED_LIBRARIES := libmemunreachable
|
||||
@@ -331,6 +332,7 @@ include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/local/tmp
|
||||
LOCAL_MODULE:= hwuimacro
|
||||
LOCAL_COMPATIBILITY_SUITE := device-tests
|
||||
LOCAL_MODULE_TAGS := tests
|
||||
LOCAL_MULTILIB := both
|
||||
LOCAL_CFLAGS := $(hwui_cflags)
|
||||
@@ -354,6 +356,7 @@ include $(BUILD_NATIVE_BENCHMARK)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE:= hwuimicro
|
||||
LOCAL_COMPATIBILITY_SUITE := device-tests
|
||||
LOCAL_MODULE_TAGS := tests
|
||||
LOCAL_CFLAGS := \
|
||||
$(hwui_cflags) \
|
||||
|
||||
36
libs/hwui/AndroidTest.xml
Normal file
36
libs/hwui/AndroidTest.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2017 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<configuration description="Config for hwuimicro">
|
||||
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
|
||||
<option name="cleanup" value="true" />
|
||||
<option name="push" value="hwui_unit_tests->/data/nativetest/hwui_unit_tests" />
|
||||
<option name="push" value="hwuimicro->/data/benchmarktest/hwuimicro" />
|
||||
<option name="push" value="hwuimacro->/data/benchmarktest/hwuimacro" />
|
||||
</target_preparer>
|
||||
<option name="test-suite-tag" value="apct" />
|
||||
<test class="com.android.tradefed.testtype.GTest" >
|
||||
<option name="native-test-device-path" value="/data/nativetest" />
|
||||
<option name="module-name" value="hwui_unit_tests" />
|
||||
</test>
|
||||
<test class="com.android.tradefed.testtype.GoogleBenchmarkTest" >
|
||||
<option name="native-benchmark-device-path" value="/data/benchmarktest" />
|
||||
<option name="benchmark-module-name" value="hwuimicro" />
|
||||
</test>
|
||||
<test class="com.android.tradefed.testtype.GoogleBenchmarkTest" >
|
||||
<option name="native-benchmark-device-path" value="/data/benchmarktest" />
|
||||
<option name="benchmark-module-name" value="hwuimacro" />
|
||||
</test>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user