Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 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 | <configuration description="Runs the rollback tests"> |
| 17 | <option name="test-suite-tag" value="RollbackTest" /> |
| 18 | <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup"> |
| 19 | <option name="test-file-name" value="RollbackTest.apk" /> |
| 20 | </target_preparer> |
JW Wang | 8cb6fe8 | 2020-03-19 11:12:36 +0800 | [diff] [blame] | 21 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 22 | <option name="run-command" value="am broadcast -a 'com.google.android.gms.phenotype.FLAG_OVERRIDE' --es package "com.google.android.gms.platformconfigurator" --es user '\\*' --esa flags "ModuleConfig__immediate_commit_packages" --esa types "bytes" --esa values "CgA=" com.google.android.gms" /> |
| 23 | <option name="run-command" value="am broadcast -a 'com.google.android.gms.phenotype.FLAG_OVERRIDE' --es package "com.google.android.gms.platformconfigurator" --es user '\\*' --esa flags "ModuleConfig__versioned_immediate_commit_packages" --esa types "bytes" --esa values "Cm5vdGFwYWNrYWdlOgA=" com.google.android.gms" /> |
| 24 | <option name="teardown-command" value="am broadcast -a 'com.google.android.gms.phenotype.FLAG_OVERRIDE' --es action delete --es package "com.google.android.gms.platformconfigurator" --es user '\*' --esa flag "ModuleConfig__immediate_commit_packages" com.google.android.gms" /> |
| 25 | <option name="teardown-command" value="am broadcast -a 'com.google.android.gms.phenotype.FLAG_OVERRIDE' --es action delete --es package "com.google.android.gms.platformconfigurator" --es user '\*' --esa flag "ModuleConfig__versioned_immediate_commit_packages" com.google.android.gms" /> |
JW Wang | a09e3c0 | 2020-03-24 16:09:58 +0800 | [diff] [blame] | 26 | <option name="run-command" value="pm uninstall com.android.cts.install.lib.testapp.A" /> |
| 27 | <option name="run-command" value="pm uninstall com.android.cts.install.lib.testapp.B" /> |
| 28 | <option name="teardown-command" value="pm uninstall com.android.cts.install.lib.testapp.A" /> |
| 29 | <option name="teardown-command" value="pm uninstall com.android.cts.install.lib.testapp.B" /> |
JW Wang | 8cb6fe8 | 2020-03-19 11:12:36 +0800 | [diff] [blame] | 30 | </target_preparer> |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 31 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
| 32 | <option name="package" value="com.android.tests.rollback" /> |
Brett Chabot | 502ec7a | 2019-03-01 14:43:20 -0800 | [diff] [blame] | 33 | <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> |
Richard Uhler | c5e2e80 | 2019-02-11 12:20:31 +0000 | [diff] [blame] | 34 | |
JW Wang | ce92d63 | 2020-01-16 16:22:00 +0800 | [diff] [blame] | 35 | <!-- Exclude the device tests which need to be specially driven from the host tests --> |
Richard Uhler | c5e2e80 | 2019-02-11 12:20:31 +0000 | [diff] [blame] | 36 | <option name="exclude-filter" value="com.android.tests.rollback.StagedRollbackTest" /> |
JW Wang | ce92d63 | 2020-01-16 16:22:00 +0800 | [diff] [blame] | 37 | <option name="exclude-filter" value="com.android.tests.rollback.NetworkStagedRollbackTest" /> |
Gavin Corkery | a859e8a | 2019-09-06 12:14:26 +0100 | [diff] [blame] | 38 | <option name="exclude-filter" value="com.android.tests.rollback.MultiUserRollbackTest" /> |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 39 | </test> |
| 40 | </configuration> |