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

828 Commits

Author SHA1 Message Date
Marc Bonnici
6571d012c2 BenchmarkPi: Added default package name list 2017-06-15 17:44:41 +01:00
Marc Bonnici
4523fb74b6 Workload: Fixes apk resolution when not present on host.
Previously apk resolution would fail if the application apk was not present on
device as this was used to retrieve information e.g. the package name. To work
around this, the resolution process now supports searching the device for either
a list of package names retrieved from the workload or as a parameter passed by
the user at runtime and if found on the device will be pulled to the host to
perform its analysis.
2017-06-15 17:44:41 +01:00
Marc Bonnici
0c3e1c2526 Workload: Renamed ApkHander to PackageHandler 2017-06-12 14:57:55 +01:00
Marc Bonnici
037f0aac41 Resource: Add support for matching apks on package name 2017-06-12 14:57:55 +01:00
Marc Bonnici
238ae18491 Resource: Added support for uiautomator apks
As uiautomator2 uses apk for instrumented tests this allows for distinguishing
between a normal application apk and a uiauto test apk based on the apks package
name.
2017-06-12 14:57:55 +01:00
Marc Bonnici
c0f5d36b9b PluginCache: Add name to duplicate source error 2017-06-12 14:57:55 +01:00
Marc Bonnici
ef3b80d296 Benchmarkpi: Updated to uiautomator2 2017-06-12 14:57:55 +01:00
Marc Bonnici
b84550d981 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.
2017-06-12 14:57:54 +01:00
Marc Bonnici
cfcbaed2a3 .gitignore: Updated for new uiautomation build system 2017-06-12 14:57:54 +01:00
Marc Bonnici
b9b237f288 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-06-12 14:57:54 +01:00
marcbonnici
3d07cbd0b7 Merge pull request #394 from setrofim/next
utils/trace_cmd: add parsers for more sched events
2017-05-31 10:50:17 +01:00
Sergei Trofimov
f0d5ff2309 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:47:50 +01:00
marcbonnici
9190572614 Merge pull request #391 from setrofim/next
trace-cmd: Add parser for text trace.
2017-05-26 16:07:13 +01:00
Sergei Trofimov
8e3ae321a2 trace-cmd: Add parser for text trace.
This re-adds the parser for the trace-cmd text trace, after it got
dropped along with wlauto sub-tree. There are minor differences from the
old WA2 parser.

- Changed to work with devlib start/stop markers
- TraceCmdTrace renamed to TraceCmdParser
- The file path is now passed to the parse() method rather than
  on creation.
- detect whether markers are present in the trace and do not filter
  if they aren't
2017-05-25 11:32:42 +01:00
marcbonnici
7bd55db6e4 Merge pull request #390 from setrofim/next
idle: do not attempt to turn off screen on Linux
2017-05-15 10:58:35 +01:00
Sergei Trofimov
ac86304f35 idle: do not attempt to turn off screen on Linux
In the teardown, if screen_off was not set, only ensure that the
screen is on for Android targets.
2017-05-15 10:54:13 +01:00
marcbonnici
1da244552f Merge pull request #389 from setrofim/next
idle: makes sure screen is off if was off before
2017-05-15 10:48:19 +01:00
Sergei Trofimov
f1804300d4 idle: makes sure screen is off if was off before
In the case where the device screen was off prior to the execution of
the workload, but the user did not set screen_off, the screen will be
turned on during the setup. Previously, it would remain on for the
subsequent execution, however the correct behavior is for the workload
to always restore the screen to its previous state.
2017-05-15 10:46:21 +01:00
marcbonnici
7806f2e47b Merge pull request #388 from setrofim/next
Add idle workload
2017-05-15 10:37:45 +01:00
Sergei Trofimov
e7290c3f14 idle: Add idle workload.
Added a workload that idles on target. For Android targets, there are
options for turning off the screen and/or Android services while idling.
2017-05-15 10:32:36 +01:00
Sergei Trofimov
04253b28c2 Fix typo. 2017-05-12 11:11:40 +01:00
marcbonnici
7f94c695f3 Merge pull request #387 from setrofim/next
Add trace-cmd instrument
2017-05-12 10:53:09 +01:00
Sergei Trofimov
e68d4fa2d1 trace-cmd: adding an instrument to collect kernel trace
This is the re-implementation of WA2's trace-cmd instrument that
utilizes devlib's ftrace collector. It allows collecting a trace of
kernel events.
2017-05-12 10:42:33 +01:00
Sergei Trofimov
83bf7e1510 plugin_cache: adding missing cfg_points definition 2017-05-12 09:28:59 +01:00
Sergei Trofimov
53d29bf3cf plugin: removing virtual referencies from meta
Remove referencies to "virtual" methods (that no longer exist) from the
plugin metaclass.
2017-05-11 09:57:38 +01:00
marcbonnici
4015e1e595 Merge pull request #385 from setrofim/next
Tidy pt. 2
2017-04-28 10:28:04 +01:00
Sergei Trofimov
2bbe300dc2 tests: moved out of wa package
Tests now reside in the root of the repo, rather than in wa package.
This means they will no longer packaged and installed in user
deployments (they're only useful for developers).
2017-04-27 17:36:44 +01:00
Sergei Trofimov
6a5dda9bfb wa: removing log import from top-level __init__.py
This import no longer exists. Should be imported from utils instead.
2017-04-27 17:35:42 +01:00
Sergei Trofimov
2dd56990bb tests: removing stale test file
This file was never used (due to being incorrectly named) and contains
references to APIs that no longer exit.
2017-04-27 17:30:21 +01:00
marcbonnici
c11a212674 Merge pull request #384 from setrofim/next
Fixes and tidy.
2017-04-27 09:05:51 +01:00
Sergei Trofimov
55621e71cf scripts: remove legacy WA2 scripts
These scripts are aliases for WA's commands. The have existed since
before commands were introduce into WA, and have been depricated
thereafter.
2017-04-27 09:01:22 +01:00
Sergei Trofimov
df96759608 setup.py: correct package name 2017-04-27 09:01:22 +01:00
Sergei Trofimov
4f33c98d0b Move misc instrumentation
Moved form a directory into a properly named file.
2017-04-27 09:01:21 +01:00
Sergei Trofimov
d96febb035 Remove execution and runner tests.
That part of the framework has been completely rewritting so the old
tests no longer make sense.
2017-04-27 09:01:20 +01:00
Sergei Trofimov
1b2373f5a5 Fix utils tests
- added missing import to types
- removed tests for TreeNode (no longer exists)
2017-04-27 09:01:20 +01:00
Sergei Trofimov
a147fa3350 Fix Plugin and tests
WA2 Extensions had two features that have proven more trouble then they
are worth, and so they were removed from WA3 Plugins:

- Virtual methods (methods that automatically invoked super's version
  without having to explicitly do that).
- It used to be possible to use strings or tuples to specify parameters
  for extensions, and those were automatically "promoted" to Parameter
  instances by the metaclass. This feature was never actually used.

This commit cleans up residual code for these features from Plugin
implementations and removes tests that used to exercise them.
2017-04-27 09:01:19 +01:00
Sergei Trofimov
b7710b40af tests: fix config tests
- correct the import for merge_config_values fuction
- fixed expected result for set-with-list case; sequence merge will
  produce unique values.
- check that the merge result type matches the other's type
2017-04-27 09:01:18 +01:00
Sergei Trofimov
4d964ccb2f commands: renaming record.py to revent.py
This file contians implementations of both record and replay commands
for revent so the old name was misleading.
2017-04-27 09:01:18 +01:00
Sergei Trofimov
867972f742 removing old files
Removing old and unsused files:

- wa/framework/old_output.py: superseded by output.py in the same dir
- the entire wlauto tree: replaced by wa/ tree; it's stale by now
  anyway.
- log.py and actor.py from framework/ as neither is used.
2017-04-27 09:01:17 +01:00
Sergei Trofimov
0e5f7eb724 tests: update old import from wlauto
exec_control tests were still importing from wlauto rather than wa. This
rectifies that.
2017-04-26 14:27:26 +01:00
Sergei Trofimov
f8d5a3e358 target/descriptor: fix assistant params handling
assistant_params are now handled consistently with the other kinds of
params in TargetDescription, and they are now part of the default config
generated.
2017-04-26 13:56:12 +01:00
setrofim
63b01e29ee Merge pull request #381 from marcbonnici/revent
Revent & Misc Fixes
2017-04-25 10:39:41 +01:00
Marc Bonnici
16a0e84469 Runner: Now finalizes all completed workloads at the end of a run.
Previously when finalizing a run the workloads themselves were not included.
This ensures that each completed workloads finalize method is called.
2017-04-25 10:35:02 +01:00
Marc Bonnici
16f2bc69f0 Replay Command: Added a replay command
The replay command can be used to replay an revent recording on a device.
2017-04-25 10:35:02 +01:00
Marc Bonnici
311ac1b803 Record Command: Updated record command
Updated the record command to allow revent recordings to be made.
They can be performed in 3 ways; the default is a standard recording
as in WA2, it can start a specified package before starting the
recording or a workload can be specified which launches the workload
and prompts the user to record each stage, naming and storing the recordings
appropriately.
2017-04-25 10:35:02 +01:00
Marc Bonnici
3ad0c67c63 AngrybirdsRio: Added revent workload 2017-04-25 10:35:02 +01:00
Marc Bonnici
4b84a68038 Workload: Added ReventWorkload and updated ReventGUI
Added a new ReventWorkload as a base for revent based workloads.
Updated ReventGui to use `revent_recorder` and now uses `target.model`
instead of `taget.name`.
2017-04-25 10:35:02 +01:00
marcbonnici
1bc71ed60b Merge pull request #382 from setrofim/subcommands
Add create agenda command
2017-04-25 10:08:03 +01:00
Sergei Trofimov
8a9ca6fdfe commands: added create ageanda command
Added the crate command with a subcommand to generate an agenda based on
a list of plugins.
2017-04-25 08:16:36 +01:00
Sergei Trofimov
f1eeff726f TargetDescription: generate default config
Added a method to TargetDescrition to generate a dict with the default
config for that description.
2017-04-25 08:16:36 +01:00