forked from openkylin/platform_build
Merge "ATest: Host native test config auto-gen support."
am: 56d08ec834
Change-Id: I78a6c5e4dcd9349b8b89be77e9090cb8a8df1fa4
This commit is contained in:
commit
7edbae731d
|
@ -25,9 +25,13 @@ autogen_test_config_file := $(dir $(LOCAL_BUILT_MODULE))$(LOCAL_MODULE).config
|
||||||
ifeq (true,$(is_native))
|
ifeq (true,$(is_native))
|
||||||
ifeq ($(LOCAL_NATIVE_BENCHMARK),true)
|
ifeq ($(LOCAL_NATIVE_BENCHMARK),true)
|
||||||
autogen_test_config_template := $(NATIVE_BENCHMARK_TEST_CONFIG_TEMPLATE)
|
autogen_test_config_template := $(NATIVE_BENCHMARK_TEST_CONFIG_TEMPLATE)
|
||||||
|
else
|
||||||
|
ifeq ($(LOCAL_IS_HOST_MODULE),true)
|
||||||
|
autogen_test_config_template := $(NATIVE_HOST_TEST_CONFIG_TEMPLATE)
|
||||||
else
|
else
|
||||||
autogen_test_config_template := $(NATIVE_TEST_CONFIG_TEMPLATE)
|
autogen_test_config_template := $(NATIVE_TEST_CONFIG_TEMPLATE)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
# Auto generating test config file for native test
|
# Auto generating test config file for native test
|
||||||
$(autogen_test_config_file): PRIVATE_MODULE_NAME := $(LOCAL_MODULE)
|
$(autogen_test_config_file): PRIVATE_MODULE_NAME := $(LOCAL_MODULE)
|
||||||
$(autogen_test_config_file) : $(autogen_test_config_template)
|
$(autogen_test_config_file) : $(autogen_test_config_template)
|
||||||
|
|
|
@ -171,6 +171,7 @@ INSTRUMENTATION_TEST_CONFIG_TEMPLATE := $(BUILD_SYSTEM)/instrumentation_test_con
|
||||||
NATIVE_BENCHMARK_TEST_CONFIG_TEMPLATE := $(BUILD_SYSTEM)/native_benchmark_test_config_template.xml
|
NATIVE_BENCHMARK_TEST_CONFIG_TEMPLATE := $(BUILD_SYSTEM)/native_benchmark_test_config_template.xml
|
||||||
NATIVE_TEST_CONFIG_TEMPLATE := $(BUILD_SYSTEM)/native_test_config_template.xml
|
NATIVE_TEST_CONFIG_TEMPLATE := $(BUILD_SYSTEM)/native_test_config_template.xml
|
||||||
EMPTY_TEST_CONFIG := $(BUILD_SYSTEM)/empty_test_config.xml
|
EMPTY_TEST_CONFIG := $(BUILD_SYSTEM)/empty_test_config.xml
|
||||||
|
NATIVE_HOST_TEST_CONFIG_TEMPLATE := $(BUILD_SYSTEM)/native_host_test_config_template.xml
|
||||||
|
|
||||||
# Tool to generate TradeFed test config file automatically.
|
# Tool to generate TradeFed test config file automatically.
|
||||||
AUTOGEN_TEST_CONFIG_SCRIPT := build/make/tools/auto_gen_test_config.py
|
AUTOGEN_TEST_CONFIG_SCRIPT := build/make/tools/auto_gen_test_config.py
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2018 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.
|
||||||
|
-->
|
||||||
|
<!-- This test config file is auto-generated. -->
|
||||||
|
<configuration description="Runs {MODULE}.">
|
||||||
|
<option name="null-device" value="true" />
|
||||||
|
<test class="com.android.tradefed.testtype.HostGTest" >
|
||||||
|
<option name="module-name" value="{MODULE}" />
|
||||||
|
</test>
|
||||||
|
</configuration>
|
||||||
|
|
Loading…
Reference in New Issue