Add test config for resolv_integration_test
This is necessary to execute the test on MTS. Without the config,
tradefed will use the wrong file pusher, which doesn't handle the
multiarch test filename.
Test: m mts
Bug: 146684390
Change-Id: Ia963882d33048fe073218ebfa79553c7f5e8e8ea
diff --git a/tests/Android.bp b/tests/Android.bp
index fa2ea31..7e4856f 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -100,6 +100,7 @@
name: "resolv_integration_test",
test_suites: ["device-tests", "mts"],
require_root: true,
+ test_config: "resolv_integration_test_config.xml",
defaults: ["netd_defaults"],
tidy: false, // cuts test build time by > 1m30s
srcs: [
diff --git a/tests/resolv_integration_test_config.xml b/tests/resolv_integration_test_config.xml
new file mode 100644
index 0000000..87f0ec9
--- /dev/null
+++ b/tests/resolv_integration_test_config.xml
@@ -0,0 +1,15 @@
+<configuration description="Configuration for resolv integration tests">
+ <option name="test-suite-tag" value="mts" />
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
+ <option name="cleanup" value="true" />
+ <option name="push" value="resolv_integration_test->/data/local/tmp/resolv_integration_test" />
+ <option name="append-bitness" value="true" />
+ </target_preparer>
+ <test class="com.android.tradefed.testtype.GTest" >
+ <option name="native-test-device-path" value="/data/local/tmp" />
+ <option name="module-name" value="resolv_integration_test" />
+ <option name="runtime-hint" value="10m" />
+ <!-- test-timeout unit is ms, value = 10 min -->
+ <option name="native-test-timeout" value="600000" />
+ </test>
+</configuration>