mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
dev_scripts: add rebuild_all_uiauto
Add a script to rebuild UIAutomator APKs for all workloads that have them. This is usefull to ensure they all use the latest uiauto.arr after making changes to it.
This commit is contained in:
parent
2611579d29
commit
20f10f51e2
@ -21,3 +21,6 @@ Scripts
|
|||||||
:pylint: Runs pylint (must be installed) over wlauto with the correct settings
|
:pylint: Runs pylint (must be installed) over wlauto with the correct settings
|
||||||
for WA.
|
for WA.
|
||||||
|
|
||||||
|
:rebuild_all_uiauto: Rebuild UIAutomator APKs for workloads that have them. This
|
||||||
|
is useful to make sure they're all using the latest
|
||||||
|
uiauto.arr after the latter has been updated.
|
||||||
|
24
dev_scripts/rebuild_all_uiauto
Executable file
24
dev_scripts/rebuild_all_uiauto
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# This script rebuilds all uiauto APKs as well as the base uiauto.arr. This is
|
||||||
|
# useful when changes have been made to the base uiautomation classes and so
|
||||||
|
# all automation needs to be rebuilt to link against the updated uiauto.arr.
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
BASE_DIR="$SCRIPT_DIR/../wa/framework/uiauto"
|
||||||
|
WORKLOADS_DIR="$SCRIPT_DIR/../wa/workloads"
|
||||||
|
|
||||||
|
pushd $BASE_DIR > /dev/null
|
||||||
|
echo "building $(pwd)"
|
||||||
|
./build.sh
|
||||||
|
popd > /dev/null
|
||||||
|
|
||||||
|
for uiauto_dir in $(find $WORKLOADS_DIR -type d -name uiauto); do
|
||||||
|
pushd $uiauto_dir > /dev/null
|
||||||
|
if [ -f build.sh ]; then
|
||||||
|
echo "building $(pwd)"
|
||||||
|
./build.sh
|
||||||
|
fi
|
||||||
|
popd > /dev/null
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user