| metadata: |
| name: art-microbenchmarks |
| format: "Lava-Test-Shell Test Definition 1.0" |
| description: "The script configures the Nexus 9 and 5X for low variance and runs the test" |
| maintainer: |
| - vishal.bhoj@linaro.org |
| os: |
| - ubuntu |
| devices: |
| - kvm |
| scope: |
| - perfomance |
| |
| install: |
| steps: |
| - ./common/scripts/install-deps.sh $DEPENDENCIES $JDK $JRE |
| git-repos: |
| - https://android-git.linaro.org/git/linaro/art-testing.git |
| |
| params: |
| DEPENDENCIES: "android-tools-adb android-tools-fastboot libc6:i386 libncurses5:i386 libstdc++6:i386 python3 binutils" |
| JDK: "default-jdk" |
| JRE: "default-jre" |
| TEST_NAME: "art-test" |
| TARGET_DEVICE: "nexus9" |
| ITERATIONS: 10 |
| MODE: 64 |
| CORE: "default" |
| |
| run: |
| steps: |
| - lava-wait $TEST_NAME-send-ip |
| - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt` |
| - if [ $IPADDR != "_MISSING_" ] |
| - then |
| - if [ -f ./android/scripts/configure-$TARGET_DEVICE-for-benchmarks.sh ] |
| - then |
| - . ./android/scripts/configure-$TARGET_DEVICE-for-benchmarks.sh $CORE || true |
| - fi |
| - ./art-testing/run.py -t $IPADDR --iterations $ITERATIONS --mode $MODE --output-pkl $PWD/art-microbenchmarks.pkl --output-json $PWD/art-microbenchmarks.json | tee logs.txt |
| - . ./android/scripts/parse-ubenchmarks-results.sh logs.txt |
| - if [ -f art-microbenchmarks.pkl ]; then lava-test-run-attach art-microbenchmarks.pkl; fi |
| - if [ -f art-microbenchmarks.json ]; then lava-test-run-attach art-microbenchmarks.json; fi |
| - echo "processes running" |
| - ps |
| - fi |
| - adb -s $IPADDR shell start |
| - sleep 30 |
| - adb -s $IPADDR shell dumpsys battery |
| - lava-sync $TEST_NAME-finished |
| |