summaryrefslogtreecommitdiff
path: root/memory_replay
diff options
context:
space:
mode:
authorDan Shi <dshi@google.com>2017-04-04 10:23:43 -0700
committerDan Shi <dshi@google.com>2017-04-04 10:24:41 -0700
commitb5337b1fca34582cbb2e7ad7ae0ed894b32f303f (patch)
treea691ba86b45caea5dc14c2abef03a6e749b0eb74 /memory_replay
parentf0deb9a4dd1010c4146e34166d23813f91d94d83 (diff)
downloadextras-b5337b1fca34582cbb2e7ad7ae0ed894b32f303f.tar.gz
Add test config to memory_replay_tests
This change allows TradeFederation to run the test directly. Refer to b/35882476 for design and discussion of this change. Bug: 35882476 Test: local test tradefed.sh run template/local --template:map test=memory_replay_tests Change-Id: Ibce3758f999e3f85624e5c6ca48f21f6e496b356
Diffstat (limited to 'memory_replay')
-rw-r--r--memory_replay/Android.mk1
-rw-r--r--memory_replay/AndroidTest.xml26
2 files changed, 27 insertions, 0 deletions
diff --git a/memory_replay/Android.mk b/memory_replay/Android.mk
index 7179d614..2b299ada 100644
--- a/memory_replay/Android.mk
+++ b/memory_replay/Android.mk
@@ -47,6 +47,7 @@ LOCAL_CFLAGS := -Wall -Wextra -Werror
LOCAL_C_INCLUDES := $(LOCAL_PATH)/tests
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := memory_replay_tests
+LOCAL_COMPATIBILITY_SUITE := device-tests
LOCAL_SHARED_LIBRARIES := libbase
diff --git a/memory_replay/AndroidTest.xml b/memory_replay/AndroidTest.xml
new file mode 100644
index 00000000..cf3879af
--- /dev/null
+++ b/memory_replay/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 memory_replay_tests">
+ <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
+ <option name="cleanup" value="true" />
+ <option name="push" value="memory_replay_tests->/data/local/tmp/memory_replay_tests" />
+ </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="memory_replay_tests" />
+ </test>
+</configuration>