aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Shi <dshi@google.com>2017-03-29 23:49:45 -0700
committerDan Shi <dshi@google.com>2017-03-29 23:49:45 -0700
commit8ffbd0d15024dca8631badef53ebd4fc49b8cdc4 (patch)
tree0bfce112277fc4a810891b7a516a483be9cca62f
parent90c12683ee3e8f2089508d0030582e978035aea6 (diff)
downloadlibnativehelper-8ffbd0d15024dca8631badef53ebd4fc49b8cdc4.tar.gz
Add test config to JniInvocation_test
Design doc: Generalized Suites & the Unification of APCT & CTS Workflows Design/Roadmap https://docs.google.com/document/d/1eabK3srlBLouMiBMrNP3xJPiRRdcoCquNxC8gBWPvx8/edit#heading=h.78vup5eivwzo Details about test configs changes are tracked in doc https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit# Bug: 35882476 Test: local test Change-Id: I960ae8d6c1d2b2a489e8d11b534be5127ea8d018
-rw-r--r--tests/Android.bp1
-rw-r--r--tests/AndroidTest.xml26
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/Android.bp b/tests/Android.bp
index b4d928b..523b419 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -2,6 +2,7 @@
cc_test {
name: "JniInvocation_test",
+ test_suites: ["device-tests"],
host_supported: true,
clang: true,
srcs: ["JniInvocation_test.cpp"],
diff --git a/tests/AndroidTest.xml b/tests/AndroidTest.xml
new file mode 100644
index 0000000..0f377f2
--- /dev/null
+++ b/tests/AndroidTest.xml
@@ -0,0 +1,26 @@
+<?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 JniInvocation_test">
+ <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
+ <option name="cleanup" value="true" />
+ <option name="push" value="JniInvocation_test->/data/local/tmp/JniInvocation_test" />
+ </target_preparer>
+ <option name="test-suite-tag" value="apct" />
+ <test class="com.android.tradefed.testtype.GTest" >
+ <option name="native-test-device-path" value="/data/local/tmp" />
+ <option name="module-name" value="JniInvocation_test" />
+ </test>
+</configuration> \ No newline at end of file