summaryrefslogtreecommitdiff
path: root/adb-push-host.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'adb-push-host.yaml')
-rw-r--r--adb-push-host.yaml18
1 files changed, 17 insertions, 1 deletions
diff --git a/adb-push-host.yaml b/adb-push-host.yaml
index f17f16c..472a10d 100644
--- a/adb-push-host.yaml
+++ b/adb-push-host.yaml
@@ -15,7 +15,7 @@ metadata:
run:
steps:
- - apt-get install -y git android-tools-adb time
+ - apt-get install -y git android-tools-adb time zip
- git clone git://git.linaro.org/qa/android-apk-automation.git
- lava-wait adb-push-send-ip
- IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
@@ -31,6 +31,22 @@ run:
- done
- echo "-------------group end:$(date)--------------------" >> /tmp/adb_push_time.txt
- fi
+ - zip -r android-apk-automation.zip android-apk-automation
+ - echo "-------------zip group start:$(date)--------------------">> /tmp/adb_push_time.txt
+ - for i in {1..10}; do
+ - /usr/bin/time -f "\t%E real,\t%U user,\t%S sys" -a -o /tmp/adb_push_time.txt adb push android-apk-automation.zip /data/local/tmp/android-apk-automation.zip
+ - done
+ - echo "-------------zip group end:$(date)--------------------" >> /tmp/adb_push_time.txt
+ - echo "-------------cp zip group start:$(date)--------------------">> /tmp/adb_push_time.txt
+ - for i in {1..10}; do
+ - /usr/bin/time -f "\t%E real,\t%U user,\t%S sys" -a -o /tmp/adb_push_time.txt adb shell cp /data/local/tmp/android-apk-automation.zip /data/local/tmp/android-apk-automation_${i}.zip
+ - done
+ - echo "-------------cp zip group end:$(date)--------------------" >> /tmp/adb_push_time.txt
+ - echo "-------------cp dir group start:$(date)--------------------">> /tmp/adb_push_time.txt
+ - for i in {1..10}; do
+ - /usr/bin/time -f "\t%E real,\t%U user,\t%S sys" -a -o /tmp/adb_push_time.txt adb shell cp -r /data/local/tmp/android-apk-automation /data/local/tmp/android-apk-automation_${i}
+ - done
+ - echo "-------------cp dir group end:$(date)--------------------" >> /tmp/adb_push_time.txt
- adb shell dmesg > /tmp/dmesg.log
- if [ -f /tmp/adb_push_time.txt ]; then lava-test-run-attach /tmp/adb_push_time.txt text/plain; fi
- if [ -f /tmp/dmesg.log ]; then lava-test-run-attach /tmp/dmesg.log text/plain; fi