1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<configuration description="Test module config for OverlayDeviceTests"> 18 <option name="test-tag" value="OverlayDeviceTests" /> 19 <option name="test-suite-tag" value="apct" /> 20 <option name="test-suite-tag" value="apct-instrumentation" /> 21 22 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> 23 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> 24 <option name="cleanup" value="true" /> 25 <option name="remount-system" value="true" /> 26 <option name="push" value="OverlayDeviceTests.apk->/system/app/OverlayDeviceTests.apk" /> 27 </target_preparer> 28 <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer" /> 29 30 <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup"> 31 <option name="cleanup-apks" value="true" /> 32 <option name="test-file-name" value="OverlayDeviceTests_AppOverlayOne.apk" /> 33 <option name="test-file-name" value="OverlayDeviceTests_AppOverlayTwo.apk" /> 34 <option name="test-file-name" value="OverlayDeviceTests_FrameworkOverlay.apk" /> 35 </target_preparer> 36 37 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 38 <option name="run-command" 39 value="cmd overlay disable com.android.overlaytest.framework" /> 40 <option name="run-command" 41 value="cmd overlay disable com.android.overlaytest.app_overlay_one" /> 42 <option name="run-command" 43 value="cmd overlay disable com.android.overlaytest.app_overlay_two" /> 44 <option name="teardown-command" 45 value="cmd overlay disable com.android.overlaytest.framework" /> 46 <option name="teardown-command" 47 value="cmd overlay disable com.android.overlaytest.app_overlay_one" /> 48 <option name="teardown-command" 49 value="cmd overlay disable com.android.overlaytest.app_overlay_two" /> 50 </target_preparer> 51 52 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 53 <option name="package" value="com.android.overlaytest" /> 54 </test> 55</configuration> 56