mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-01 19:02:31 +01:00
doc: Make config listsing a consistent style
This commit is contained in:
@@ -237,52 +237,43 @@ All ApkWorkloads have parameters that affect the way in which APK files are
|
||||
resolved, ``exact_abi``, ``force_install`` and ``prefer_host_package``. Their
|
||||
exact behaviours are outlined below.
|
||||
|
||||
.. confval:: exact_abi
|
||||
:exact_abi: If this setting is enabled WA's resource resolvers will look for the
|
||||
devices ABI with any native code present in the apk. By default this setting
|
||||
is disabled since most apks will work across all devices. You may wish to
|
||||
enable this feature when working with devices that support multiple ABI's
|
||||
(like 64-bit devices that can run 32-bit APK files) and are specifically
|
||||
trying to test one or the other.
|
||||
|
||||
If this setting is enabled WA's resource resolvers will look for the devices
|
||||
ABI with any native code present in the apk. By default this setting is
|
||||
disabled since most apks will work across all devices. You may wish to enable
|
||||
this feature when working with devices that support multiple ABI's (like
|
||||
64-bit devices that can run 32-bit APK files) and are specifically trying to
|
||||
test one or the other.
|
||||
:force_install: If this setting is enabled WA will *always* use the APK file on
|
||||
the host, and re-install it on every iteration. If there is no APK on the
|
||||
host that is a suitable version and/or ABI for the workload WA will error
|
||||
when ``force_install`` is enabled.
|
||||
|
||||
.. confval:: force_install
|
||||
:prefer_host_package: This parameter is used to specify a preference over host
|
||||
or target versions of the app. When set to ``True`` WA will prefer the host
|
||||
side version of the APK. It will check if the host has the APK and whether it
|
||||
meets the version requirements of the workload. If so, and the target also
|
||||
already has same version nothing will be done, otherwise WA will overwrite
|
||||
the targets installed application with the host version. If the host is
|
||||
missing the APK or it does not meet version requirements WA will fall back to
|
||||
the app on the target if present and is a suitable version. When this
|
||||
parameter is set to ``False`` WA will prefer to use the version already on
|
||||
the target if it meets the workloads version requirements. If it does not it
|
||||
will fall back to searching the host for the correct version. In both modes
|
||||
if neither the host nor target have a suitable version, WA will produce and
|
||||
error and will not run the workload.
|
||||
|
||||
If this setting is enabled WA will *always* use the APK file on the host, and
|
||||
re-install it on every iteration. If there is no APK on the host that is a
|
||||
suitable version and/or ABI for the workload WA will error when
|
||||
``force_install`` is enabled.
|
||||
|
||||
.. confval:: prefer_host_package
|
||||
|
||||
This parameter is used to specify a preference over host or target versions
|
||||
of the app. When set to ``True`` WA will prefer the host side version of the
|
||||
APK. It will check if the host has the APK and whether it meets the version
|
||||
requirements of the workload. If so, and the target also already has same
|
||||
version nothing will be done, otherwise WA will overwrite the targets
|
||||
installed application with the host version. If the host is missing the APK
|
||||
or it does not meet version requirements WA will fall back to the app on the
|
||||
target if present and is a suitable version. When this parameter is set to
|
||||
``False`` WA will prefer to use the version already on the target if it meets
|
||||
the workloads version requirements. If it does not it will fall back to
|
||||
searching the host for the correct version. In both modes if neither the host
|
||||
nor target have a suitable version, WA will produce and error and will not
|
||||
run the workload.
|
||||
|
||||
.. confval:: version
|
||||
|
||||
This parameter is used to specify which version of uiautomation for the
|
||||
workload is used. In some workloads e.g. ``geekbench`` multiple versions with
|
||||
drastically different UI's are supported. A APKs version will be
|
||||
:version: This parameter is used to specify which version of uiautomation for
|
||||
the workload is used. In some workloads e.g. ``geekbench`` multiple versions
|
||||
with drastically different UI's are supported. A APKs version will be
|
||||
automatically extracted therefore it is possible to have multiple apks for
|
||||
different versions of a workload present on the host and select between which
|
||||
is used for a particular job by specifying the relevant version in your
|
||||
:ref:`agenda <agenda>`.
|
||||
|
||||
.. confval:: variant_name
|
||||
|
||||
Some workloads use variants of APK files, this is usually the case with web
|
||||
browser APK files, these work in exactly the same way as the version.
|
||||
:variant_name: Some workloads use variants of APK files, this is usually the
|
||||
case with web browser APK files, these work in exactly the same way as the
|
||||
version.
|
||||
|
||||
|
||||
IDs and Labels
|
||||
|
@@ -34,24 +34,18 @@ The device interface may be configured through ``device_config`` setting, who's
|
||||
value is a ``dict`` mapping setting names to their values. Some of the most
|
||||
common parameters you might want to change are outlined below.
|
||||
|
||||
.. confval:: device
|
||||
|
||||
If you have multiple Android devices connected to the host machine, you will
|
||||
:device: If you have multiple Android devices connected to the host machine, you will
|
||||
need to set this to indicate to WA which device you want it to use. The will
|
||||
be the adb name the is displayed when running ``adb devices``
|
||||
|
||||
.. confval:: working_directory
|
||||
|
||||
WA needs a "working" directory on the device which it will use for collecting
|
||||
:working_directory: WA needs a "working" directory on the device which it will use for collecting
|
||||
traces, caching assets it pushes to the device, etc. By default, it will
|
||||
create one under ``/sdcard`` which should be mapped and writable on standard
|
||||
Android builds. If this is not the case for your device, you will need to
|
||||
specify an alternative working directory (e.g. under ``/data/local``).
|
||||
|
||||
|
||||
.. confval:: modules
|
||||
|
||||
A list of additional modules to be installed for the target. Devlib
|
||||
:modules: A list of additional modules to be installed for the target. Devlib
|
||||
implements functionality for particular subsystems as modules. A number of
|
||||
"default" modules (e.g. for cpufreq subsystem) are loaded automatically,
|
||||
unless explicitly disabled. If additional modules need to be loaded, they
|
||||
@@ -62,9 +56,7 @@ common parameters you might want to change are outlined below.
|
||||
|
||||
.. _core-names:
|
||||
|
||||
.. confval:: core_names
|
||||
|
||||
``core_names`` should be a list of core names matching the order in which
|
||||
:core_names: ``core_names`` should be a list of core names matching the order in which
|
||||
they are exposed in sysfs. For example, Arm TC2 SoC is a 2x3 big.LITTLE
|
||||
system; its core_names would be ``['a7', 'a7', 'a7', 'a15', 'a15']``,
|
||||
indicating that cpu0-cpu2 in cpufreq sysfs structure are A7's and cpu3 and
|
||||
@@ -187,31 +179,21 @@ value is a ``dict`` mapping setting names to their values. Some of the most
|
||||
common parameters you might want to change are outlined below.
|
||||
|
||||
|
||||
.. confval:: host
|
||||
:host: This should be either the the DNS name or IP address of the device.
|
||||
|
||||
This should be either the the DNS name or IP address of the device.
|
||||
|
||||
.. confval:: username
|
||||
|
||||
The login name of the user on the device that WA will use. This user should
|
||||
:username: The login name of the user on the device that WA will use. This user should
|
||||
have a home directory (unless an alternative working directory is specified
|
||||
using ``working_directory`` config -- see below), and, for full
|
||||
functionality, the user should have sudo rights (WA will be able to use
|
||||
sudo-less acounts but some instruments or workload may not work).
|
||||
|
||||
.. confval:: password
|
||||
|
||||
Password for the account on the device. Either this of a ``keyfile`` (see
|
||||
:password: Password for the account on the device. Either this of a ``keyfile`` (see
|
||||
below) must be specified.
|
||||
|
||||
.. confval:: keyfile
|
||||
|
||||
If key-based authentication is used, this may be used to specify the SSH identity
|
||||
:keyfile: If key-based authentication is used, this may be used to specify the SSH identity
|
||||
file instead of the password.
|
||||
|
||||
.. confval:: property_files
|
||||
|
||||
This is a list of paths that will be pulled for each WA run into the __meta
|
||||
:property_files: This is a list of paths that will be pulled for each WA run into the __meta
|
||||
subdirectory in the results. The intention is to collect meta-data about the
|
||||
device that may aid in reporducing the results later. The paths specified do
|
||||
not have to exist on the device (they will be ignored if they do not). The
|
||||
@@ -261,9 +243,7 @@ subset of functionality can be performed.
|
||||
In order to distinguish between the two connections some of the android specific
|
||||
configuration has been renamed to reflect the destination.
|
||||
|
||||
.. confval:: android_working_directory
|
||||
|
||||
WA needs a "working" directory on the device which it will use for collecting
|
||||
:android_working_directory: WA needs a "working" directory on the device which it will use for collecting
|
||||
traces, caching assets it pushes to the device, etc. By default, it will
|
||||
create one under ``/sdcard`` which should be mapped and writable on standard
|
||||
Android builds. If this is not the case for your device, you will need to
|
||||
|
Reference in New Issue
Block a user