aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuexi Ma <yuexima@google.com>2021-04-09 11:00:28 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-09 11:00:28 +0000
commitbee9686969829da92ca7f28dc2d040b372665f1c (patch)
tree9b5aeda8b8b38354d08896a7df3160e226a09b8c
parente3f75a4abf900d972786c2848d6e99040c1898a8 (diff)
parent8c90ed26c43020a6ac11b75e58287978f4c17278 (diff)
downloadcsuite-bee9686969829da92ca7f28dc2d040b372665f1c.tar.gz
Add a launch test target that does not install apps am: 65ad0c5148 am: deb67b5ecf am: 8c90ed26c4
Original change: https://android-review.googlesource.com/c/platform/test/app_compat/csuite/+/1670825 Change-Id: Id4e5999bd251f272ecbd2d62dea9b3090f56ee23
-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.bp22
-rw-r--r--test_targets/csuite-pre-installed-app-launch/template.xml25
-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