mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-19 19:42:17 +02:00
Emulator tooling to allow for robolectric tests
This commit is contained in:
parent
7c4878bcff
commit
dd4e7aa52c
19
tools/quality-check/adb_shell_all_emulators.sh
Executable file
19
tools/quality-check/adb_shell_all_emulators.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This attempts to send an adb shell command to all your emulators (on Ubuntu 18.04.01 LTS at least...)
|
||||
|
||||
if [ "$1" == "" ]; then
|
||||
echo "You must provide the adb shell command to execute as the argument"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
killall -9 adb
|
||||
adb devices -l > /dev/null
|
||||
sleep 2
|
||||
adb devices -l > /dev/null
|
||||
sleep 2
|
||||
|
||||
for EMU_ID in `adb devices -l | grep emulator | cut -d' ' -f1`; do
|
||||
echo "adb -s $EMU_ID shell $1 $2 $3 $4 $5 $6"
|
||||
adb -s $EMU_ID shell $1 $2 $3 $4 $5 $6
|
||||
done
|
4
tools/quality-check/disable_animation_all_emulators.sh
Executable file
4
tools/quality-check/disable_animation_all_emulators.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
adb_shell_all_emulators.sh settings put global window_animation_scale 0
|
||||
adb_shell_all_emulators.sh settings put global transition_animation_scale 0
|
||||
adb_shell_all_emulators.sh settings put global animator_duration_scale 0
|
Loading…
Reference in New Issue
Block a user