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

886 Commits

Author SHA1 Message Date
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
Sergei Trofimov
386dede4a8 command: added support for sub-commands 2017-04-25 08:16:35 +01:00
Marc Bonnici
adaa83b6eb ReventUtils: Added ReventRecorder
Added `ReventRecorder` which is used to deal with the revent binary
on the device including deloyment, running commands and cleaning up
again.
2017-04-21 10:49:20 +01:00
Marc Bonnici
9308855f14 TargetDescriptor: Now adds parameters with default values.
Previously if a parameter was not specified via config it would not
be used during initialisation even if the parameter had a default
value. Now any parameters with default values are populated as necessary.
2017-04-21 10:49:20 +01:00
Marc Bonnici
6f0d18f921 Executor: Renamed device_manage to self.target_manager 2017-04-21 10:49:20 +01:00
Marc Bonnici
7815df59d4 Getters: Added support for finding revent files.
Revent files are automatically placed in the sub folder `revent_files` in the
workload directory when recording, therefore when trying to retrieve recordings
the getter now looks inside of the sub directory.
2017-04-21 10:49:20 +01:00
Marc Bonnici
2406d01672 Exec Control: Copied to WA3 and now uses default environment.
Moved execution decorators from wlauto to wa.
Modified to use a default environment if none is explicitly specified.
2017-04-20 14:27:25 +01:00
Marc Bonnici
cceecebfa7 Getters: Renamed import from __base_filepath to _base_filepath
Previously trying to use the `__base_filepath` import from inside the `Package`
class, resulted in the error "`_Package__base_filepath` is not defined."
2017-04-20 11:49:53 +01:00
Marc Bonnici
b7ed59edcf Execution: Corrected spelling 2017-04-20 11:49:53 +01:00
Marc Bonnici
a17e11251e Workload: Corrected doc string 2017-04-20 11:49:53 +01:00
Marc Bonnici
e60e31ff8e Imports: Updated Imports
Switch remaining wlauto imports to wa.
Added other missing imports.
2017-04-20 11:49:53 +01:00
setrofim
9899d1d51a Merge pull request #380 from setrofim/next
revent workload part 1
2017-04-06 16:39:09 +01:00
Sergei Trofimov
bddabbc56d revent workload part 1 2017-04-06 16:38:39 +01:00
setrofim
b8361f8e09 Merge pull request #373 from marcbonnici/TM
TM: Update and Refactor
2017-04-05 14:15:40 +01:00
Marc Bonnici
11323b6256 TM: Update and Refactor
TM has been updated and restructured to be clearer, including splitting off
assistant and creating a runtime parameter manager into their own files.
2017-04-05 11:51:29 +01:00
Marc Bonnici
519389859e Misc Utils: Fixed 'merge_dicts_simple'
Previously this function was ignoring the `other` parameter
and therefore not actually merging the two dictionaries.
2017-03-31 17:42:33 +01:00
setrofim
fc45b94b4e Merge pull request #376 from setrofim/next
Implementing UIAutomator-based Android workloads
2017-03-29 13:59:55 +01:00
Sergei Trofimov
18e7ffb826 workload: adding basic UIAutomator workload implementation
Added a workload type to handle workloads that have both an APK with an
application and associated automation JAR. Added benchmarkpi
implementation using using the new workload.
2017-03-29 09:55:40 +01:00
Sergei Trofimov
6fba05503d gitignore: add uiautomator generated files 2017-03-29 09:53:27 +01:00
Sergei Trofimov
fed454fc74 getters: fix some issues
- get_by_extension was comparing the expected extension to the entire
  tuple returned by os.path.splitext(), rather than just the extension
  part.
- UserDirectory getter was looking in the root dependencies directory,
  rather than the subdirectory for the owner.
- Filer getter was not handling non-existing paths properly.
2017-03-29 09:53:27 +01:00
Sergei Trofimov
4006e998c2 output: fix JobOutput instantiation
iteration and label parameters were being passed in the wrong order when
instantiating JobOutput.
2017-03-29 09:53:27 +01:00
Sergei Trofimov
0032e347fe Implemeting target assistants
- Workload's update_result stage has now been broken up into two parts:
  extract_results and update_output. This is to allow the assistant to
  pull output from the target in between the two stages.
- Updated assistant implementations for Linux and Android targets from
  the exisiting code.
- Extended target descriptor code to handle assistants and their
  parameters as well.
- Updated  the target manager to actually make use of the assistants.
2017-03-29 09:53:27 +01:00
setrofim
044aef2535 Merge pull request #374 from marcbonnici/misc_fixes
Misc fixes
2017-03-22 17:40:12 +00:00
Marc Bonnici
861db1cf38 Resource: Removed stray ':' 2017-03-22 16:10:06 +00:00
Marc Bonnici
07362a5d05 Core: Fixed config point validation
Previously a config point would try to validate the name attribute of the object
it was meant to be setting, rather than what it was meant to be setting it to.
2017-03-22 15:57:47 +00:00
Marc Bonnici
82acc16a7d Config Core: Corrected Spelling 2017-03-22 15:57:47 +00:00
Marc Bonnici
f175e63bc5 Parsers: Fixed spelling and error message 2017-03-22 15:57:47 +00:00
Marc Bonnici
5c01e84077 Parsers: Corrected parameter name. 2017-03-22 15:57:47 +00:00
Marc Bonnici
1043569170 Descriptor: Added import and corrected spelling 2017-03-22 15:57:47 +00:00
setrofim
b6faab6abc Merge pull request #371 from setrofim/next
Result processors, resource resolvers,  plus minor fixes
2017-03-22 15:54:50 +00:00
Sergei Trofimov
9c091f5339 Misc minor fixes. 2017-03-22 15:17:14 +00:00
Sergei Trofimov
ebf917a8a9 Added filer, http and user directory resource getters. 2017-03-22 15:16:37 +00:00
Sergei Trofimov
84c1fc2bcf Updated dhrystone to use the new resource resoultion mechanics. 2017-03-22 15:16:37 +00:00
Sergei Trofimov
15886ffa29 Streamline resource resolution mechanics. 2017-03-22 15:16:37 +00:00
Sergei Trofimov
1d0db35e04 Fix timstampts to be UTC. 2017-03-22 15:14:44 +00:00
Sergei Trofimov
31a5e5b5fe Implment output processing
- Implemented result processor infrastructured
- Corrected some status tracking issues (differed between states
  and output).
- Added "csv" and "status" result processors (these will be the default
  enabled).
2017-03-22 15:14:44 +00:00
Sergei Trofimov
ff990da96c Removing duplicate log line 2017-03-20 16:28:21 +00:00
setrofim
efaaf6b7c8 Merge pull request #370 from setrofim/next
Initial implementation of state tracking and output handling.
2017-03-20 14:45:30 +00:00
Sergei Trofimov
9ba126d46d dhrystone: fixed taskset_mask description. 2017-03-20 14:44:34 +00:00
Sergei Trofimov
1c4eef54d6 Tidying run_config config points 2017-03-20 14:40:13 +00:00
Sergei Trofimov
482a936639 Implement job skipping on abort 2017-03-17 17:29:30 +00:00
Sergei Trofimov
24ade78c36 The old Runner can die now; RIP 2017-03-17 17:10:30 +00:00
Sergei Trofimov
326ab827ed Implement Executor's postamble 2017-03-17 17:05:40 +00:00