aboutsummaryrefslogtreecommitdiff
path: root/android-hikey-linaro-4.14-pmwg
diff options
context:
space:
mode:
authorLisa Nguyen <lisa.nguyen@linaro.org>2019-01-07 12:58:37 -0800
committerVishal Bhoj <vishal.bhoj@linaro.org>2019-01-10 09:13:51 +0000
commit74cc5c28e6fadb49a0c26a453038f71d6c8a4b17 (patch)
treef38aa12e8af714f81fdbc38800cbc6f7eb33d8f6 /android-hikey-linaro-4.14-pmwg
parentc9d1daec0d38e5d553d86771301756545c6e3170 (diff)
downloadconfigs-74cc5c28e6fadb49a0c26a453038f71d6c8a4b17.tar.gz
android-hikey-linaro-4.14-pmwg: Add files to setup 4.14 CI loops
Add new files needed to setup the PMWG Android 4.14 CI loops on hikey and hikey960. Change-Id: I0a855e574b97858ff97c0e529fc9e9fd7ed0fd47 Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
Diffstat (limited to 'android-hikey-linaro-4.14-pmwg')
-rw-r--r--android-hikey-linaro-4.14-pmwg/builders.sh49
-rw-r--r--android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/multimedia-template.yaml162
-rw-r--r--android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/template.yaml162
-rw-r--r--android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/vellamo-template.yaml162
-rw-r--r--android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/multimedia-template.yaml162
-rw-r--r--android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/template.yaml162
-rw-r--r--android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/vellamo-template.yaml162
-rw-r--r--android-hikey-linaro-4.14-pmwg/postbuild.groovy35
-rwxr-xr-xandroid-hikey-linaro-4.14-pmwg/submit_for_testing.sh32
9 files changed, 1088 insertions, 0 deletions
diff --git a/android-hikey-linaro-4.14-pmwg/builders.sh b/android-hikey-linaro-4.14-pmwg/builders.sh
new file mode 100644
index 000000000..2a07a8ef2
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/builders.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+set -ex
+
+git clone --depth=1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
+export PATH=${PATH}:${PWD}/aarch64-linux-android-4.9/bin/
+
+if ! sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 update; then
+ echo "INFO: apt update error - try again in a moment"
+ sleep 15
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 update || true
+fi
+pkg_list="python-pip openssl libssl-dev"
+if ! sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 install -y ${pkg_list}; then
+ echo "INFO: apt install error - try again in a moment"
+ sleep 15
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 install -y ${pkg_list}
+fi
+
+make ARCH=arm64 ${DEFCONFIG}
+make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j$(nproc) -s Image-dtb
+
+wget -q https://android-git.linaro.org/platform/system/core.git/plain/mkbootimg/mkbootimg.py -O mkbootimg
+wget -q ${REFERENCE_BUILD_URL}/ramdisk.img -O ramdisk.img
+
+mkdir -p out
+case "${DEFCONFIG}" in
+ hikey_defconfig)
+ python mkbootimg \
+ --kernel ${PWD}/arch/arm64/boot/Image-dtb \
+ --cmdline "androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/vendor/firmware efi=noruntime printk.devkmsg=on buildvariant=userdebug overlay_mgr.overlay_dt_entry=hardware_cfg_enable_android_fstab" \
+ --os_version O \
+ --os_patch_level 2016-11-05 \
+ --ramdisk ramdisk.img \
+ --output out/boot.img
+ ;;
+ hikey960_defconfig)
+ python mkbootimg \
+ --kernel ${PWD}/arch/arm64/boot/Image-dtb \
+ --cmdline "androidboot.hardware=hikey960 console=ttyFIQ0 androidboot.console=ttyFIQ0 firmware_class.path=/vendor/firmware loglevel=15 buildvariant=userdebug overlay_mgr.overlay_dt_entry=hardware_cfg_enable_android_fstab" \
+ --base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 \
+ --ramdisk_offset 0x07c00000 \
+ --os_version P \
+ --os_patch_level 2016-11-05 \
+ --ramdisk ramdisk.img \
+ --output out/boot.img
+ ;;
+esac
+xz out/boot.img
diff --git a/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/multimedia-template.yaml b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/multimedia-template.yaml
new file mode 100644
index 000000000..4fa946d00
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/multimedia-template.yaml
@@ -0,0 +1,162 @@
+device_type: hi6220-hikey-r2
+job_name: ${KERNEL_BRANCH}-hi6220-multimedia-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 420
+ action:
+ minutes: 10
+ connection:
+ minutes: 2
+ connections:
+ lava-test-shell:
+ seconds: 10
+
+priority: medium
+visibility: personal
+
+metadata:
+ git branch: ${GIT_BRANCH}
+ git repo: ${GIT_URL}
+ git commit: ${GIT_COMMIT}
+ build-url: ${BUILD_URL}
+ build-location: ${PUBLISH_SERVER}${PUB_DEST}
+ series: pmwg
+
+protocols:
+ lava-lxc:
+ name: lxc-hikey-test
+ distribution: ubuntu
+ release: xenial
+ arch: amd64
+ verbose: true
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 15
+ to: lxc
+ packages:
+ - git
+ - unzip
+ - wget
+ - trace-cmd
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 5
+ method: lxc
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/aep-install.yaml
+ name: aep-install
+ parameters:
+ AEP_CONFIG_REF: wa3_support
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/android-platform-tools/install.yaml
+ name: install-android-platform-tools-r2600
+ parameters:
+ LINK: 'https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip'
+
+- deploy:
+ timeout:
+ minutes: 15
+ to: fastboot
+ namespace: hikey-android
+ images:
+ ptable:
+ url: http://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/latest/hikey/debug/ptable-aosp-8g.img
+ reboot: hard-reset
+ boot:
+ url: ${PUBLISH_SERVER}${PUB_DEST}/boot.img.xz
+ compression: xz
+ reboot: hard-reset
+ cache:
+ url: ${REFERENCE_BUILD_URL}/cache.img.xz
+ compression: xz
+ userdata:
+ url: ${REFERENCE_BUILD_URL}/userdata.img.xz
+ compression: xz
+ system:
+ url: ${REFERENCE_BUILD_URL}/system.img.xz
+ compression: xz
+ vendor:
+ url: ${REFERENCE_BUILD_URL}/vendor.img.xz
+ compression: xz
+ os: debian
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: hikey-android
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 15
+ method: fastboot
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 360
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/workload-automation.yaml
+ parameters:
+ WA_TAG: master
+ WA_EXTENSION_PATHS: "/root/energy-probe-ext"
+ WA_TEMPLATES_REPO: "https://git.linaro.org/power/wa3-lava.git"
+ TEMPLATES_BRANCH: master
+ BUILD_TOOLS_URL: "http://testdata.linaro.org/apks/pmwg/build-tools.tar.gz"
+ WA_HOME_URL: "http://testdata.linaro.org/apks/pmwg/workload_automation_home_v0.8.tar.gz"
+ AGENDA: "agenda/android-multimedia-aep.yaml"
+ CONFIG: "config/generic-android.yaml"
+ OUTPUT: /root/output
+ name: wa-lxc-test
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 45
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/aep-pre-post/lisa-postprocessing.yaml
+ name: lisa-postprocessing
+ parameters:
+ LISA_REPOSITORY: https://github.com/vingu-linaro/lisa
+ LISA_REF: support_python_command_line_post_processing
+ LISA_SCRIPT: ipynb/wltests/sched-evaluation-full.py
+
+notify:
+ recipients:
+ - to:
+ method: email
+ email: private-pmwg@lists.linaro.org
+ criteria:
+ status: complete
+ verbosity: verbose
diff --git a/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/template.yaml b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/template.yaml
new file mode 100644
index 000000000..a87db53a5
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/template.yaml
@@ -0,0 +1,162 @@
+device_type: hi6220-hikey-r2
+job_name: ${KERNEL_BRANCH}-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 420
+ action:
+ minutes: 10
+ connection:
+ minutes: 2
+ connections:
+ lava-test-shell:
+ seconds: 10
+
+priority: medium
+visibility: personal
+
+metadata:
+ git branch: ${GIT_BRANCH}
+ git repo: ${GIT_URL}
+ git commit: ${GIT_COMMIT}
+ build-url: ${BUILD_URL}
+ build-location: ${PUBLISH_SERVER}${PUB_DEST}
+ series: pmwg
+
+protocols:
+ lava-lxc:
+ name: lxc-hikey-test
+ distribution: ubuntu
+ release: xenial
+ arch: amd64
+ verbose: true
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 15
+ to: lxc
+ packages:
+ - git
+ - unzip
+ - wget
+ - trace-cmd
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 5
+ method: lxc
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/aep-install.yaml
+ name: aep-install
+ parameters:
+ AEP_CONFIG_REF: wa3_support
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/android-platform-tools/install.yaml
+ name: install-android-platform-tools-r2600
+ parameters:
+ LINK: 'https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip'
+
+- deploy:
+ timeout:
+ minutes: 15
+ to: fastboot
+ namespace: hikey-android
+ images:
+ ptable:
+ url: http://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/latest/hikey/debug/ptable-aosp-8g.img
+ reboot: hard-reset
+ boot:
+ url: ${PUBLISH_SERVER}${PUB_DEST}/boot.img.xz
+ compression: xz
+ reboot: hard-reset
+ cache:
+ url: ${REFERENCE_BUILD_URL}/cache.img.xz
+ compression: xz
+ userdata:
+ url: ${REFERENCE_BUILD_URL}/userdata.img.xz
+ compression: xz
+ system:
+ url: ${REFERENCE_BUILD_URL}/system.img.xz
+ compression: xz
+ vendor:
+ url: ${REFERENCE_BUILD_URL}/vendor.img.xz
+ compression: xz
+ os: debian
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: hikey-android
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 15
+ method: fastboot
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 360
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/workload-automation.yaml
+ parameters:
+ WA_TAG: master
+ WA_EXTENSION_PATHS: "/root/energy-probe-ext"
+ WA_TEMPLATES_REPO: "https://git.linaro.org/power/wa3-lava.git"
+ TEMPLATES_BRANCH: master
+ BUILD_TOOLS_URL: "http://testdata.linaro.org/apks/pmwg/build-tools.tar.gz"
+ WA_HOME_URL: "http://testdata.linaro.org/apks/pmwg/workload_automation_home_v0.8.tar.gz"
+ AGENDA: "agenda/example_agenda_aep.yaml"
+ CONFIG: "config/generic-android.yaml"
+ OUTPUT: /root/output
+ name: wa-lxc-test
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 45
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/aep-pre-post/lisa-postprocessing.yaml
+ name: lisa-postprocessing
+ parameters:
+ LISA_REPOSITORY: https://github.com/vingu-linaro/lisa
+ LISA_REF: support_python_command_line_post_processing
+ LISA_SCRIPT: ipynb/wltests/sched-evaluation-full.py
+
+notify:
+ recipients:
+ - to:
+ method: email
+ email: private-pmwg@lists.linaro.org
+ criteria:
+ status: complete
+ verbosity: verbose
diff --git a/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/vellamo-template.yaml b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/vellamo-template.yaml
new file mode 100644
index 000000000..d8453bea3
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi6220-hikey/vellamo-template.yaml
@@ -0,0 +1,162 @@
+device_type: hi6220-hikey-r2
+job_name: ${KERNEL_BRANCH}-hi6220-vellamo-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 420
+ action:
+ minutes: 10
+ connection:
+ minutes: 2
+ connections:
+ lava-test-shell:
+ seconds: 10
+
+priority: medium
+visibility: personal
+
+metadata:
+ git branch: ${GIT_BRANCH}
+ git repo: ${GIT_URL}
+ git commit: ${GIT_COMMIT}
+ build-url: ${BUILD_URL}
+ build-location: ${PUBLISH_SERVER}${PUB_DEST}
+ series: pmwg
+
+protocols:
+ lava-lxc:
+ name: lxc-hikey-test
+ distribution: ubuntu
+ release: xenial
+ arch: amd64
+ verbose: true
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 15
+ to: lxc
+ packages:
+ - git
+ - unzip
+ - wget
+ - trace-cmd
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 5
+ method: lxc
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/aep-install.yaml
+ name: aep-install
+ parameters:
+ AEP_CONFIG_REF: wa3_support
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/android-platform-tools/install.yaml
+ name: install-android-platform-tools-r2600
+ parameters:
+ LINK: 'https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip'
+
+- deploy:
+ timeout:
+ minutes: 15
+ to: fastboot
+ namespace: hikey-android
+ images:
+ ptable:
+ url: http://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/latest/hikey/debug/ptable-aosp-8g.img
+ reboot: hard-reset
+ boot:
+ url: ${PUBLISH_SERVER}${PUB_DEST}/boot.img.xz
+ compression: xz
+ reboot: hard-reset
+ cache:
+ url: ${REFERENCE_BUILD_URL}/cache.img.xz
+ compression: xz
+ userdata:
+ url: ${REFERENCE_BUILD_URL}/userdata.img.xz
+ compression: xz
+ system:
+ url: ${REFERENCE_BUILD_URL}/system.img.xz
+ compression: xz
+ vendor:
+ url: ${REFERENCE_BUILD_URL}/vendor.img.xz
+ compression: xz
+ os: debian
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: hikey-android
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 15
+ method: fastboot
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 360
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/workload-automation.yaml
+ parameters:
+ WA_TAG: master
+ WA_EXTENSION_PATHS: "/root/energy-probe-ext"
+ WA_TEMPLATES_REPO: "https://git.linaro.org/power/wa3-lava.git"
+ TEMPLATES_BRANCH: master
+ BUILD_TOOLS_URL: "http://testdata.linaro.org/apks/pmwg/build-tools.tar.gz"
+ WA_HOME_URL: "http://testdata.linaro.org/apks/pmwg/workload_automation_home_v0.8.tar.gz"
+ AGENDA: "agenda/android-vellamo-aep.yaml"
+ CONFIG: "config/generic-android.yaml"
+ OUTPUT: /root/output
+ name: wa-lxc-test
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 45
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/aep-pre-post/lisa-postprocessing.yaml
+ name: lisa-postprocessing
+ parameters:
+ LISA_REPOSITORY: https://github.com/vingu-linaro/lisa
+ LISA_REF: support_python_command_line_post_processing
+ LISA_SCRIPT: ipynb/wltests/sched-evaluation-full.py
+
+notify:
+ recipients:
+ - to:
+ method: email
+ email: private-pmwg@lists.linaro.org
+ criteria:
+ status: complete
+ verbosity: verbose
diff --git a/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/multimedia-template.yaml b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/multimedia-template.yaml
new file mode 100644
index 000000000..5e181b148
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/multimedia-template.yaml
@@ -0,0 +1,162 @@
+device_type: hi960-hikey
+job_name: ${KERNEL_BRANCH}-hi960-multimedia-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 420
+ action:
+ minutes: 10
+ connection:
+ minutes: 2
+ connections:
+ lava-test-shell:
+ seconds: 10
+
+priority: medium
+visibility: personal
+
+metadata:
+ git branch: ${GIT_BRANCH}
+ git repo: ${GIT_URL}
+ git commit: ${GIT_COMMIT}
+ build-url: ${BUILD_URL}
+ build-location: ${PUBLISH_SERVER}${PUB_DEST}
+ series: pmwg
+
+protocols:
+ lava-lxc:
+ name: lxc-hikey-test
+ distribution: ubuntu
+ release: xenial
+ arch: amd64
+ verbose: true
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 15
+ to: lxc
+ packages:
+ - git
+ - unzip
+ - wget
+ - trace-cmd
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 5
+ method: lxc
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/aep-install.yaml
+ name: aep-install
+ parameters:
+ AEP_CONFIG_REF: wa3_support
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/android-platform-tools/install.yaml
+ name: install-android-platform-tools-r2600
+ parameters:
+ LINK: 'https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip'
+
+- deploy:
+ timeout:
+ minutes: 15
+ to: fastboot
+ namespace: hikey-android
+ images:
+ ptable:
+ url: http://testdata.linaro.org/pmwg/hikey960-06122018/prm_ptable.img
+ reboot: hard-reset
+ boot:
+ url: ${PUBLISH_SERVER}/${PUB_DEST}/boot.img.xz
+ compression: xz
+ reboot: hard-reset
+ cache:
+ url: ${REFERENCE_BUILD_URL}/cache.img.xz
+ compression: xz
+ vendor:
+ url: ${REFERENCE_BUILD_URL}/vendor-4.14.img.xz
+ compression: xz
+ userdata:
+ url: ${REFERENCE_BUILD_URL}/userdata.img.xz
+ compression: xz
+ system:
+ url: ${REFERENCE_BUILD_URL}/system.img.xz
+ compression: xz
+ os: debian
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: hikey-android
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 15
+ method: fastboot
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 360
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/workload-automation.yaml
+ parameters:
+ WA_TAG: master
+ WA_EXTENSION_PATHS: "/root/energy-probe-ext"
+ WA_TEMPLATES_REPO: "https://git.linaro.org/power/wa3-lava.git"
+ TEMPLATES_BRANCH: master
+ BUILD_TOOLS_URL: "http://testdata.linaro.org/apks/pmwg/build-tools.tar.gz"
+ WA_HOME_URL: "http://testdata.linaro.org/apks/pmwg/workload_automation_home_v0.8.tar.gz"
+ AGENDA: "agenda/android-multimedia-aep.yaml"
+ CONFIG: "config/generic-android.yaml"
+ OUTPUT: /root/output
+ name: wa-lxc-test
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 45
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/aep-pre-post/lisa-postprocessing.yaml
+ name: lisa-postprocessing
+ parameters:
+ LISA_REPOSITORY: https://github.com/vingu-linaro/lisa
+ LISA_REF: support_python_command_line_post_processing
+ LISA_SCRIPT: ipynb/wltests/sched-evaluation-full.py
+
+notify:
+ recipients:
+ - to:
+ method: email
+ email: private-pmwg@lists.linaro.org
+ criteria:
+ status: complete
+ verbosity: verbose
diff --git a/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/template.yaml b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/template.yaml
new file mode 100644
index 000000000..87dccaa91
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/template.yaml
@@ -0,0 +1,162 @@
+device_type: hi960-hikey
+job_name: ${KERNEL_BRANCH}-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 420
+ action:
+ minutes: 10
+ connection:
+ minutes: 2
+ connections:
+ lava-test-shell:
+ seconds: 10
+
+priority: medium
+visibility: personal
+
+metadata:
+ git branch: ${GIT_BRANCH}
+ git repo: ${GIT_URL}
+ git commit: ${GIT_COMMIT}
+ build-url: ${BUILD_URL}
+ build-location: ${PUBLISH_SERVER}${PUB_DEST}
+ series: pmwg
+
+protocols:
+ lava-lxc:
+ name: lxc-hikey-test
+ distribution: ubuntu
+ release: xenial
+ arch: amd64
+ verbose: true
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 15
+ to: lxc
+ packages:
+ - git
+ - unzip
+ - wget
+ - trace-cmd
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 5
+ method: lxc
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/aep-install.yaml
+ name: aep-install
+ parameters:
+ AEP_CONFIG_REF: wa3_support
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/android-platform-tools/install.yaml
+ name: install-android-platform-tools-r2600
+ parameters:
+ LINK: 'https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip'
+
+- deploy:
+ timeout:
+ minutes: 15
+ to: fastboot
+ namespace: hikey-android
+ images:
+ ptable:
+ url: http://testdata.linaro.org/pmwg/hikey960-06122018/prm_ptable.img
+ reboot: hard-reset
+ boot:
+ url: ${PUBLISH_SERVER}/${PUB_DEST}/boot.img.xz
+ compression: xz
+ reboot: hard-reset
+ cache:
+ url: ${REFERENCE_BUILD_URL}/cache.img.xz
+ compression: xz
+ vendor:
+ url: ${REFERENCE_BUILD_URL}/vendor-4.14.img.xz
+ compression: xz
+ userdata:
+ url: ${REFERENCE_BUILD_URL}/userdata.img.xz
+ compression: xz
+ system:
+ url: ${REFERENCE_BUILD_URL}/system.img.xz
+ compression: xz
+ os: debian
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: hikey-android
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 15
+ method: fastboot
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 360
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/workload-automation.yaml
+ parameters:
+ WA_TAG: master
+ WA_EXTENSION_PATHS: "/root/energy-probe-ext"
+ WA_TEMPLATES_REPO: "https://git.linaro.org/power/wa3-lava.git"
+ TEMPLATES_BRANCH: master
+ BUILD_TOOLS_URL: "http://testdata.linaro.org/apks/pmwg/build-tools.tar.gz"
+ WA_HOME_URL: "http://testdata.linaro.org/apks/pmwg/workload_automation_home_v0.8.tar.gz"
+ AGENDA: "agenda/example_agenda_aep.yaml"
+ CONFIG: "config/generic-android.yaml"
+ OUTPUT: /root/output
+ name: wa-lxc-test
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 45
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/aep-pre-post/lisa-postprocessing.yaml
+ name: lisa-postprocessing
+ parameters:
+ LISA_REPOSITORY: https://github.com/vingu-linaro/lisa
+ LISA_REF: support_python_command_line_post_processing
+ LISA_SCRIPT: ipynb/wltests/sched-evaluation-full.py
+
+notify:
+ recipients:
+ - to:
+ method: email
+ email: private-pmwg@lists.linaro.org
+ criteria:
+ status: complete
+ verbosity: verbose
diff --git a/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/vellamo-template.yaml b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/vellamo-template.yaml
new file mode 100644
index 000000000..5cea6185e
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/lava-job-definitions/hi960-hikey/vellamo-template.yaml
@@ -0,0 +1,162 @@
+device_type: hi960-hikey
+job_name: ${KERNEL_BRANCH}-hi960-vellamo-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 420
+ action:
+ minutes: 10
+ connection:
+ minutes: 2
+ connections:
+ lava-test-shell:
+ seconds: 10
+
+priority: medium
+visibility: personal
+
+metadata:
+ git branch: ${GIT_BRANCH}
+ git repo: ${GIT_URL}
+ git commit: ${GIT_COMMIT}
+ build-url: ${BUILD_URL}
+ build-location: ${PUBLISH_SERVER}${PUB_DEST}
+ series: pmwg
+
+protocols:
+ lava-lxc:
+ name: lxc-hikey-test
+ distribution: ubuntu
+ release: xenial
+ arch: amd64
+ verbose: true
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 15
+ to: lxc
+ packages:
+ - git
+ - unzip
+ - wget
+ - trace-cmd
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 5
+ method: lxc
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/aep-install.yaml
+ name: aep-install
+ parameters:
+ AEP_CONFIG_REF: wa3_support
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/android-platform-tools/install.yaml
+ name: install-android-platform-tools-r2600
+ parameters:
+ LINK: 'https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip'
+
+- deploy:
+ timeout:
+ minutes: 15
+ to: fastboot
+ namespace: hikey-android
+ images:
+ ptable:
+ url: http://testdata.linaro.org/pmwg/hikey960-06122018/prm_ptable.img
+ reboot: hard-reset
+ boot:
+ url: ${PUBLISH_SERVER}/${PUB_DEST}/boot.img.xz
+ compression: xz
+ reboot: hard-reset
+ cache:
+ url: ${REFERENCE_BUILD_URL}/cache.img.xz
+ compression: xz
+ vendor:
+ url: ${REFERENCE_BUILD_URL}/vendor-4.14.img.xz
+ compression: xz
+ userdata:
+ url: ${REFERENCE_BUILD_URL}/userdata.img.xz
+ compression: xz
+ system:
+ url: ${REFERENCE_BUILD_URL}/system.img.xz
+ compression: xz
+ os: debian
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: hikey-android
+ prompts:
+ - 'root@(.*):/#'
+ - ':/'
+ timeout:
+ minutes: 15
+ method: fastboot
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 360
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/android/workload-automation3/workload-automation.yaml
+ parameters:
+ WA_TAG: master
+ WA_EXTENSION_PATHS: "/root/energy-probe-ext"
+ WA_TEMPLATES_REPO: "https://git.linaro.org/power/wa3-lava.git"
+ TEMPLATES_BRANCH: master
+ BUILD_TOOLS_URL: "http://testdata.linaro.org/apks/pmwg/build-tools.tar.gz"
+ WA_HOME_URL: "http://testdata.linaro.org/apks/pmwg/workload_automation_home_v0.8.tar.gz"
+ AGENDA: "agenda/android-vellamo-aep.yaml"
+ CONFIG: "config/generic-android.yaml"
+ OUTPUT: /root/output
+ name: wa-lxc-test
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 45
+ definitions:
+ - repository: https://git.linaro.org/qa/test-definitions.git
+ from: git
+ path: automated/linux/aep-pre-post/lisa-postprocessing.yaml
+ name: lisa-postprocessing
+ parameters:
+ LISA_REPOSITORY: https://github.com/vingu-linaro/lisa
+ LISA_REF: support_python_command_line_post_processing
+ LISA_SCRIPT: ipynb/wltests/sched-evaluation-full.py
+
+notify:
+ recipients:
+ - to:
+ method: email
+ email: private-pmwg@lists.linaro.org
+ criteria:
+ status: complete
+ verbosity: verbose
diff --git a/android-hikey-linaro-4.14-pmwg/postbuild.groovy b/android-hikey-linaro-4.14-pmwg/postbuild.groovy
new file mode 100644
index 000000000..6004b3544
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/postbuild.groovy
@@ -0,0 +1,35 @@
+import hudson.model.*
+
+if (manager.build.result == hudson.model.Result.SUCCESS) {
+ def qa_server = manager.build.buildVariables.get('QA_SERVER')
+ def desc = manager.build.getDescription()
+ if (desc == null) {
+ desc = ""
+ }
+ pattern = ~"${qa_server}/testjob/(\\d+)"
+ manager.build.logFile.eachLine { line ->
+ matcher = pattern.matcher(line)
+ if(matcher.matches()) {
+ def url = matcher.group(0)
+ def testjob_id = matcher.group(1)
+ desc += "&nbsp;<a href='${url}'>QA Reports: ${testjob_id}</a><br/>"
+ }
+ }
+ manager.build.setDescription(desc)
+}
+
+// Parse log file to find warnings and errors
+def logFile = manager.build.logFile.text
+def warnings = logFile =~ /(?ms)(^.*? warning: .*?$)/
+def errors = logFile =~ /(?ms)(^.*? error: .*?$)/
+def warningsCount = warnings.count
+def errorsCount = errors.count
+
+// Update parameters to include warnings and errors values
+def action = manager.build.getAction(hudson.model.ParametersAction.class)
+def parameters = [
+ new StringParameterValue("WARNINGS", "${warningsCount}"),
+ new StringParameterValue("ERRORS", "${errorsCount}")
+]
+updatedAction = action.createUpdated(parameters)
+manager.build.replaceAction(updatedAction)
diff --git a/android-hikey-linaro-4.14-pmwg/submit_for_testing.sh b/android-hikey-linaro-4.14-pmwg/submit_for_testing.sh
new file mode 100755
index 000000000..516b817f6
--- /dev/null
+++ b/android-hikey-linaro-4.14-pmwg/submit_for_testing.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+set -ex
+
+rm -rf configs
+git clone --depth 1 http://git.linaro.org/ci/job/configs.git
+
+# Install jinja2-cli and ruamel.yaml
+if ! sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 update; then
+ echo "INFO: apt update error - try again in a moment"
+ sleep 15
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 update || true
+fi
+pkg_list="virtualenv python-pip"
+if ! sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 install -y ${pkg_list}; then
+ echo "INFO: apt install error - try again in a moment"
+ sleep 15
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 install -y ${pkg_list}
+fi
+pip install --user --force-reinstall jinja2-cli ruamel.yaml
+
+[ -z "${DEVICE_TYPE}" ] || \
+python configs/openembedded-lkft/submit_for_testing.py \
+ --device-type ${DEVICE_TYPE} \
+ --build-number ${BUILD_NUMBER} \
+ --lava-server ${LAVA_SERVER} \
+ --qa-server ${QA_SERVER} \
+ --qa-server-team ${QA_SERVER_TEAM} \
+ --qa-server-project ${QA_SERVER_PROJECT} \
+ --git-commit ${GIT_COMMIT:0:12} \
+ --template-path configs/android-hikey-linaro-4.14-pmwg/lava-job-definitions \
+ --template-names vellamo-template.yaml multimedia-template.yaml