diff options
| author | Yuexi Ma <yuexima@google.com> | 2021-04-08 14:35:42 -0700 |
|---|---|---|
| committer | Yuexi Ma <yuexima@google.com> | 2021-04-08 16:45:50 -0700 |
| commit | 65ad0c5148f8c17ea775778d1d476e8e93460b9c (patch) | |
| tree | 9b5aeda8b8b38354d08896a7df3160e226a09b8c | |
| parent | 246e353133e757e600fbb0a6522eabc2128cc031 (diff) | |
| download | platform_test_app_compat_csuite-65ad0c5148f8c17ea775778d1d476e8e93460b9c.tar.gz platform_test_app_compat_csuite-65ad0c5148f8c17ea775778d1d476e8e93460b9c.tar.bz2 platform_test_app_compat_csuite-65ad0c5148f8c17ea775778d1d476e8e93460b9c.zip | |
Add a launch test target that does not install apps
Add a test target that performs launch tests on apps already installed on the devices. This will be used to test system apps that come with the device image.
Bug: 184659129
Test: csuite-tradefed run csuite-app-launch-no-install
Change-Id: I9bd10b46e1db92b9735071ddfb653d2f8670d60e
| -rw-r--r-- | test_targets/csuite-app-launch/Android.bp (renamed from tests/csuite-app-launch/Android.bp) | 0 | ||||
| -rw-r--r-- | test_targets/csuite-app-launch/template.xml (renamed from tests/csuite-app-launch/template.xml) | 0 | ||||
| -rw-r--r-- | test_targets/csuite-pre-installed-app-launch/Android.bp | 22 | ||||
| -rw-r--r-- | test_targets/csuite-pre-installed-app-launch/template.xml | 25 | ||||
| -rw-r--r-- | test_targets/csuite-system-app-launch/Android.bp (renamed from tests/csuite-system-app-launch/Android.bp) | 0 | ||||
| -rw-r--r-- | test_targets/csuite-system-app-launch/template.xml (renamed from tests/csuite-system-app-launch/template.xml) | 0 | ||||
| -rw-r--r-- | test_targets/csuite-test-package-launch/Android.bp (renamed from tests/csuite-test-package-launch/Android.bp) | 0 | ||||
| -rw-r--r-- | test_targets/csuite-test-package-launch/template.xml (renamed from tests/csuite-test-package-launch/template.xml) | 0 |
8 files changed, 47 insertions, 0 deletions
diff --git a/tests/csuite-app-launch/Android.bp b/test_targets/csuite-app-launch/Android.bp index 256d9f4..256d9f4 100644 --- a/tests/csuite-app-launch/Android.bp +++ b/test_targets/csuite-app-launch/Android.bp diff --git a/tests/csuite-app-launch/template.xml b/test_targets/csuite-app-launch/template.xml index 52c4611..52c4611 100644 --- a/tests/csuite-app-launch/template.xml +++ b/test_targets/csuite-app-launch/template.xml diff --git a/test_targets/csuite-pre-installed-app-launch/Android.bp b/test_targets/csuite-pre-installed-app-launch/Android.bp new file mode 100644 index 0000000..539306a --- /dev/null +++ b/test_targets/csuite-pre-installed-app-launch/Android.bp @@ -0,0 +1,22 @@ +// Copyright (C) 2021 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. + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +csuite_test { + name: "csuite-pre-installed-app-launch", + test_config_template: "template.xml" +} diff --git a/test_targets/csuite-pre-installed-app-launch/template.xml b/test_targets/csuite-pre-installed-app-launch/template.xml new file mode 100644 index 0000000..2d20306 --- /dev/null +++ b/test_targets/csuite-pre-installed-app-launch/template.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2021 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="Launches an app that exists on the device and check for crashes"> + <option name="package-name" value="{package}"/> + <target_preparer class="com.android.compatibility.targetprep.CheckGmsPreparer"/> + <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> + <option name="run-command" value="input keyevent KEYCODE_WAKEUP"/> + <option name="run-command" value="input keyevent KEYCODE_MENU"/> + <option name="run-command" value="input keyevent KEYCODE_HOME"/> + </target_preparer> + <test class="com.android.compatibility.testtype.AppLaunchTest"/> +</configuration>
\ No newline at end of file diff --git a/tests/csuite-system-app-launch/Android.bp b/test_targets/csuite-system-app-launch/Android.bp index 2514740..2514740 100644 --- a/tests/csuite-system-app-launch/Android.bp +++ b/test_targets/csuite-system-app-launch/Android.bp diff --git a/tests/csuite-system-app-launch/template.xml b/test_targets/csuite-system-app-launch/template.xml index 4d1181b..4d1181b 100644 --- a/tests/csuite-system-app-launch/template.xml +++ b/test_targets/csuite-system-app-launch/template.xml diff --git a/tests/csuite-test-package-launch/Android.bp b/test_targets/csuite-test-package-launch/Android.bp index 6cdd899..6cdd899 100644 --- a/tests/csuite-test-package-launch/Android.bp +++ b/test_targets/csuite-test-package-launch/Android.bp diff --git a/tests/csuite-test-package-launch/template.xml b/test_targets/csuite-test-package-launch/template.xml index 9c97fd3..9c97fd3 100644 --- a/tests/csuite-test-package-launch/template.xml +++ b/test_targets/csuite-test-package-launch/template.xml |
