diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2019-02-12 13:56:39 -0600 |
---|---|---|
committer | Aníbal Limón <anibal.limon@linaro.org> | 2019-02-20 12:13:20 -0600 |
commit | e4ad29b7d58ab4a017f44003e838db97318b1237 (patch) | |
tree | 77ea65dcc06d7e482eb1c372a6b46b7e840ccb85 /lt-qcom-linux-integration | |
parent | 5c70bddb5c7270df0f0b52a2e251877223272585 (diff) |
lt-qcom-linux-{integration, mainline}: Move to lt-qcom-linux-test
Initially we started to test only integration branch later we added
test for mainline branch so move common code into lt-qcom-linux-test
to be consistent.
Change-Id: If1bbeefbb6ba73bc81c57e2b5abd16b1aacc5d97
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Diffstat (limited to 'lt-qcom-linux-integration')
17 files changed, 0 insertions, 1373 deletions
diff --git a/lt-qcom-linux-integration/builders-deps.sh b/lt-qcom-linux-integration/builders-deps.sh deleted file mode 100644 index 45b9d224ba..0000000000 --- a/lt-qcom-linux-integration/builders-deps.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -ex - -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="tar gzip pigz cpio xz-utils wget skales e2fsprogs simg2img img2simg python-pip curl" -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 - -export GZ=pigz diff --git a/lt-qcom-linux-integration/builders.sh b/lt-qcom-linux-integration/builders.sh deleted file mode 100755 index d1644a9329..0000000000 --- a/lt-qcom-linux-integration/builders.sh +++ /dev/null @@ -1,441 +0,0 @@ -#!/bin/bash - -# Init script to use ramdisk used in bootrr testing -INITRAMFS_RAMDISK=$(cat <<EOF -#!/bin/sh - -HOME=/root -PATH=/sbin:/bin:/usr/sbin:/usr/bin -PS1="linaro-test [rc=\$(echo \\\$?)]# " -export HOME PS1 PATH - -do_mount_fs() { - grep -q "\$1" /proc/filesystems || return - test -d "\$2" || mkdir -p "\$2" - mount -t "\$1" "\$1" "\$2" -} - -do_mknod() { - test -e "\$1" || mknod "\$1" "\$2" "\$3" "\$4" -} - -mkdir -p /proc -mount -t proc proc /proc - -do_mount_fs sysfs /sys -do_mount_fs debugfs /sys/kernel/debug -do_mount_fs devtmpfs /dev -do_mount_fs devpts /dev/pts -do_mount_fs tmpfs /dev/shm - -mkdir -p /run -mkdir -p /var/run - -/sbin/udevd --daemon -/bin/udevadm trigger - -do_mknod /dev/console c 5 1 -do_mknod /dev/null c 1 3 -do_mknod /dev/zero c 1 5 - -echo -n 'BOOT TIME: ' -cat /proc/uptime - -if \$(grep -q bootrr-auto /proc/cmdline); then - for TEST in \$(tr "\0" "\n" < /proc/device-tree/compatible); do - if [ -x "/usr/bin/\${TEST}" ]; then - /usr/bin/\${TEST} - fi - done - - echo ~~~~~~~~~~~~~~~~~~~~~ -fi - -exec sh </dev/console >/dev/console 2>/dev/console -EOF -) - -# Init script to mount rootfs mainly used in functional testing -INITRAMFS_ROOTFS=$(cat <<EOF -#!/bin/sh - -HOME=/root -PATH=/sbin:/bin:/usr/sbin:/usr/bin -export HOME PATH - -do_mount_fs() { - grep -qa "\$1" /proc/filesystems || return - test -d "\$2" || mkdir -p "\$2" - mount -t "\$1" "\$1" "\$2" -} - -do_mknod() { - test -e "\$1" || mknod "\$1" "\$2" "\$3" "\$4" -} - -rescue_shell() { - echo "Failed to mount rootfs (__ROOTFS_PARTITION__), executing rescue shell..." - export PS1="linaro-test [rc=\$(echo \\\$?)]# " - exec sh </dev/console >/dev/console 2>/dev/console -} - -mkdir -p /proc -mount -t proc proc /proc - -do_mount_fs sysfs /sys -do_mount_fs devtmpfs /dev - -mkdir -p /run -mkdir -p /var/run -/sbin/udevd --daemon -/bin/udevadm trigger - -do_mknod /dev/console c 5 1 -do_mknod /dev/null c 1 3 -do_mknod /dev/zero c 1 5 - -if [ ! -b "__ROOTFS_PARTITION__" ]; then - echo "Waiting for root device __ROOTFS_PARTITION__ ..." - while [ ! -b "__ROOTFS_PARTITION__" ]; do - sleep 1s - done; -fi - -mkdir -p /rootfs -mount -o ro __ROOTFS_PARTITION__ /rootfs || rescue_shell - -umount /proc -umount /sys -umount /dev - -echo "All done. Switching to real root." -exec switch_root /rootfs /sbin/init -EOF -) - -set -x - -wget_error() { - wget -c $1 -P out/ - retcode=$? - if [ $retcode -ne 0 ]; then - exit $retcode - fi -} - -function copy_tarball_to_rootfs() { - tarball_file=$1 - target_file=$2 - target_file_type=$3 - - if [[ $target_file_type = *"cpio archive"* ]]; then - mkdir -p out/tarball - tar -xvf $tarball_file -C out/tarball - cd out/tarball - find . | cpio -oA -H newc -F ../../$target_file - cd ../../ - rm -rf out/tarball - else - required_size=$(${GZ} -l $tarball_file | tail -1 | awk '{print $2}') - required_size=$(( $required_size / 1024 )) - - sudo e2fsck -y $target_file - block_count=$(sudo dumpe2fs -h $target_file | grep "Block count" | awk '{print $3}') - block_size=$(sudo dumpe2fs -h $target_file | grep "Block size" | awk '{print $3}') - current_size=$(( $block_size * $block_count / 1024 )) - - final_size=$(( $current_size + $required_size + 32768 )) - sudo resize2fs -p $target_file "$final_size"K - - mkdir -p out/rootfs_mount - sudo mount -o loop $target_file out/rootfs_mount - sudo tar -xvf $tarball_file -C out/rootfs_mount - sudo umount out/rootfs_mount - rm -rf out/rootfs_mount - fi -} - -function create_ramdisk_from_folder() { - ramdisk_name=$1 - ramdisk_folder=$2 - ramdisk="$ramdisk_name.cpio" - - cd $ramdisk_folder - find . | cpio -ov -H newc > "../../out/$ramdisk" - ${GZ} "../../out/$ramdisk" - ramdisk=$ramdisk.gz - echo "$ramdisk" - cd ../ -} - -function overlay_ramdisk_from_git() { - git_repo=$1 - git_branch=$2 - - # clone git repo and get revision details - project_name="$(basename "$git_repo" .git)" - project_folder="$project_name" - project_ramdisk_folder="$(realpath $project_folder)/rootfs" - git clone -b "$git_branch" --depth 1 "$git_repo" "$project_folder" - cd "$project_folder" - DESTDIR="$project_ramdisk_folder" prefix="/usr" make install 2>&1 > /dev/null - project_name="$project_name-$(git rev-parse --short HEAD)" - - # created the overlayed ramdisk involves the creation of new ramdisk from folder and - # concat both into a single file - project_ramdisk_overlay=$(create_ramdisk_from_folder $project_name $project_ramdisk_folder) - cd ../ - - overlayed_ramdisk_file="$(basename $ramdisk_file)+$(basename $project_ramdisk_overlay)" - cat "$ramdisk_file" "out/$project_ramdisk_overlay" > "out/$overlayed_ramdisk_file" - echo "$overlayed_ramdisk_file" - rm -rf "$project_folder" -} - -function overlay_ramdisk_from_file() { - file_name=$1 - file_cpio="out/$2.cpio" - - echo $file_name | cpio -ov -H newc > $file_cpio - ${GZ} $file_cpio - file_cpio=$file_cpio.gz - - overlayed_ramdisk_file="$(basename $ramdisk_file)+$(basename $file_cpio)" - cat "$ramdisk_file" "$file_cpio" > "out/$overlayed_ramdisk_file" - echo "$overlayed_ramdisk_file" -} - -# Set default tools to use -if [ -z "${GZ}" ]; then - export GZ=gzip -fi - -# Generic/default variables -KERNEL_CI_PLATFORM=${MACHINE} -BOOTIMG_PAGESIZE=2048 -BOOTIMG_BASE=0x80000000 -RAMDISK_BASE=0x84000000 -SERIAL_CONSOLE=ttyMSM0 -KERNEL_CI_MACH=qcom -KERNEL_DT_URL="${KERNEL_DT_URL}/qcom/${MACHINE}.dtb" - -# Set per MACHINE configuration -case "${MACHINE}" in - apq8016-sbc) - FIRMWARE_URL=${FIRMWARE_URL_apq8016_sbc} - ROOTFS_PARTITION=/dev/mmcblk0p10 - ;; - apq8096-db820c) - FIRMWARE_URL=${FIRMWARE_URL_apq8096_db820c} - BOOTIMG_PAGESIZE=4096 - ROOTFS_PARTITION=/dev/sda1 - ;; - sdm845-mtp) - FIRMWARE_URL=${FIRMWARE_URL_sdm845_mtp} - ROOTFS_PARTITION=/dev/sda8 # XXX: using Android userdata since we don't have Linux parttable - ;; - qcs404-evb-1000) - FIRMWARE_URL=${FIRMWARE_URL_qcs404_evb_1000} - ROOTFS_PARTITION=/dev/mmcblk0p26 - ;; - qcs404-evb-4000) - FIRMWARE_URL=${FIRMWARE_URL_qcs404_evb_4000} - ROOTFS_PARTITION=/dev/mmcblk0p26 - ;; - *) - echo "Currently MACHINE: ${MACHINE} isn't supported" - exit 1 - ;; -esac - -# Validate required parameters -if [ -z "${KERNEL_IMAGE_URL}" ]; then - echo "ERROR: KERNEL_IMAGE_URL is empty" - exit 1 -fi -if [ -z "${RAMDISK_URL}" ]; then - echo "ERROR: RAMDISK_URL is empty" - exit 1 -fi -if [ -z "${ROOTFS_URL}" ]; then - echo "ERROR: RAMDISK_URL is empty" - exit 1 -fi - -# Build information -mkdir -p out -cat > out/HEADER.textile << EOF - -h4. QCOM Landing Team - $BUILD_DISPLAY_NAME - -Build description: -* Build URL: "$BUILD_URL":$BUILD_URL -* Kernel image URL: $KERNEL_IMAGE_URL -* Kernel dt URL: $KERNEL_DT_URL -* kernel modules URL: $KERNEL_MODULES_URL -* Ramdisk URL: $RAMDISK_URL -* RootFS URL: $ROOTFS_URL -* Firmware URL: $FIRMWARE_URL -EOF - -# Ramdisk/RootFS image, modules populate -wget_error ${RAMDISK_URL} -ramdisk_file=out/$(basename ${RAMDISK_URL}) -ramdisk_file_type=$(file $ramdisk_file) - -wget_error ${ROOTFS_URL} -rootfs_file=out/$(basename ${ROOTFS_URL}) -rootfs_file_type=$(file $rootfs_file) - -if [[ ! -z "${KERNEL_MODULES_URL}" ]]; then - wget_error ${KERNEL_MODULES_URL} - modules_file="out/$(basename ${KERNEL_MODULES_URL})" - - # XXX: Compress modules to gzip for use copy_tarball_to_rootfs - # generic code to calculate size in ext4 filesystem - modules_file_type=$(file $modules_file) - if [[ $modules_file_type = *"XZ compressed data"* ]]; then - xz -d $modules_file - modules_file="out/$(basename ${KERNEL_MODULES_URL} .xz)" - ${GZ} $modules_file - modules_file=$modules_file.gz - elif [[ $modules_file_type = *"bzip2 compressed data"* ]]; then - bzip2 -d $modules_file - modules_file="out/$(basename ${KERNEL_MODULES_URL} .bz2)" - ${GZ} $modules_file - modules_file=$modules_file.gz - fi -fi -if [[ ! -z "${FIRMWARE_URL}" ]]; then - wget_error ${FIRMWARE_URL} - firmware_file="out/$(basename ${FIRMWARE_URL} .bz2)" -fi - -rootfs_comp='' -if [[ $rootfs_file_type = *"gzip compressed data"* ]]; then - ${GZ} -d $rootfs_file - rootfs_file=out/$(basename ${ROOTFS_URL} .gz) - rootfs_file_type=$(file $rootfs_file) - rootfs_comp='gz' -fi -if [[ $ramdisk_file_type = *"gzip compressed data"* ]]; then - ${GZ} -d $ramdisk_file - ramdisk_file=out/$(basename ${RAMDISK_URL} .gz) - ramdisk_file_type=$(file $ramdisk_file) - ramdisk_comp='gz' -fi - -if [[ $rootfs_file_type = *"Android sparse image"* ]]; then - rootfs_file_ext4=out/$(basename ${rootfs_file} .img).ext4 - simg2img $rootfs_file $rootfs_file_ext4 - rootfs_file=$rootfs_file_ext4 -elif [[ $rootfs_file_type = *"ext4 filesystem data"* ]]; then - rootfs_file=$rootfs_file -else - echo "ERROR: ROOTFS_IMAGE type isn't supported: $rootfs_file_type" - exit 1 -fi - -if [[ ! -z "$modules_file" ]]; then - copy_tarball_to_rootfs "$modules_file" "$ramdisk_file" "$ramdisk_file_type" - copy_tarball_to_rootfs "$modules_file" "$rootfs_file" "$rootfs_file_type" -fi - -if [[ ! -z "${firmware_file}" ]]; then - copy_tarball_to_rootfs "$firmware_file" "$ramdisk_file" "$ramdisk_file_type" - copy_tarball_to_rootfs "$firmware_file" "$rootfs_file" "$rootfs_file_type" -fi - -if [[ $rootfs_file_type = *"Android sparse image"* ]]; then - rootfs_file_img=out/$(basename $rootfs_file .ext4).img - img2simg $rootfs_file $rootfs_file_img - rm $rootfs_file - rootfs_file=$rootfs_file_img -fi - - -if [[ $ramdisk_comp = "gz" ]]; then - ${GZ} $ramdisk_file - ramdisk_file="$ramdisk_file".gz - ramdisk_file_type=$(file $ramdisk_file) - ramdisk_comp="" -fi -if [[ $rootfs_comp = "gz" ]]; then - ${GZ} $rootfs_file - rootfs_file="$rootfs_file".gz - rootfs_file_type=$(file $rootfs_file) - rootfs_comp="" -fi - -# Compress kernel image if isn't -wget_error ${KERNEL_IMAGE_URL} -kernel_file=out/$(basename ${KERNEL_IMAGE_URL}) -kernel_file_type=$(file $kernel_file) -if [[ ! $kernel_file_type = *"gzip compressed data"* ]]; then - ${GZ} -kf $kernel_file - kernel_file=$kernel_file.gz -fi - -# Making android boot img -dt_mkbootimg_arg="" -if [[ ! -z "${KERNEL_DT_URL}" ]]; then - wget_error ${KERNEL_DT_URL} - dt_mkbootimg_arg="--dt out/$(basename ${KERNEL_DT_URL})" -fi - -# Overlay ramdisk to install tools, artifacts, etc -if [[ ! -z "${BOOTRR_GIT_REPO}" ]]; then - overlayed_ramdisk_file="out/$(overlay_ramdisk_from_git "${BOOTRR_GIT_REPO}" "${BOOTRR_GIT_BRANCH}")" - ramdisk_file=$overlayed_ramdisk_file -fi - -# Create boot image (bootrr), overlay the init script to setup the ramdisk -init_file=init -echo "${INITRAMFS_RAMDISK}" > ./$init_file -chmod +x ./$init_file -overlayed_ramdisk_file="out/$(overlay_ramdisk_from_file "$init_file" "init_ramdisk")" -rm -f $init_file - -boot_file=boot-${KERNEL_FLAVOR}-${KERNEL_VERSION}-${BUILD_NUMBER}-${MACHINE}.img -skales-mkbootimg \ - --kernel $kernel_file \ - --ramdisk $overlayed_ramdisk_file \ - --output out/$boot_file \ - $dt_mkbootimg_arg \ - --pagesize "${BOOTIMG_PAGESIZE}" \ - --base "${BOOTIMG_BASE}" \ - --ramdisk_base "${RAMDISK_BASE}" \ - --cmdline "root=/dev/ram0 init=/init rw console=tty0 console=${SERIAL_CONSOLE},115200n8" - -# Create boot image (functional), sdm845-mtp requires an initramfs to mount the rootfs and then -# exec switch_rootfs, use the same method in other boards too -boot_rootfs_file=boot-rootfs-${KERNEL_FLAVOR}-${KERNEL_VERSION}-${BUILD_NUMBER}-${MACHINE}.img -init_file=init -echo "${INITRAMFS_ROOTFS}" | sed -e "s|__ROOTFS_PARTITION__|${ROOTFS_PARTITION}|g" > ./$init_file -chmod +x ./$init_file -overlayed_ramdisk_file="out/$(overlay_ramdisk_from_file "$init_file" "init_rootfs")" -rm -f $init_file - -skales-mkbootimg \ - --kernel $kernel_file \ - --ramdisk $overlayed_ramdisk_file \ - --output out/$boot_rootfs_file \ - $dt_mkbootimg_arg \ - --pagesize "${BOOTIMG_PAGESIZE}" \ - --base "${BOOTIMG_BASE}" \ - --ramdisk_base "${RAMDISK_BASE}" \ - --cmdline "root=/dev/ram0 init=/init rw console=tty0 console=${SERIAL_CONSOLE},115200n8" - -echo BOOT_FILE=$boot_file >> builders_out_parameters -echo BOOT_ROOTFS_FILE=$boot_rootfs_file >> builders_out_parameters -echo ROOTFS_FILE="$(basename $rootfs_file)" >> builders_out_parameters - -# Kernel CI parameters in LAVA jobs -echo KERNEL_IMAGE="$(basename $KERNEL_IMAGE_URL)" >> builders_out_parameters -echo KERNEL_DT="$(basename $KERNEL_DT_URL)" >> builders_out_parameters -echo KERNEL_CI_PLATFORM="${KERNEL_CI_PLATFORM}" >> builders_out_parameters -echo KERNEL_CI_MACH="${KERNEL_CI_MACH}" >> builders_out_parameters -echo RAMDISK_URL="${RAMDISK_URL}" >> builders_out_parameters -echo KERNEL_DT_URL="${KERNEL_DT_URL}" >> builders_out_parameters - -ls -l out/ diff --git a/lt-qcom-linux-integration/copy_test_overlay.sh b/lt-qcom-linux-integration/copy_test_overlay.sh deleted file mode 100755 index 166924461d..0000000000 --- a/lt-qcom-linux-integration/copy_test_overlay.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Copies a test tarball overlay into the Android boot image ramdisk - -set -ex - -if [ $# -lt 2 ]; then - echo "Usage: $0 <boot_file> <overlay_test_file>" - exit 1 -fi - -boot_file=$1 -overlay_file=$2 - -abootimg -x $boot_file -mkdir -p ramdisk -tar -xvzf $overlay_file -C ramdisk -cd ramdisk -overlay_file=$(basename $2 .tar.gz).cpio -find . | cpio -ov -H newc > ../$overlay_file -cd ../ -gzip $overlay_file -overlay_file=$overlay_file.gz -overlayed_initrd=initrd.img+$overlay_file -cat initrd.img $overlay_file > $overlayed_initrd - -image_size=`du -b $boot_file | cut -f 1` -overlay_size=`gzip -l $overlay_file | tail -1 | awk '{print $2}'` -final_size=$(( $overlay_size + $image_size )) -abootimg -u $boot_file -r $overlayed_initrd -c "bootsize=$final_size" diff --git a/lt-qcom-linux-integration/lava-job-definitions/boards/base_template-functional.yaml b/lt-qcom-linux-integration/lava-job-definitions/boards/base_template-functional.yaml deleted file mode 100644 index d59286ba7c..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/boards/base_template-functional.yaml +++ /dev/null @@ -1,126 +0,0 @@ -protocols: - lava-lxc: - name: lxc-${LAVA_DEVICE_TYPE}-test - template: debian - distribution: debian - release: stretch - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 5 - to: lxc - packages: - - wget - - unzip - - img2simg - - simg2img - - e2fsprogs - - gzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'root@linaro-developer:~#' - timeout: - minutes: 5 - method: lxc - -- deploy: - timeout: - minutes: 40 - to: download - namespace: ${LAVA_DEVICE_TYPE} - images: - boot: - url: ${BOOT_ROOTFS_URL} - compression: ${BOOT_ROOTFS_URL_COMP} - rootfs: - url: ${ROOTFS_URL} - compression: ${ROOTFS_URL_COMP} - os: oe - -- test: - namespace: tlxc - timeout: - minutes: 30 - definitions: - - from: inline - name: resize-rootfs - path: inline/resize-rootfs.yaml - repository: - metadata: - description: resize rootfs image for test overlay - format: Lava-Test Test Definition 1.0 - name: resize-rootfs - run: - steps: - - if [ -z "${RESIZE_ROOTFS}" ] - - then - - echo "resize_rootfs:" "skip" - - else - - cd /lava-lxc - - overlay_file=/lava-lxc/overlays/${LAVA_DEVICE_TYPE}/overlay.tar.gz - - overlay_size=$$(gzip -l $$overlay_file | tail -1 | awk '{print $$2}') - - overlay_size=$$(( $$overlay_size / 1024 )) - - simg2img ${LXC_ROOTFS_FILE} ${LXC_ROOTFS_FILE}.ext4 - - fsck_code=$$(e2fsck -y -f ${LXC_ROOTFS_FILE}.ext4) - - block_count=$$(dumpe2fs -h ${LXC_ROOTFS_FILE}.ext4 | grep "Block count" | awk '{print $$3}') - - block_size=$$(dumpe2fs -h ${LXC_ROOTFS_FILE}.ext4 | grep "Block size" | awk '{print $$3}') - - current_size=$$(( $$block_size * $$block_count / 1024 )) - - final_size=$$(( $$current_size + $$overlay_size + 32768 )) - - resize2fs ${LXC_ROOTFS_FILE}.ext4 "$$final_size"K - - img2simg ${LXC_ROOTFS_FILE}.ext4 ${LXC_ROOTFS_FILE} - - echo "resize_rootfs:" "pass" - - fi - -- 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-r2602 - parameters: - LINK: 'https://dl.google.com/android/repository/platform-tools_r26.0.2-linux.zip' - -- deploy: - timeout: - minutes: 40 - to: fastboot - namespace: ${LAVA_DEVICE_TYPE} - images: - boot: - url: lxc:///${LXC_BOOT_ROOTFS_FILE} - rootfs: - url: lxc:///${LXC_ROOTFS_FILE} - apply-overlay: true - os: oe - protocols: - lava-lxc: - - action: fastboot-deploy - request: pre-power-command - timeout: - minutes: 2 - -- boot: - namespace: ${LAVA_DEVICE_TYPE} - auto_login: - login_prompt: 'login:' - username: 'root' - prompts: - - 'root@(.*):~#' - timeout: - minutes: 15 - method: fastboot - protocols: - lava-lxc: - - action: auto-login-action - request: pre-os-command - timeout: - minutes: 2 diff --git a/lt-qcom-linux-integration/lava-job-definitions/boards/template-bootrr.yaml b/lt-qcom-linux-integration/lava-job-definitions/boards/template-bootrr.yaml deleted file mode 100644 index ceead5df00..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/boards/template-bootrr.yaml +++ /dev/null @@ -1,206 +0,0 @@ -device_type: ${LAVA_DEVICE_TYPE} -job_name: lt-qcom-${QA_SERVER_PROJECT}-bootrr-${BUILD_NUMBER} -timeouts: - job: - minutes: 90 - action: - minutes: 15 - connection: - minutes: 2 -priority: high -visibility: public - -metadata: - source: https://git.linaro.org/ci/job/configs.git - path: lt-qcom-linux-integration/lava-job-definitions/${LAVA_DEVICE_TYPE}/template-bootrr.yaml - image.type: 'kernel-ci' - image.url: "${BOOT_URL}" - kernel.tree: "${KERNEL_TREE}" - kernel.version: "${KERNEL_VERSION}" - kernel.endian: 'little' - kernel.defconfig: 'defconfig' - kernel.defconfig_base: 'defconfig' - kernel.arch_defconfig: 'arm64_defconfig' - platform.dtb: "${KERNEL_DT}" - platform.dtb_short: "${KERNEL_DT}" - platform.fastboot: true - platform.name: "${KERNEL_CI_PLATFORM}" - platform.mach: "${KERNEL_CI_MACH}" - test.plan: 'qcom-bootrr' - git repo: "${KERNEL_REPO}" - git branch: "${KERNEL_BRANCH}" - git commit: "${KERNEL_COMMIT}" - git describe: "${KERNEL_VERSION}" - device.type: "${KERNEL_CI_PLATFORM}" - job.arch: 'arm64' - job.name: lt-qcom-${QA_SERVER_PROJECT}-bootrr-${BUILD_NUMBER} - job.kernel_url: "${KERNEL_IMAGE_URL}" - job.kernel_image: "${KERNEL_IMAGE}" - job.modules_url: "${KERNEL_MODULES_URL}" - job.initrd_url: "${RAMDISK_URL}" - job.nfsrootfs_url: '' - job.dtb_url: "${KERNEL_DT_URL}" - -notify: - criteria: - status: finished - callback: - url: https://api.kernelci.org/callback/lava/test?lab_name=lab-qcom&status={STATUS}&status_string={STATUS_STRING} - method: POST - dataset: all - token: kernelci-lab-qcom-callback - content-type: json - -protocols: - lava-lxc: - name: lxc-${LAVA_DEVICE_TYPE}-test - template: debian - distribution: debian - release: stretch - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 5 - to: lxc - packages: - - wget - - unzip - - abootimg - - cpio - - gzip - - git - - mktemp - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'root@linaro-developer:~#' - timeout: - minutes: 5 - method: lxc - -- deploy: - timeout: - minutes: 40 - to: download - namespace: ${LAVA_DEVICE_TYPE} - images: - boot: - url: ${BOOT_URL} - compression: ${BOOT_URL_COMP} - apply-overlay: true - os: oe - -- test: - namespace: tlxc - timeout: - minutes: 30 - definitions: - - from: inline - name: ${LAVA_DEVICE_TYPE}-apply-test-overlay - path: inline/${LAVA_DEVICE_TYPE}-apply-test-overlay.yaml - repository: - metadata: - description: ${LAVA_DEVICE_TYPE} apply test overlay - format: Lava-Test Test Definition 1.0 - name: ${LAVA_DEVICE_TYPE}-apply-test-overlay - run: - steps: - - overlay_file=/lava-lxc/overlays/${LAVA_DEVICE_TYPE}/overlay.tar.gz - - if [ -f $$overlay_file ] - - then - - configs_dir=$$(mktemp -d /tmp/configs.XXXX) - - git clone --depth 1 http://git.linaro.org/ci/job/configs.git $$configs_dir - - $$configs_dir/lt-qcom-linux-integration/copy_test_overlay.sh /lava-lxc/${LXC_BOOT_FILE} $$overlay_file - - echo "apply_test_overlay:" "pass" - - else - - echo "apply_test_overlay:" "skip" - - fi - -- 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-r2602 - parameters: - LINK: 'https://dl.google.com/android/repository/platform-tools_r26.0.2-linux.zip' - -- deploy: - timeout: - minutes: 40 - to: fastboot - namespace: ${LAVA_DEVICE_TYPE} - images: - boot: - url: lxc:///${LXC_BOOT_FILE} - os: oe - protocols: - lava-lxc: - - action: fastboot-deploy - request: pre-power-command - timeout: - minutes: 2 - -- boot: - namespace: ${LAVA_DEVICE_TYPE} - prompts: - - 'linaro-test .*#' - timeout: - minutes: 15 - method: fastboot - -- test: - namespace: ${LAVA_DEVICE_TYPE} - name: qcomlt-${QA_SERVER_PROJECT}-smoke - timeout: - minutes: 5 - definitions: - - from: inline - name: qcomlt-${QA_SERVER_PROJECT}-smoke - path: inline/qcomlt-${QA_SERVER_PROJECT}-smoke.yaml - repository: - metadata: - description: QCOM LT linux integration smoke - format: Lava-Test Test Definition 1.0 - name: qcomlt-${QA_SERVER_PROJECT}-smoke - run: - steps: - - uname -a - - df - - free - - ls -l /dev - - ls -l /sys - - ls -l /proc - - echo "linux_integration_smoke:" "pass" - -- test: - namespace: ${LAVA_DEVICE_TYPE} - name: qcomlt-${QA_SERVER_PROJECT}-bootrr - timeout: - minutes: 5 - definitions: - - from: inline - name: qcomlt-${QA_SERVER_PROJECT}-bootrr - path: inline/qcomlt-${QA_SERVER_PROJECT}-bootrr.yaml - repository: - metadata: - description: QCOM LT linux integration bootrr - format: Lava-Test Test Definition 1.0 - name: qcomlt-${QA_SERVER_PROJECT}-bootrr - run: - steps: - - if [ "${LAVA_DEVICE_TYPE}" == "dragonboard-410c" ]; then - - qcom,apq8016-sbc - - elif [ "${LAVA_DEVICE_TYPE}" == "dragonboard-820c" ]; then - - arrow,apq8096-db820c - - elif [ "${LAVA_DEVICE_TYPE}" == "sdm845-mtp" ]; then - - qcom,sdm845-mtp - - fi diff --git a/lt-qcom-linux-integration/lava-job-definitions/boards/template-functional.yaml b/lt-qcom-linux-integration/lava-job-definitions/boards/template-functional.yaml deleted file mode 100644 index 5862ff3631..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/boards/template-functional.yaml +++ /dev/null @@ -1,128 +0,0 @@ -- test: - namespace: ${LAVA_DEVICE_TYPE} - name: qcomlt-smoke - timeout: - minutes: 10 - definitions: - - repository: https://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/smoke/smoke.yaml - params: - TESTS: ${SMOKE_TESTS} - name: linux-smoke - - repository: https://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/usb-smoke/usb-smoke-test.yaml - name: linux-usb-smoke - - repository: https://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/hci-smoke/hci-smoke.yaml - params: - BOOT: auto - name: linux-hci-smoke - - repository: https://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/wlan-smoke/wlan-smoke.yaml - params: - DEVICE: ${WLAN_DEVICE} - name: linux-wlan-smoke - -- test: - namespace: ${LAVA_DEVICE_TYPE} - name: qcomlt-wlan-download - timeout: - minutes: 20 - definitions: - - repository: https://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/wlan-download/wlan-download.yaml - params: - DEVICE: ${WLAN_DEVICE} - ETHERNET_DEVICE: ${ETH_DEVICE} - SSID_NAME: LAVATESTX - SSID_PASSWORD: NepjqGbq - FILE_URL: http://testdata.validation.linaro.org/stress/stress-network.img - FILE_CHECKSUM: e5c834fbdaa6bfd8eac5eb9404eefdd4 - TIME_DELAY: ${WLAN_TIME_DELAY} - name: linux-wlan-download - -- test: - namespace: ${LAVA_DEVICE_TYPE} - name: qcomlt-storage - timeout: - minutes: 65 - definitions: - - repository: https://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/dd-wr-speed/dd-wr-speed.yaml - name: linux-dd-wr-speed - - repository: https://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/device-read-perf/device-read-perf.yaml - name: linux-device-read-perf - -- test: - namespace: ${LAVA_DEVICE_TYPE} - name: qcomlt-pm-qa - timeout: - minutes: 15 - definitions: - - repository: https://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/pm-qa/pm-qa.yaml - name: linux-pm-qa - params: - TESTS: ${PM_QA_TESTS} - -device_type: ${LAVA_DEVICE_TYPE} -job_name: lt-qcom-${QA_SERVER_PROJECT}-functional-${BUILD_NUMBER} -timeouts: - job: - minutes: 150 - action: - minutes: 15 - connection: - minutes: 2 -priority: medium -visibility: public - -metadata: - source: https://git.linaro.org/ci/job/configs.git - path: lt-qcom-linux-integration/lava-job-definitions/${LAVA_DEVICE_TYPE}/template-functional.yaml - image.type: 'kernel-ci' - image.url: "${BOOT_URL}" - kernel.tree: "${KERNEL_TREE}" - kernel.version: "${KERNEL_VERSION}" - kernel.endian: 'little' - kernel.defconfig: 'defconfig' - kernel.defconfig_base: 'defconfig' - kernel.arch_defconfig: 'arm64_defconfig' - platform.dtb: "${KERNEL_DT}" - platform.dtb_short: "${KERNEL_DT}" - platform.fastboot: true - platform.name: "${KERNEL_CI_PLATFORM}" - platform.mach: "${KERNEL_CI_MACH}" - test.plan: 'qcom-functional' - git repo: "${KERNEL_REPO}" - git branch: "${KERNEL_BRANCH}" - git commit: "${KERNEL_COMMIT}" - git describe: "${KERNEL_VERSION}" - device.type: "${KERNEL_CI_PLATFORM}" - job.arch: 'arm64' - job.name: lt-qcom-${QA_SERVER_PROJECT}-bootrr-${BUILD_NUMBER} - job.kernel_url: "${KERNEL_IMAGE_URL}" - job.kernel_image: "${KERNEL_IMAGE}" - job.modules_url: "${KERNEL_MODULES_URL}" - job.initrd_url: "${RAMDISK_URL}" - job.nfsrootfs_url: '' - job.dtb_url: "${KERNEL_DT_URL}" - -notify: - criteria: - status: finished - callback: - url: https://api.kernelci.org/callback/lava/test?lab_name=lab-qcom&status={STATUS}&status_string={STATUS_STRING} - method: POST - dataset: all - token: kernelci-lab-qcom-callback - content-type: json diff --git a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/base_template-functional.yaml b/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/base_template-functional.yaml deleted file mode 120000 index 1adb0e98a0..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/base_template-functional.yaml +++ /dev/null @@ -1 +0,0 @@ -../boards/base_template-functional.yaml
\ No newline at end of file diff --git a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/template-bootrr.yaml b/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/template-bootrr.yaml deleted file mode 120000 index e1a90b65a0..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/template-bootrr.yaml +++ /dev/null @@ -1 +0,0 @@ -../boards/template-bootrr.yaml
\ No newline at end of file diff --git a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/template-functional.yaml b/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/template-functional.yaml deleted file mode 120000 index bf272dc64d..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-410c/template-functional.yaml +++ /dev/null @@ -1 +0,0 @@ -../boards/template-functional.yaml
\ No newline at end of file diff --git a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/base_template-functional.yaml b/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/base_template-functional.yaml deleted file mode 120000 index 1adb0e98a0..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/base_template-functional.yaml +++ /dev/null @@ -1 +0,0 @@ -../boards/base_template-functional.yaml
\ No newline at end of file diff --git a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/template-bootrr.yaml b/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/template-bootrr.yaml deleted file mode 120000 index e1a90b65a0..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/template-bootrr.yaml +++ /dev/null @@ -1 +0,0 @@ -../boards/template-bootrr.yaml
\ No newline at end of file diff --git a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/template-functional.yaml b/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/template-functional.yaml deleted file mode 120000 index bf272dc64d..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/dragonboard-820c/template-functional.yaml +++ /dev/null @@ -1 +0,0 @@ -../boards/template-functional.yaml
\ No newline at end of file diff --git a/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/base_template-functional.yaml b/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/base_template-functional.yaml deleted file mode 100644 index bd033302ab..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/base_template-functional.yaml +++ /dev/null @@ -1,103 +0,0 @@ -protocols: - lava-lxc: - name: lxc-${LAVA_DEVICE_TYPE}-test - template: debian - distribution: debian - release: stretch - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 5 - to: lxc - packages: - - wget - - unzip - - img2simg - - simg2img - - e2fsprogs - - gzip - - fastboot - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'root@linaro-developer:~#' - timeout: - minutes: 5 - method: lxc - -- deploy: - timeout: - minutes: 40 - to: download - namespace: ${LAVA_DEVICE_TYPE} - images: - boot: - url: ${BOOT_ROOTFS_URL} - compression: ${BOOT_ROOTFS_URL_COMP} - userdata: - url: ${ROOTFS_URL} - compression: ${ROOTFS_URL_COMP} - os: oe - -- test: - namespace: tlxc - timeout: - minutes: 30 - definitions: - - from: inline - name: resize-rootfs - path: inline/resize-rootfs.yaml - repository: - metadata: - description: resize rootfs image for test overlay - format: Lava-Test Test Definition 1.0 - name: resize-rootfs - run: - steps: - - if [ -z "${RESIZE_ROOTFS}" ] - - then - - echo "resize_rootfs:" "skip" - - else - - cd /lava-lxc - - overlay_file=/lava-lxc/overlays/${LAVA_DEVICE_TYPE}/overlay.tar.gz - - overlay_size=$$(gzip -l $$overlay_file | tail -1 | awk '{print $$2}') - - overlay_size=$$(( $$overlay_size / 1024 )) - - simg2img ${LXC_ROOTFS_FILE} ${LXC_ROOTFS_FILE}.ext4 - - fsck_code=$$(e2fsck -y -f ${LXC_ROOTFS_FILE}.ext4) - - block_count=$$(dumpe2fs -h ${LXC_ROOTFS_FILE}.ext4 | grep "Block count" | awk '{print $$3}') - - block_size=$$(dumpe2fs -h ${LXC_ROOTFS_FILE}.ext4 | grep "Block size" | awk '{print $$3}') - - current_size=$$(( $$block_size * $$block_count / 1024 )) - - final_size=$$(( $$current_size + $$overlay_size + 32768 )) - - resize2fs ${LXC_ROOTFS_FILE}.ext4 "$$final_size"K - - img2simg ${LXC_ROOTFS_FILE}.ext4 ${LXC_ROOTFS_FILE} - - echo "resize_rootfs:" "pass" - - fi - -- deploy: - timeout: - minutes: 40 - to: fastboot - namespace: ${LAVA_DEVICE_TYPE} - images: - boot: - url: lxc:///${LXC_BOOT_ROOTFS_FILE} - userdata: - url: lxc:///${LXC_ROOTFS_FILE} - apply-overlay: true - os: oe - -- boot: - namespace: ${LAVA_DEVICE_TYPE} - auto_login: - login_prompt: 'login:' - username: 'root' - prompts: - - 'root@(.*):~#' - timeout: - minutes: 15 - method: fastboot diff --git a/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/template-bootrr.yaml b/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/template-bootrr.yaml deleted file mode 100644 index aad0dd8302..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/template-bootrr.yaml +++ /dev/null @@ -1,189 +0,0 @@ -device_type: ${LAVA_DEVICE_TYPE} -job_name: lt-qcom-${QA_SERVER_PROJECT}-bootrr-${BUILD_NUMBER} -timeouts: - job: - minutes: 90 - action: - minutes: 15 - connection: - minutes: 2 -priority: high -visibility: public - -metadata: - source: https://git.linaro.org/ci/job/configs.git - path: lt-qcom-linux-integration/lava-job-definitions/${LAVA_DEVICE_TYPE}/template-bootrr.yaml - image.type: 'kernel-ci' - image.url: "${BOOT_URL}" - kernel.tree: "${KERNEL_TREE}" - kernel.version: "${KERNEL_VERSION}" - kernel.endian: 'little' - kernel.defconfig: 'defconfig' - kernel.defconfig_base: 'defconfig' - kernel.arch_defconfig: 'arm64_defconfig' - platform.dtb: "${KERNEL_DT}" - platform.dtb_short: "${KERNEL_DT}" - platform.fastboot: true - platform.name: "${KERNEL_CI_PLATFORM}" - platform.mach: "${KERNEL_CI_MACH}" - test.plan: 'qcom-bootrr' - git repo: "${KERNEL_REPO}" - git branch: "${KERNEL_BRANCH}" - git commit: "${KERNEL_COMMIT}" - git describe: "${KERNEL_VERSION}" - device.type: "${KERNEL_CI_PLATFORM}" - job.arch: 'arm64' - job.name: lt-qcom-${QA_SERVER_PROJECT}-bootrr-${BUILD_NUMBER} - job.kernel_url: "${KERNEL_IMAGE_URL}" - job.kernel_image: "${KERNEL_IMAGE}" - job.modules_url: "${KERNEL_MODULES_URL}" - job.initrd_url: "${RAMDISK_URL}" - job.nfsrootfs_url: '' - job.dtb_url: "${KERNEL_DT_URL}" - -notify: - criteria: - status: finished - callback: - url: https://api.kernelci.org/callback/lava/test?lab_name=lab-qcom&status={STATUS}&status_string={STATUS_STRING} - method: POST - dataset: all - token: kernelci-lab-qcom-callback - content-type: json - -protocols: - lava-lxc: - name: lxc-${LAVA_DEVICE_TYPE}-test - template: debian - distribution: debian - release: stretch - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 5 - to: lxc - packages: - - wget - - unzip - - abootimg - - cpio - - gzip - - git - - mktemp - - fastboot - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'root@linaro-developer:~#' - timeout: - minutes: 5 - method: lxc - -- deploy: - timeout: - minutes: 40 - to: download - namespace: ${LAVA_DEVICE_TYPE} - images: - boot: - url: ${BOOT_URL} - compression: ${BOOT_URL_COMP} - apply-overlay: true - os: oe - -- test: - namespace: tlxc - timeout: - minutes: 30 - definitions: - - from: inline - name: ${LAVA_DEVICE_TYPE}-apply-test-overlay - path: inline/${LAVA_DEVICE_TYPE}-apply-test-overlay.yaml - repository: - metadata: - description: ${LAVA_DEVICE_TYPE} apply test overlay - format: Lava-Test Test Definition 1.0 - name: ${LAVA_DEVICE_TYPE}-apply-test-overlay - run: - steps: - - overlay_file=/lava-lxc/overlays/${LAVA_DEVICE_TYPE}/overlay.tar.gz - - if [ -f $$overlay_file ] - - then - - configs_dir=$$(mktemp -d /tmp/configs.XXXX) - - git clone --depth 1 http://git.linaro.org/ci/job/configs.git $$configs_dir - - $$configs_dir/lt-qcom-linux-integration/copy_test_overlay.sh /lava-lxc/${LXC_BOOT_FILE} $$overlay_file - - echo "apply_test_overlay:" "pass" - - else - - echo "apply_test_overlay:" "skip" - - fi - -- deploy: - timeout: - minutes: 40 - to: fastboot - namespace: ${LAVA_DEVICE_TYPE} - images: - boot: - url: lxc:///${LXC_BOOT_FILE} - os: oe - -- boot: - namespace: ${LAVA_DEVICE_TYPE} - prompts: - - 'linaro-test .*#' - timeout: - minutes: 15 - method: fastboot - -- test: - namespace: ${LAVA_DEVICE_TYPE} - name: qcomlt-${QA_SERVER_PROJECT}-smoke - timeout: - minutes: 5 - definitions: - - from: inline - name: qcomlt-${QA_SERVER_PROJECT}-smoke - path: inline/qcomlt-${QA_SERVER_PROJECT}-smoke.yaml - repository: - metadata: - description: QCOM LT linux integration smoke - format: Lava-Test Test Definition 1.0 - name: qcomlt-${QA_SERVER_PROJECT}-smoke - run: - steps: - - uname -a - - df - - free - - ls -l /dev - - ls -l /sys - - ls -l /proc - - echo "linux_integration_smoke:" "pass" - -- test: - namespace: ${LAVA_DEVICE_TYPE} - name: qcomlt-${QA_SERVER_PROJECT}-bootrr - timeout: - minutes: 5 - definitions: - - from: inline - name: qcomlt-${QA_SERVER_PROJECT}-bootrr - path: inline/qcomlt-${QA_SERVER_PROJECT}-bootrr.yaml - repository: - metadata: - description: QCOM LT linux integration bootrr - format: Lava-Test Test Definition 1.0 - name: qcomlt-${QA_SERVER_PROJECT}-bootrr - run: - steps: - - if [ "${LAVA_DEVICE_TYPE}" == "dragonboard-410c" ]; then - - qcom,apq8016-sbc - - elif [ "${LAVA_DEVICE_TYPE}" == "dragonboard-820c" ]; then - - arrow,apq8096-db820c - - elif [ "${LAVA_DEVICE_TYPE}" == "sdm845-mtp" ]; then - - qcom,sdm845-mtp - - fi diff --git a/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/template-functional.yaml b/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/template-functional.yaml deleted file mode 120000 index bf272dc64d..0000000000 --- a/lt-qcom-linux-integration/lava-job-definitions/sdm845-mtp/template-functional.yaml +++ /dev/null @@ -1 +0,0 @@ -../boards/template-functional.yaml
\ No newline at end of file diff --git a/lt-qcom-linux-integration/publishers.sh b/lt-qcom-linux-integration/publishers.sh deleted file mode 100644 index 87a11a51bc..0000000000 --- a/lt-qcom-linux-integration/publishers.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -set -ex - -# Create MD5SUMS file -(cd out && md5sum * > MD5SUMS.txt) - -wget -q ${BUILD_URL}consoleText -O out/build-log-$(echo ${JOB_NAME}|sed -e 's/[^A-Za-z0-9._-]/_/g')-${BUILD_NUMBER}.txt - -# Publish to snapshots -test -d ${HOME}/bin || mkdir ${HOME}/bin -wget 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 \ - --server ${PUBLISH_SERVER} \ - --link-latest \ - out ${PUB_DEST} diff --git a/lt-qcom-linux-integration/submit_for_testing.sh b/lt-qcom-linux-integration/submit_for_testing.sh deleted file mode 100755 index c7485fa93d..0000000000 --- a/lt-qcom-linux-integration/submit_for_testing.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/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, required by submit_for_testing.py -pip install --user --force-reinstall jinja2-cli ruamel.yaml - -export BOOT_URL=${PUBLISH_SERVER}${PUB_DEST}/${BOOT_FILE} -export BOOT_URL_COMP= -export LXC_BOOT_FILE=$(basename ${BOOT_URL}) - -export BOOT_ROOTFS_URL=${PUBLISH_SERVER}${PUB_DEST}/${BOOT_ROOTFS_FILE} -export BOOT_ROOTFS_URL_COMP= -export LXC_BOOT_ROOTFS_FILE=$(basename ${BOOT_ROOTFS_URL}) -export ROOTFS_URL=${PUBLISH_SERVER}${PUB_DEST}/${ROOTFS_FILE} -export ROOTFS_URL_COMP="gz" -export LXC_ROOTFS_FILE=$(basename ${ROOTFS_URL} .gz) -export RESIZE_ROOTFS=True - -SEND_TESTJOB=false - -case "${MACHINE}" in - apq8016-sbc|apq8096-db820c|sdm845-mtp) - SEND_TESTJOB=true - - if [ ${MACHINE} = "apq8016-sbc" ]; then - export LAVA_DEVICE_TYPE="dragonboard-410c" - export INSTALL_FASTBOOT=True - - export PM_QA_TESTS="cpufreq cpuidle cpuhotplug cputopology" - export WLAN_DEVICE="wlan0" - export WLAN_TIME_DELAY="0s" - export ETH_DEVICE="eth0" - - elif [ ${MACHINE} = "apq8096-db820c" ]; then - export LAVA_DEVICE_TYPE="dragonboard-820c" - export INSTALL_FASTBOOT=True - - export PM_QA_TESTS="cpufreq cputopology" - export WLAN_DEVICE="wlp1s0" - export WLAN_TIME_DELAY="15s" - export ETH_DEVICE="enP2p1s0" - - if [ ${QA_SERVER_PROJECT} = "linux-master" ]; then - SEND_TESTJOB=false - fi - elif [ ${MACHINE} = "sdm845-mtp" ]; then - export LAVA_DEVICE_TYPE="sdm845-mtp" - export INSTALL_FASTBOOT= - - export PM_QA_TESTS="cpufreq cpuidle cpuhotplug cputopology" - export WLAN_DEVICE="wlan0" - export WLAN_TIME_DELAY="0s" - export ETH_DEVICE="eth0" - - if [ ${QA_SERVER_PROJECT} = "linux-master" ]; then - SEND_TESTJOB=false - fi - fi - export SMOKE_TESTS="pwd, uname -a, ip a, vmstat, lsblk" - ;; - *) - echo "Skip LAVA_DEVICE_TYPE for ${MACHINE}" - ;; -esac - -if [ $SEND_TESTJOB = true ]; then - # Get KernelCI information for repo, branch and commit, enable ex to don't exit if fails and to hide the token. - set +ex - if [ ${QA_SERVER_PROJECT} = "linux-master" ]; then - KERNELCI_JSON="$(curl -s -H "Authorization: ${QCOMLT_KERNELCI_TOKEN}" "https://api.kernelci.org/job?job=mainline&git_branch=master&kernel=${KERNEL_VERSION}")" - export KERNEL_TREE="mainline" - elif [ ${QA_SERVER_PROJECT} = "linux-integration" ]; then - KERNELCI_JSON="$(curl -s -H "Authorization: ${QCOMLT_KERNELCI_TOKEN}" "https://api.kernelci.org/job?job=qcom-lt&git_branch=integration-linux-qcomlt&kernel=${KERNEL_VERSION}")" - export KERNEL_TREE="qcom-lt" - fi - set -x - - export KERNEL_REPO="$(echo "${KERNELCI_JSON}" | python -c "import sys, json; print json.load(sys.stdin)['result'][0]['git_url']")" - export KERNEL_BRANCH="$(echo "${KERNELCI_JSON}" | python -c "import sys, json; print json.load(sys.stdin)['result'][0]['git_branch']")" - export KERNEL_COMMIT="$(echo "${KERNELCI_JSON}" | python -c "import sys, json; print json.load(sys.stdin)['result'][0]['git_commit']")" - set -e - - python configs/openembedded-lkft/submit_for_testing.py \ - --device-type ${LAVA_DEVICE_TYPE} \ - --build-number ${BUILD_NUMBER} \ - --lava-server ${LAVA_SERVER} \ - --qa-server ${QA_SERVER} \ - --qa-server-team qcomlt \ - --qa-server-project ${QA_SERVER_PROJECT} \ - --git-commit ${BUILD_NUMBER} \ - --template-path configs/lt-qcom-linux-integration/lava-job-definitions \ - --template-names template-bootrr.yaml - - python configs/openembedded-lkft/submit_for_testing.py \ - --device-type ${LAVA_DEVICE_TYPE} \ - --build-number ${BUILD_NUMBER} \ - --lava-server ${LAVA_SERVER} \ - --qa-server ${QA_SERVER} \ - --qa-server-team qcomlt \ - --qa-server-project ${QA_SERVER_PROJECT} \ - --git-commit ${BUILD_NUMBER} \ - --template-path configs/lt-qcom-linux-integration/lava-job-definitions \ - --template-base-pre base_template-functional.yaml \ - --template-names template-functional.yaml -fi |