aboutsummaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/linaro-art-microbenchmarks/baseline-builders.yaml.inc26
-rw-r--r--android/linaro-art-microbenchmarks/builders.sh60
-rw-r--r--android/linaro-art-microbenchmarks/builders.yaml.inc14
3 files changed, 100 insertions, 0 deletions
diff --git a/android/linaro-art-microbenchmarks/baseline-builders.yaml.inc b/android/linaro-art-microbenchmarks/baseline-builders.yaml.inc
new file mode 100644
index 0000000000..70a9d9b267
--- /dev/null
+++ b/android/linaro-art-microbenchmarks/baseline-builders.yaml.inc
@@ -0,0 +1,26 @@
+ - linaro-publish-token
+ - shell:
+ !include-raw:
+ - android/linaro-art-microbenchmarks/builders.sh
+ - trigger-builds:
+ - project: 'post-build-lava'
+ property-file: post_build_lava_parameters
+ block: true
+ - shell: |
+ sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/plain/android/nexus5x/microbenchmarks_64.yaml#g" ${WORKSPACE}/post_build_lava_parameters
+ - trigger-builds:
+ - project: 'post-build-lava'
+ property-file: post_build_lava_parameters
+ block: true
+ - shell: |
+ sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/plain/android/pixel/microbenchmarks_64.yaml#g" ${WORKSPACE}/post_build_lava_parameters
+ - trigger-builds:
+ - project: 'post-build-lava'
+ property-file: post_build_lava_parameters
+ block: true
+ - shell: |
+ sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/plain/android/pixel/microbenchmarks_32.yaml#g" ${WORKSPACE}/post_build_lava_parameters
+ - trigger-builds:
+ - project: 'post-build-lava'
+ property-file: post_build_lava_parameters
+ block: true
diff --git a/android/linaro-art-microbenchmarks/builders.sh b/android/linaro-art-microbenchmarks/builders.sh
new file mode 100644
index 0000000000..85fe29c5a9
--- /dev/null
+++ b/android/linaro-art-microbenchmarks/builders.sh
@@ -0,0 +1,60 @@
+#!/bin/bash -xe
+
+# Build scripts
+ANDROID_BUILD_DIR="${HOME}/srv/${JOB_NAME}/android"
+ART_BUILD_SCRIPTS_DIR="${WORKSPACE}/art-build-scripts"
+git clone https://android-git.linaro.org/git/linaro-art/art-build-scripts.git ${ART_BUILD_SCRIPTS_DIR}
+
+cd ${ART_BUILD_SCRIPTS_DIR}/jenkins
+# Port forwarding magic to have access to Nexus devices
+source /home/buildslave/srv/nexus-config
+export ANDROID_SERIAL=${BULLHEAD}
+./setup_adb.sh
+./setup_host.sh
+./setup_android.sh
+
+cd ${ANDROID_BUILD_DIR}
+alias python=python3
+perl scripts/jenkins/test_launcher.pl \
+ scripts/benchmarks/benchmarks_run_target.sh --skip-run true
+
+tar -cJf test-arm-fs.txz out/host/linux-x86/bin/ out/host/linux-x86/framework/ out/target/product/arm_krait/data/ out/target/product/arm_krait/system/
+tar -cJf test-armv8-fs.txz out/host/linux-x86/bin/ out/host/linux-x86/framework/ out/target/product/armv8/data/ out/target/product/armv8/system/
+
+mkdir -p pub
+mv ${WORKSPACE}/*.xml *.txz pub/
+PUB_DEST=${PUB_DEST:-/android/${JOB_NAME}/${BUILD_NUMBER}}
+
+# Publish
+test -d ${HOME}/bin || mkdir ${HOME}/bin
+wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
+time python ${HOME}/bin/linaro-cp.py \
+ --manifest \
+ --link-latest \
+ --split-job-owner \
+ --server ${PUBLISH_SERVER} \
+ ./pub/ \
+ ${PUB_DEST} \
+ --include "^[^/]+[._](img[^/]*|tar[^/]*|xml|sh|config|txz)$" \
+ --include "^[BHi][^/]+txt$" \
+ --include "^(MANIFEST|MD5SUMS|changelog.txt)$"
+
+# Construct post-build-lava parameters
+cat << EOF > ${WORKSPACE}/post_build_lava_parameters
+DEVICE_TYPE=nexus5x
+TARGET_PRODUCT=pixel
+MAKE_TARGETS=droidcore
+JOB_NAME=${JOB_NAME}
+BUILD_NUMBER=${BUILD_NUMBER}
+BUILD_URL=${BUILD_URL}
+LAVA_SERVER=staging.validation.linaro.org/RPC2/
+GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
+GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
+GERRIT_CHANGE_URL=${GERRIT_CHANGE_URL}
+GERRIT_CHANGE_ID=${GERRIT_CHANGE_ID}
+FRONTEND_JOB_NAME=${JOB_NAME}
+DOWNLOAD_URL=http://snapshots.linaro.org/android/$JOB_NAME/$BUILD_NUMBER
+CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/plain/android/nexus5x/microbenchmarks_32.yaml
+SKIP_REPORT=true
+EOF
+
diff --git a/android/linaro-art-microbenchmarks/builders.yaml.inc b/android/linaro-art-microbenchmarks/builders.yaml.inc
new file mode 100644
index 0000000000..94068696fe
--- /dev/null
+++ b/android/linaro-art-microbenchmarks/builders.yaml.inc
@@ -0,0 +1,14 @@
+ - linaro-publish-token
+ - shell:
+ !include-raw:
+ - android/linaro-art-microbenchmarks/builders.sh
+ - trigger-builds:
+ - project: 'post-build-lava'
+ property-file: post_build_lava_parameters
+ block: true
+ - shell: |
+ sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/plain/android/nexus5x/microbenchmarks_64.yaml#g" ${WORKSPACE}/post_build_lava_parameters
+ - trigger-builds:
+ - project: 'post-build-lava'
+ property-file: post_build_lava_parameters
+ block: true