1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00
Commit Graph

1092 Commits

Author SHA1 Message Date
Sergei Trofimov
0694ab6792 LinuxDevice: rename get_number_of_online_cpus arg
Renamed "c" to "core", as that gets passed as a keyword argument inside
get_runtime_parameters().
2017-06-01 14:29:19 +01:00
setrofim
2fd7614d97 Merge pull request #392 from marcbonnici/uiauto2
Upgrading to UiAutomator2
2017-05-31 11:22:45 +01:00
marcbonnici
c75c102cd2 Merge pull request #393 from setrofim/master
utils/trace_cmd: add parsers for more sched events
2017-05-31 10:48:14 +01:00
Sergei Trofimov
c86ce64408 utils/trace_cmd: add parsers for more sched events
Added parsers for sched_wakeup(_new) and sched_stat_* events that have
non-standard text.
2017-05-31 10:42:55 +01:00
Marc Bonnici
d6909c5e6a PowerUtils: Pylint Fix 2017-05-31 10:36:38 +01:00
Marc Bonnici
55e140f20a Caffeinemark: Updated to Uiautomator2 2017-05-31 10:36:38 +01:00
Marc Bonnici
0c7a7e4dca BenchmarkPi: Updated to uiautomator2 2017-05-31 10:36:38 +01:00
Marc Bonnici
a7ed00d9ed Googleslides: Add workaround for opening navigation drawer
On Android N running under the instrumentation uiautomator appears to have
trouble retrieving the root node for the home screen of google slides. Therefore
we open the navigation drawer via a swipe which allows the node to be found again.
2017-05-31 10:36:38 +01:00
Marc Bonnici
89aa3e1208 GoogleSlides: Updated to uiautomator2
The latest version of uiautomator2 seems to have an issue with google slides not
being able to interact with any elements on the slide therefore we are using a
slightly older version which doesn't have this issue.
2017-05-31 10:36:38 +01:00
Marc Bonnici
f33fd97705 Videostreaming: Updated to uiautomator2 2017-05-31 10:36:38 +01:00
Marc Bonnici
bf598d1873 Camerarecord: Updated to only use root if device is rooted.
Previously the workload would always try and use root to pull framestats file
causing it to fail on unrooted devices.
2017-05-31 10:36:38 +01:00
Marc Bonnici
c094a47f12 Camerarecord: Updated to uiautomator2 2017-05-31 10:36:38 +01:00
Marc Bonnici
6dab2b48ab Cameracapture: Updated to uiautomator2 2017-05-31 10:36:38 +01:00
Marc Bonnici
1809def83f Peacekeeper: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
1158c62c55 Appshare: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
d13defe242 Glbenchmark: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
a9c5ab9bc8 Facebook: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
27af97b795 Quadrant: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
a0a189044e Applaunch: Updated to Uiautomator2
Certain configurations of this workload requires root and therefore on some
android devices, this will prompt to grant the app su permissions by default. To
ensure this does not interfere with the run, ensure that either, re-request
permission after reinstall/upgrade is not selected or grant access by default.
2017-05-31 10:36:37 +01:00
Marc Bonnici
eca6c10a75 Andebench: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
01efbe1807 Googlephotos: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
81f7f92b84 real_linpack: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
95c98fd458 Antutu: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
428abfb6a6 Geekbench: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
a8bf8458ec Youtube: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
862eeadb39 Vellamo: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
ec66e1d166 Sqlitebm: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
3e4ffa8cd5 Smartbench: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
dc14e6ed11 Linpack: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
47ccae1a6b Googleplaybooks: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
a2eef179ef Gmail: Updated to work on new app version. 2017-05-31 10:36:36 +01:00
Marc Bonnici
7eb36b959b Gmail: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
b5563113b1 Cfbench: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
5720d3f214 Androbench: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
5b82b90939 Skype: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
bfcb829ab0 AdobeReader: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
70f646f87d AndroidWorkload: Added unchangeable android permissions
Some android permissions are categorized as 'unchangeable' so we don't need to
try and set them.
2017-05-31 10:36:35 +01:00
Marc Bonnici
3f03dec7af CreateCommand: Updated to support new build system
Using the `android` command to create a new project has been deprecated in favour
of using Android Studio. To avoid this constraint a template project has been added
and this is simply duplicated with the relevant files populated when creating a new
project.
2017-05-31 10:36:35 +01:00
Marc Bonnici
076772da4d Uiautomator: Upgraded uiautomator base classes to Uiauto2
Uiautomator1 has been deprecated, therefore the uiautomation base classes have
been upgraded to use uiautomator2 and the new gradle build system.
Altered to retrieve `package_name` rather than `package` as per the previous commit.
2017-05-30 17:26:14 +01:00
Marc Bonnici
138c95745e AndroidWorkload: Renamed package parameter to package_name
Using the new instrumental based testing method, `package` is a reserved
parameter and is not passed to the workload correctly.
2017-05-30 12:06:50 +01:00
Marc Bonnici
f517e6c4da .gitignore: Updated for new uiauto2 gradle based builds 2017-05-30 12:06:50 +01:00
Marc Bonnici
8125c3e0a2 Android Workload: Updated to install and use Uiautomator 2 tests.
The new method of using uiautomation 2 is by using instrumented apk files rather
than JAR files. This commit updates the base workload has been updated to
install/uninstall the new uiautomation APK files and to invoke the relevant
instrumentation.
2017-05-30 12:06:50 +01:00
Marc Bonnici
81bdc7251b AndroidDevice: Pylint Fix 2017-05-30 12:06:36 +01:00
Marc Bonnici
b948d28c62 ResourceGetters: Added support for finding uiautoapk files.
Also ensures to check for a `.` to signify the start of a file extension to prevent
extensions with the same ending being mixed up.
2017-05-23 11:16:18 +01:00
Marc Bonnici
bc6af25366 AndroidResource: Add a UiautoApk resource type.
When moving to Uiautomation 2, tests are now complied into apk files rather than
jar files. To avoid conflicts with regular workload apks a new resource type is
added to retrieve the test files which will be renamed to have the extension
.uiautoapk
2017-05-23 11:15:55 +01:00
Marc Bonnici
5d8305cfdc Android Device: Add force flag to install_apk
A force flag has been added to the `install_apk` method which
ignores the check that the specified file is an apk. This is to support
the new UiAutomation Apk which have been given the extention .uiautoapk.
2017-05-17 13:47:39 +01:00
setrofim
e038fb924a Merge pull request #386 from marcbonnici/broadcast
Update media broadcast to work with android N
2017-05-12 08:01:04 +01:00
Marc Bonnici
51c92cb2f5 Workloads: Updated to use new media refresh method
Updated the base android workload and google photos workload to pass a list of
updated files rather than their directory.
2017-05-11 18:17:38 +01:00
Marc Bonnici
e98b653b3e AndroidDevice: Add refresh_device_files method
Adds a method to determine the appropriate method of triggering a media refresh
of a given list of file based on the devices android version and root status. If
a device is running android marshmallow and below or has root, trigger a refresh
of the files containing folder otherwise trigger a refresh of each individual
file.
2017-05-11 18:17:38 +01:00
Marc Bonnici
b1da0fe958 AndroidDevice: Add a common_base_path utility function
Adds a utility function to determine the lowest common base path of a passed list
of files.
2017-05-11 18:17:29 +01:00