diff options
Diffstat (limited to 'openembedded-lkft')
48 files changed, 702 insertions, 1818 deletions
diff --git a/openembedded-lkft/lava-job-definitions/devices/dragonboard-410c b/openembedded-lkft/lava-job-definitions/devices/dragonboard-410c new file mode 100644 index 0000000000..7898402ff8 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/devices/dragonboard-410c @@ -0,0 +1,65 @@ +{% extends "lkft-fastboot.jinja2" %} + +{% block device_type %}dragonboard-410c{% endblock %} + +{% block deploy_target %} +- deploy: + timeout: + minutes: 15 + to: fastboot + namespace: target + connection: lxc + images: + partition: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/gpt_both0.bin + hyp: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/hyp.mbn + cdt: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbc_1.0_8016.bin + rpm: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/rpm.mbn + sbl1: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbl1.mbn + tz: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/tz.mbn + aboot: + url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/emmc_appsboot.mbn + boot: + url: {{BOOT_URL}} + rootfs: + url: {{SYSTEM_URL}} + compression: gz + apply-overlay: true + os: oe + protocols: + lava-lxc: + - action: fastboot-deploy + request: pre-power-command + timeout: + minutes: 2 +{% endblock deploy_target %} + +{% block boot_target %} +- boot: + namespace: target + auto_login: + login_prompt: 'login:' + username: linaro + login_commands: + # Become super user to run tests + - su + prompts: + - 'root@(.*):/#' + - 'root@dragonboard-410c:~#' + timeout: + minutes: 5 + method: fastboot +{% endblock boot_target %} + +{% block test_target %} +- test: + namespace: target + timeout: + minutes: 60 + definitions: +{% endblock test_target %} diff --git a/openembedded-lkft/lava-job-definitions/devices/hi6220-hikey b/openembedded-lkft/lava-job-definitions/devices/hi6220-hikey new file mode 100644 index 0000000000..f9846ab1f6 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/devices/hi6220-hikey @@ -0,0 +1,86 @@ +{% extends "lkft-fastboot.jinja2" %} + +{% block device_type %}hi6220-hikey{% endblock %} + +{% block deploy_target %} +- deploy: + timeout: + minutes: 15 + to: fastboot + namespace: target + connection: lxc + images: + ptable: + url: http://releases.linaro.org/reference-platform/embedded/hikey/16.12/rpb/bootloader/ptable-linux-8g.img + reboot: hard-reset + boot: + url: {{BOOT_URL}} + reboot: hard-reset + system: + url: {{SYSTEM_URL}} + compression: gz + apply-overlay: true + os: oe + protocols: + lava-lxc: + - action: fastboot-deploy + request: pre-power-command + timeout: + minutes: 2 +{% endblock deploy_target %} + +{% block boot_target %} +- boot: + namespace: target + auto_login: + login_prompt: 'login:' + username: linaro + login_commands: + # Become super user to run tests + - su + prompts: + - 'hikey:~' + - 'root@(.*):/#' + timeout: + minutes: 5 + method: uefi-menu + commands: fastboot + protocols: + lava-lxc: + # other action could be boot-fastboot + - action: uefi-commands + request: pre-os-command + timeout: + minutes: 2 +{% endblock boot_target %} + +{% block test_target %} +- test: + namespace: target + timeout: + minutes: 60 + definitions: + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: prep-tests + description: "Device preparation" + run: + steps: + # the image does not raise the interface itself + # force a DHCP request to avoid avahi using a zero conf address. + - udhcpc + - netstat + - ip a + - ifconfig + - df + - cat /sys/class/thermal/thermal_zone0/policy || true + - echo "power_allocator" > /sys/class/thermal/thermal_zone0/policy || true + - cat /sys/class/thermal/thermal_zone0/policy || true + - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies | awk '{ print $$(NF-1) }' > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq + - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq || true + - systemctl stop systemd-timesyncd || true + name: prep-inline + path: inline/prep.yaml +{% endblock test_target %} diff --git a/openembedded-lkft/lava-job-definitions/devices/juno-r2 b/openembedded-lkft/lava-job-definitions/devices/juno-r2 new file mode 100644 index 0000000000..ffa6504661 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/devices/juno-r2 @@ -0,0 +1,71 @@ +{% extends "lkft-nfs.jinja2" %} + +{% block global_settings %} +context: + bootloader_prompt: juno# +{{ super() }} +{% endblock global_settings %} + +{% block device_type %}juno-r2{% endblock %} + +{% block deploy_target %} +- deploy: + namespace: recovery + timeout: + minutes: 10 + to: vemsd + recovery_image: + url: {{RECOVERY_IMAGE_URL}} + compression: zip + +- deploy: + namespace: target + timeout: + minutes: 10 + to: tftp + os: oe + kernel: + url: {{KERNEL_URL}} + type: image + dtb: + url: {{DTB_URL}} + nfsrootfs: + url: {{NFSROOTFS_URL}} + compression: xz + +{% endblock deploy_target %} + +{% block boot_target %} +- boot: + namespace: target + timeout: + minutes: 10 + connection-namespace: recovery + method: u-boot + commands: nfs + auto_login: + login_prompt: 'login:' + username: root + prompts: + - root@(.*):~# +{% endblock boot_target %} + +{% block test_target %} + {{ super() }} + - from: inline + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: prep-tests + description: "Device preparation" + run: + steps: + - lsusb + - echo "y" | mkfs -t ext4 /dev/sda1 + - mkdir -p /ltp-tmp + - mount /dev/sda1 /ltp-tmp && echo "mounted" || lava-test-raise "mount /dev/sda1 failed job exit" + - df -h + - mount + name: prep-inline + path: inline/prep.yaml +{% endblock test_target %} diff --git a/openembedded-lkft/lava-job-definitions/devices/x15 b/openembedded-lkft/lava-job-definitions/devices/x15 new file mode 100644 index 0000000000..ab69536df4 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/devices/x15 @@ -0,0 +1,45 @@ +{% extends "lkft-fastboot.jinja2" %} + +{% block device_type %}x15{% endblock %} + +{% block deploy_target %} +- deploy: + timeout: + minutes: 25 + to: fastboot + namespace: target + connection: lxc + images: + userdata: + url: {{SYSTEM_URL}} + compression: gz + apply-overlay: true + os: oe +{% endblock deploy_target %} + +{% block boot_target %} +- boot: + namespace: target + auto_login: + login_prompt: 'am57xx-evm login:' + username: root + prompts: + - 'root@am57xx-evm:' + commands: + - run findfdt + - setenv console ttyS2,115200n8 + - setenv mmcdev 1 + - "setenv bootpart 1:f" + - run mmcboot + timeout: + minutes: 15 + method: u-boot +{% endblock boot_target %} + +{% block test_target %} +- test: + namespace: target + timeout: + minutes: 60 + definitions: +{% endblock test_target %} diff --git a/openembedded-lkft/lava-job-definitions/devices/x86 b/openembedded-lkft/lava-job-definitions/devices/x86 new file mode 100644 index 0000000000..06a50f7ad8 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/devices/x86 @@ -0,0 +1,41 @@ +{% extends "lkft-nfs.jinja2" %} + +{% block global_settings %} +context: + test_character_delay: 10 +{{ super() }} +{% endblock global_settings %} + +{% block device_type %}x86{% endblock %} + +{% block deploy_target %} +- deploy: + namespace: target + timeout: + minutes: 15 + to: tftp + kernel: + url: {{KERNEL_URL}} + nfsrootfs: + url: {{NFSROOTFS_URL}} + compression: xz + os: oe +{% endblock deploy_target %} + +{% block boot_target %} +- boot: + namespace: target + timeout: + minutes: 10 + method: ipxe + commands: nfs + parameters: + shutdown-message: "reboot: Restarting system" + auto_login: + login_prompt: 'login:' + username: root + login_commands: + - su + prompts: + - 'root@intel-core2-32:' +{% endblock boot_target %} diff --git a/openembedded-lkft/lava-job-definitions/dragonboard-410c/master-template-ltp.yaml.jinja2 b/openembedded-lkft/lava-job-definitions/dragonboard-410c/master-template-ltp.yaml.jinja2 deleted file mode 100644 index 1f5cae97e0..0000000000 --- a/openembedded-lkft/lava-job-definitions/dragonboard-410c/master-template-ltp.yaml.jinja2 +++ /dev/null @@ -1,146 +0,0 @@ -context: - test_character_delay: 10 - -device_type: dragonboard-410c -job_name: lkft-ltp-{{testname}}-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - ltp-{{testname}}-tests__url: ${LTP_URL} - ltp-{{testname}}-tests__version: "${LTP_VERSION}" - ltp-{{testname}}-tests__revision: "${LTP_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-dragonboard-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 15 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'root@linaro-developer:~#' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 15 - to: fastboot - namespace: dragonboard-oe - connection: lxc - images: - partition: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/gpt_both0.bin - hyp: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/hyp.mbn - cdt: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbc_1.0_8016.bin - rpm: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/rpm.mbn - sbl1: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbl1.mbn - tz: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/tz.mbn - aboot: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/emmc_appsboot.mbn - boot: - url: ${BOOT_URL} - rootfs: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - os: oe - protocols: - lava-lxc: - - action: fastboot-deploy - request: pre-power-command - timeout: - minutes: 2 - -- boot: - namespace: dragonboard-oe - auto_login: - login_prompt: 'login:' - username: linaro - login_commands: - # Become super user to run tests - - su - prompts: - - 'root@(.*):/#' - - 'root@dragonboard-410c:~#' - timeout: - minutes: 5 - method: fastboot - -- test: - namespace: dragonboard-oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/ltp/ltp.yaml - parameters: - SKIP_INSTALL: 'true' - TST_CMDFILES: '{{testname}}' - SKIPFILE: 'skipfile-lkft-dragonboard' - TIMEOUT_MULTIPLIER: 3 - name: ltp-{{testname}}-tests - timeout: - minutes: 60 diff --git a/openembedded-lkft/lava-job-definitions/dragonboard-410c/template-kselftest.yaml b/openembedded-lkft/lava-job-definitions/dragonboard-410c/template-kselftest.yaml deleted file mode 100644 index 2540c07f30..0000000000 --- a/openembedded-lkft/lava-job-definitions/dragonboard-410c/template-kselftest.yaml +++ /dev/null @@ -1,144 +0,0 @@ -context: - test_character_delay: 10 - -device_type: dragonboard-410x -job_name: lkft-kselftest-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - kselftest__url: ${KSELFTESTS_URL} - kselftest__version: "${KSELFTESTS_VERSION}" - kselftest__revision: "${KSELFTESTS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-dragonboard-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 15 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'root@linaro-developer:~#' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 15 - to: fastboot - namespace: dragonboard-oe - connection: lxc - images: - partition: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/gpt_both0.bin - hyp: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/hyp.mbn - cdt: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbc_1.0_8016.bin - rpm: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/rpm.mbn - sbl1: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbl1.mbn - tz: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/tz.mbn - aboot: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/emmc_appsboot.mbn - boot: - url: ${BOOT_URL} - rootfs: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - os: oe - protocols: - lava-lxc: - - action: fastboot-deploy - request: pre-power-command - timeout: - minutes: 2 - -- boot: - namespace: dragonboard-oe - auto_login: - login_prompt: 'login:' - username: linaro - login_commands: - # Become super user to run tests - - su - prompts: - - 'root@(.*):/#' - - 'root@dragonboard-410c:~#' - timeout: - minutes: 5 - method: fastboot - -- test: - namespace: dragonboard-oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/kselftest/kselftest.yaml - name: kselftest - parameters: - SKIPFILE: skipfiles/skiplist_${DEVICE_TYPE}_${KERNEL_VERSION} - KSELFTEST_PATH: ${KSELFTEST_PATH} - timeout: - minutes: 45 diff --git a/openembedded-lkft/lava-job-definitions/dragonboard-410c/template-libhugetlbfs.yaml b/openembedded-lkft/lava-job-definitions/dragonboard-410c/template-libhugetlbfs.yaml deleted file mode 100644 index 9e7dc45522..0000000000 --- a/openembedded-lkft/lava-job-definitions/dragonboard-410c/template-libhugetlbfs.yaml +++ /dev/null @@ -1,141 +0,0 @@ -context: - test_character_delay: 10 - -device_type: dragonboard-410c -job_name: lkft-libhugetlbfs-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - libhugetlbfs__url: ${LIBHUGETLBFS_URL} - libhugetlbfs__version: "${LIBHUGETLBFS_VERSION}" - libhugetlbfs__revision: "${LIBHUGETLBFS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-dragonboard-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 15 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'root@linaro-developer:~#' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 15 - to: fastboot - namespace: dragonboard-oe - connection: lxc - images: - partition: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/gpt_both0.bin - hyp: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/hyp.mbn - cdt: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbc_1.0_8016.bin - rpm: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/rpm.mbn - sbl1: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/sbl1.mbn - tz: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/tz.mbn - aboot: - url: http://images-internal/dragonboard410c/linaro/rescue/17.09/linux/emmc_appsboot.mbn - boot: - url: ${BOOT_URL} - rootfs: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - os: oe - protocols: - lava-lxc: - - action: fastboot-deploy - request: pre-power-command - timeout: - minutes: 2 - -- boot: - namespace: dragonboard-oe - auto_login: - login_prompt: 'login:' - username: linaro - login_commands: - # Become super user to run tests - - su - prompts: - - 'root@(.*):/#' - - 'root@dragonboard-410c:~#' - timeout: - minutes: 5 - method: fastboot - -- test: - namespace: dragonboard-oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/libhugetlbfs/libhugetlbfs.yaml - name: libhugetlbfs - timeout: - minutes: 30 diff --git a/openembedded-lkft/lava-job-definitions/hi6220-hikey/master-template-ltp.yaml.jinja2 b/openembedded-lkft/lava-job-definitions/hi6220-hikey/master-template-ltp.yaml.jinja2 deleted file mode 100644 index 68a328be62..0000000000 --- a/openembedded-lkft/lava-job-definitions/hi6220-hikey/master-template-ltp.yaml.jinja2 +++ /dev/null @@ -1,168 +0,0 @@ -context: - test_character_delay: 10 - -device_type: hi6220-hikey -job_name: lkft-ltp-{{testname}}-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -# run udhcpc in the test shell before accessing the internet - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - ltp-{{testname}}-tests__url: ${LTP_URL} - ltp-{{testname}}-tests__version: "${LTP_VERSION}" - ltp-{{testname}}-tests__revision: "${LTP_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-hikey-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 15 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'hikey:/' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 15 - to: fastboot - namespace: hikey-oe - connection: lxc - images: - ptable: - url: http://releases.linaro.org/reference-platform/embedded/hikey/16.12/rpb/bootloader/ptable-linux-8g.img - reboot: hard-reset - boot: - url: ${BOOT_URL} - reboot: hard-reset - system: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - # ensure that this job raises a network interface with DHCP before relying on internet access - os: oe - protocols: - lava-lxc: - - action: fastboot-deploy - request: pre-power-command - timeout: - minutes: 2 - -- boot: - namespace: hikey-oe - auto_login: - login_prompt: 'login:' - username: linaro - login_commands: - # Become super user to run tests - - su - prompts: - - 'hikey:~' - - 'root@(.*):/#' - timeout: - minutes: 5 - method: uefi-menu - commands: fastboot - protocols: - lava-lxc: - # other action could be boot-fastboot - - action: uefi-commands - request: pre-os-command - timeout: - minutes: 2 -- test: - namespace: hikey-oe - timeout: - minutes: 60 - definitions: - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: prep-tests - description: "Device preparation" - run: - steps: - # the image does not raise the interface itself - # force a DHCP request to avoid avahi using a zero conf address. - - udhcpc - - netstat - - ip a - - ifconfig - - df - - cat /sys/class/thermal/thermal_zone0/policy || true - - echo "power_allocator" > /sys/class/thermal/thermal_zone0/policy || true - - cat /sys/class/thermal/thermal_zone0/policy || true - - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies | awk '{ print $$(NF-1) }' > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq - - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq || true - name: prep-inline - path: inline/prep.yaml - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/ltp/ltp.yaml - parameters: - SKIP_INSTALL: 'true' - TST_CMDFILES: '{{testname}}' - SKIPFILE: 'skipfile-lkft-hikey' - TIMEOUT_MULTIPLIER: 3 - name: ltp-{{testname}}-tests - timeout: - minutes: 60 diff --git a/openembedded-lkft/lava-job-definitions/hi6220-hikey/template-kselftest.yaml b/openembedded-lkft/lava-job-definitions/hi6220-hikey/template-kselftest.yaml deleted file mode 100644 index f6dbe28db1..0000000000 --- a/openembedded-lkft/lava-job-definitions/hi6220-hikey/template-kselftest.yaml +++ /dev/null @@ -1,184 +0,0 @@ -context: - test_character_delay: 10 - -device_type: hi6220-hikey -job_name: lkft-kselftest-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -# run udhcpc in the test shell before accessing the internet - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - kselftest__url: ${KSELFTESTS_URL} - kselftest__version: "${KSELFTESTS_VERSION}" - kselftest__revision: "${KSELFTESTS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-hikey-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 15 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'hikey:/' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 15 - to: fastboot - namespace: hikey-oe - connection: lxc - images: - ptable: - url: http://releases.linaro.org/reference-platform/embedded/hikey/16.12/rpb/bootloader/ptable-linux-8g.img - reboot: hard-reset - boot: - url: ${BOOT_URL} - reboot: hard-reset - system: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - # ensure that this job raises a network interface with DHCP before relying on internet access - os: oe - protocols: - lava-lxc: - - action: fastboot-deploy - request: pre-power-command - timeout: - minutes: 2 - -- boot: - namespace: hikey-oe - auto_login: - login_prompt: 'login:' - username: linaro - login_commands: - # Become super user to run tests - - su - prompts: - - 'hikey:~' - - 'root@(.*):/#' - timeout: - minutes: 5 - method: uefi-menu - commands: fastboot - protocols: - lava-lxc: - # other action could be boot-fastboot - - action: uefi-commands - request: pre-os-command - timeout: - minutes: 2 -- test: - namespace: hikey-oe - timeout: - minutes: 60 - definitions: - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: prep-tests - description: "Device preparation" - run: - steps: - # the image does not raise the interface itself - # force a DHCP request to avoid avahi using a zero conf address. - - udhcpc - - netstat - - ip a - - ifconfig - - df - - cat /sys/class/thermal/thermal_zone0/policy || true - - echo "power_allocator" > /sys/class/thermal/thermal_zone0/policy || true - - cat /sys/class/thermal/thermal_zone0/policy || true - - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies | awk '{ print $$(NF-1) }' > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq - - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq || true - - systemctl stop systemd-timesyncd || true - name: prep-inline - path: inline/prep.yaml - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/kselftest/kselftest.yaml - name: kselftest - parameters: - SKIPFILE: skipfiles/skiplist_${DEVICE_TYPE}_${KERNEL_VERSION} - KSELFTEST_PATH: ${KSELFTEST_PATH} - timeout: - minutes: 45 - -- test: - namespace: tlxc - timeout: - minutes: 5 - definitions: - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: dummy-tests - description: "Dummy tests" - run: - steps: - - ls - name: dummy-test - path: inline/dummy.yaml diff --git a/openembedded-lkft/lava-job-definitions/hi6220-hikey/template-libhugetlbfs.yaml b/openembedded-lkft/lava-job-definitions/hi6220-hikey/template-libhugetlbfs.yaml deleted file mode 100644 index 002e7a4fb3..0000000000 --- a/openembedded-lkft/lava-job-definitions/hi6220-hikey/template-libhugetlbfs.yaml +++ /dev/null @@ -1,180 +0,0 @@ -context: - test_character_delay: 10 - -device_type: hi6220-hikey -job_name: lkft-libhugetlbfs-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -# run udhcpc in the test shell before accessing the internet - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - libhugetlbfs__url: ${LIBHUGETLBFS_URL} - libhugetlbfs__version: "${LIBHUGETLBFS_VERSION}" - libhugetlbfs__revision: "${LIBHUGETLBFS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-hikey-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 15 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'hikey:/' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 15 - to: fastboot - namespace: hikey-oe - connection: lxc - images: - ptable: - url: http://releases.linaro.org/reference-platform/embedded/hikey/16.12/rpb/bootloader/ptable-linux-8g.img - reboot: hard-reset - boot: - url: ${BOOT_URL} - reboot: hard-reset - system: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - # ensure that this job raises a network interface with DHCP before relying on internet access - os: oe - protocols: - lava-lxc: - - action: fastboot-deploy - request: pre-power-command - timeout: - minutes: 2 - -- boot: - namespace: hikey-oe - auto_login: - login_prompt: 'login:' - username: linaro - login_commands: - # Become super user to run tests - - su - prompts: - - 'hikey:~' - - 'root@(.*):/#' - timeout: - minutes: 5 - method: uefi-menu - commands: fastboot - protocols: - lava-lxc: - # other action could be boot-fastboot - - action: uefi-commands - request: pre-os-command - timeout: - minutes: 2 -- test: - namespace: hikey-oe - timeout: - minutes: 60 - definitions: - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: prep-tests - description: "Device preparation" - run: - steps: - # the image does not raise the interface itself - # force a DHCP request to avoid avahi using a zero conf address. - - udhcpc - - netstat - - ip a - - ifconfig - - df - - cat /sys/class/thermal/thermal_zone0/policy || true - - echo "power_allocator" > /sys/class/thermal/thermal_zone0/policy || true - - cat /sys/class/thermal/thermal_zone0/policy || true - - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies | awk '{ print $$(NF-1) }' > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq - - cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq || true - name: prep-inline - path: inline/prep.yaml - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/libhugetlbfs/libhugetlbfs.yaml - name: libhugetlbfs - timeout: - minutes: 30 - -- test: - namespace: tlxc - timeout: - minutes: 5 - definitions: - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: dummy-tests - description: "Dummy tests" - run: - steps: - - ls - name: dummy-test - path: inline/dummy.yaml diff --git a/openembedded-lkft/lava-job-definitions/juno-r2/master-template-ltp.yaml.jinja2 b/openembedded-lkft/lava-job-definitions/juno-r2/master-template-ltp.yaml.jinja2 deleted file mode 100644 index 0d5a2d979f..0000000000 --- a/openembedded-lkft/lava-job-definitions/juno-r2/master-template-ltp.yaml.jinja2 +++ /dev/null @@ -1,104 +0,0 @@ -context: - bootloader_prompt: juno# - -device_type: juno-r2 -job_name: lkft-ltp-{{testname}}-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - ltp-{{testname}}-tests__url: ${LTP_URL} - ltp-{{testname}}-tests__version: "${LTP_VERSION}" - ltp-{{testname}}-tests__revision: "${LTP_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -actions: -- deploy: - namespace: recovery - timeout: - minutes: 10 - to: vemsd - recovery_image: - url: ${RECOVERY_IMAGE_URL} - compression: zip - -- deploy: - namespace: oe - timeout: - minutes: 10 - to: tftp - os: oe - kernel: - url: ${KERNEL_URL} - type: image - dtb: - url: ${DTB_URL} - nfsrootfs: - url: ${NFSROOTFS_URL} - compression: xz - -- boot: - namespace: oe - timeout: - minutes: 10 - connection-namespace: recovery - method: u-boot - commands: nfs - auto_login: - login_prompt: 'login:' - username: root - prompts: - - root@(.*):~# - -- test: - namespace: oe - timeout: - minutes: 10 - definitions: - - from: inline - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: prep-tests - description: "Device preparation" - run: - steps: - - lsusb - - echo "y" | mkfs -t ext4 /dev/sda1 - - mkdir -p /ltp-tmp - - mount /dev/sda1 /ltp-tmp && echo "mounted" || lava-test-raise "mount /dev/sda1 failed job exit" - - df -h - - mount - name: prep-inline - path: inline/prep.yaml - -- test: - namespace: oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/ltp/ltp.yaml - parameters: - SKIP_INSTALL: 'true' - TST_CMDFILES: '{{testname}}' - SKIPFILE: 'skipfile-lsk-juno' - TIMEOUT_MULTIPLIER: 3 - name: ltp-{{testname}}-tests - timeout: - minutes: 60 diff --git a/openembedded-lkft/lava-job-definitions/juno-r2/template-kselftest.yaml b/openembedded-lkft/lava-job-definitions/juno-r2/template-kselftest.yaml deleted file mode 100644 index 5e4e82d754..0000000000 --- a/openembedded-lkft/lava-job-definitions/juno-r2/template-kselftest.yaml +++ /dev/null @@ -1,80 +0,0 @@ -context: - bootloader_prompt: juno# - -device_type: juno-r2 -job_name: lkft-kselftest-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - kselftest__url: ${KSELFTESTS_URL} - kselftest__version: "${KSELFTESTS_VERSION}" - kselftest__revision: "${KSELFTESTS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -actions: -- deploy: - namespace: recovery - timeout: - minutes: 10 - to: vemsd - recovery_image: - url: ${RECOVERY_IMAGE_URL} - compression: zip - -- deploy: - namespace: oe - timeout: - minutes: 10 - to: tftp - os: oe - kernel: - url: ${KERNEL_URL} - type: image - dtb: - url: ${DTB_URL} - nfsrootfs: - url: ${NFSROOTFS_URL} - compression: xz - -- boot: - namespace: oe - timeout: - minutes: 10 - connection-namespace: recovery - method: u-boot - commands: nfs - auto_login: - login_prompt: 'login:' - username: root - prompts: - - root@(.*):~# - -- test: - namespace: oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/kselftest/kselftest.yaml - name: kselftest - parameters: - SKIPFILE: skipfiles/skiplist_${DEVICE_TYPE}_${KERNEL_VERSION} - KSELFTEST_PATH: ${KSELFTEST_PATH} - timeout: - minutes: 45 diff --git a/openembedded-lkft/lava-job-definitions/juno-r2/template-libhugetlbfs.yaml b/openembedded-lkft/lava-job-definitions/juno-r2/template-libhugetlbfs.yaml deleted file mode 100644 index 0115dc2758..0000000000 --- a/openembedded-lkft/lava-job-definitions/juno-r2/template-libhugetlbfs.yaml +++ /dev/null @@ -1,77 +0,0 @@ -context: - bootloader_prompt: juno# - -device_type: juno-r2 -job_name: lkft-libhugetlbfs-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - libhugetlbfs__url: ${LIBHUGETLBFS_URL} - libhugetlbfs__version: "${LIBHUGETLBFS_VERSION}" - libhugetlbfs__revision: "${LIBHUGETLBFS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -actions: -- deploy: - namespace: recovery - timeout: - minutes: 10 - to: vemsd - recovery_image: - url: ${RECOVERY_IMAGE_URL} - compression: zip - -- deploy: - namespace: oe - timeout: - minutes: 10 - to: tftp - os: oe - kernel: - url: ${KERNEL_URL} - type: image - dtb: - url: ${DTB_URL} - nfsrootfs: - url: ${NFSROOTFS_URL} - compression: xz - -- boot: - namespace: oe - timeout: - minutes: 10 - connection-namespace: recovery - method: u-boot - commands: nfs - auto_login: - login_prompt: 'login:' - username: root - prompts: - - root@(.*):~# - -- test: - namespace: oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/libhugetlbfs/libhugetlbfs.yaml - name: libhugetlbfs - timeout: - minutes: 30 diff --git a/openembedded-lkft/lava-job-definitions/lkft-fastboot.jinja2 b/openembedded-lkft/lava-job-definitions/lkft-fastboot.jinja2 new file mode 100644 index 0000000000..0d7a020a6a --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/lkft-fastboot.jinja2 @@ -0,0 +1,69 @@ +{% extends "lkft.jinja2" %} + +{% block global_settings %} +context: + test_character_delay: 10 +{{ super() }} +{% endblock global_settings %} + +{% block protocols %} +protocols: + lava-lxc: + name: lxc-target + template: debian + distribution: debian + release: jessie + arch: amd64 + mirror: http://mirror.bytemark.co.uk/debian +{% endblock protocols %} + +{% block actions %} +- deploy: + namespace: tlxc + timeout: + minutes: 15 + to: lxc + packages: + - wget + - unzip + os: debian + +- boot: + namespace: tlxc + prompts: + - 'root@(.*):/#' + timeout: + minutes: 5 + method: lxc + +- test: + namespace: tlxc + timeout: + minutes: 10 + definitions: + - from: inline + name: install-google-fastboot + path: inline/install-google-fastboot.yaml + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: install-fastboot + description: "Install fastboot provided by google" + run: + steps: + - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip + - unzip platform-tools_r26.0.0-linux.zip + - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot + - ln -s `pwd`/platform-tools/adb /usr/bin/adb + - fastboot --version + +{% block deploy_target %} +{% endblock deploy_target %} + +{% block boot_target %} +{% endblock boot_target %} + +{% block test_target %} +{% endblock test_target %} + +{% endblock actions %} diff --git a/openembedded-lkft/lava-job-definitions/lkft-nfs.jinja2 b/openembedded-lkft/lava-job-definitions/lkft-nfs.jinja2 new file mode 100644 index 0000000000..1176bd79ea --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/lkft-nfs.jinja2 @@ -0,0 +1,19 @@ +{% extends "lkft.jinja2" %} + +{% block actions %} + +{% block deploy_target %} +{% endblock deploy_target %} + +{% block boot_target %} +{% endblock boot_target %} + +{% block test_target %} +- test: + namespace: target + timeout: + minutes: 60 + definitions: +{% endblock test_target %} + +{% endblock actions %} diff --git a/openembedded-lkft/lava-job-definitions/lkft.jinja2 b/openembedded-lkft/lava-job-definitions/lkft.jinja2 new file mode 100644 index 0000000000..f3c9d314d7 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/lkft.jinja2 @@ -0,0 +1,27 @@ +{% extends "master.jinja2" %} + +{% block global_settings %} +timeouts: + job: + minutes: {% if job_timeout is defined %}{{ job_timeout }}{% else %}90{% endif %} + action: + minutes: 10 + connection: + minutes: 2 +{% endblock global_settings %} + +{% block priority %}{{LAVA_JOB_PRIORITY}}{% endblock priority %} +{% block visibility %}public{% endblock visibility %} + +{% block metadata %} + git branch: {{KERNEL_BRANCH}} + git repo: {{KERNEL_REPO}} + git commit: {{KERNEL_COMMIT}} + git describe: {{KERNEL_DESCRIBE}} + make_kernelversion: "{{MAKE_KERNELVERSION}}" + kernel-config: {{KERNEL_CONFIG_URL}} + kernel-defconfig: {{KERNEL_DEFCONFIG_URL}} + build-url: {{BUILD_URL}} + build-location: {{SNAPSHOTS_URL}}/{{BASE_URL}} + series: lkft +{% endblock metadata %} diff --git a/openembedded-lkft/lava-job-definitions/master.jinja2 b/openembedded-lkft/lava-job-definitions/master.jinja2 new file mode 100644 index 0000000000..5509c8cee8 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/master.jinja2 @@ -0,0 +1,18 @@ +{% block global_settings %} +{% endblock global_settings %} + +device_type: {% block device_type %}{% endblock %} +job_name: {% block job_name %}{% endblock %} +priority: {% block priority %}{% endblock %} +visibility: {% block visibility %}{% endblock %} + +metadata: +{% block metadata %} +{% endblock metadata %} + +{% block protocols %} +{% endblock protocols %} + +actions: +{% block actions %} +{% endblock actions %} diff --git a/openembedded-lkft/lava-job-definitions/master/template-ltp.yaml.jinja2 b/openembedded-lkft/lava-job-definitions/master/template-ltp.yaml.jinja2 new file mode 100644 index 0000000000..9894b2eb1b --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/master/template-ltp.yaml.jinja2 @@ -0,0 +1,25 @@ +{% extends device_type %} + +{% block metadata %} + {{ super() }} + ltp-{{testname}}-tests__url: {{LTP_URL}} + ltp-{{testname}}-tests__version: "{{LTP_VERSION}}" + ltp-{{testname}}-tests__revision: "{{LTP_REVISION}}" +{% endblock metadata %} + +{% block job_name %}lkft-ltp-{{testname}}-{{KERNEL_BRANCH}}-{{BUILD_NUMBER}}{% endblock job_name %} + +{% block test_target %} + {{ super() }} + - repository: git://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/ltp/ltp.yaml + parameters: + SKIP_INSTALL: 'true' + TST_CMDFILES: '{{testname}}' + SKIPFILE: 'skipfile-lkft-hikey' + TIMEOUT_MULTIPLIER: 3 + name: ltp-{{testname}}-tests + timeout: + minutes: {% if job_timeout is defined %}{{ job_timeout-5|int|abs }}{% else %}60{% endif %} +{% endblock test_target %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/kselftests.yaml b/openembedded-lkft/lava-job-definitions/testplan/kselftests.yaml new file mode 100644 index 0000000000..16dcaae43e --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/kselftests.yaml @@ -0,0 +1,24 @@ +{% extends device_type %} + +{% set job_timeout = 45 %} +{% block metadata %} + {{ super() }} + kselftest__url: {{KSELFTESTS_URL}} + kselftest__version: "{{KSELFTESTS_VERSION}}" + kselftest__revision: "{{KSELFTESTS_REVISION}}" +{% endblock metadata %} + +{% block job_name %}lkft-kselftests-{{KERNEL_BRANCH}}-{{BUILD_NUMBER}}{% endblock job_name %} + +{% block test_target %} + {{ super() }} + - repository: git://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/kselftest/kselftest.yaml + name: kselftest + parameters: + SKIPFILE: skipfiles/skiplist_{{DEVICE_TYPE}}_{{KERNEL_VERSION}} + KSELFTEST_PATH: {{KSELFTEST_PATH}} + timeout: + minutes: 40 +{% endblock test_target %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/libhugetlbfs.yaml b/openembedded-lkft/lava-job-definitions/testplan/libhugetlbfs.yaml new file mode 100644 index 0000000000..65822c1d85 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/libhugetlbfs.yaml @@ -0,0 +1,21 @@ +{% extends device_type %} + +{% set job_timeout = 25 %} +{% block metadata %} + {{ super() }} + libhugetlbfs__url: {{LIBHUGETLBFS_URL}} + libhugetlbfs__version: "{{LIBHUGETLBFS_VERSION}}" + libhugetlbfs__revision: "{{LIBHUGETLBFS_REVISION}}" +{% endblock metadata %} + +{% block job_name %}lkft-kselftests-{{KERNEL_BRANCH}}-{{BUILD_NUMBER}}{% endblock job_name %} + +{% block test_target %} + {{ super() }} + - repository: git://git.linaro.org/qa/test-definitions.git + from: git + path: automated/linux/libhugetlbfs/libhugetlbfs.yaml + name: libhugetlbfs + timeout: + minutes: 20 +{% endblock test_target %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-cap_bounds.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-cap_bounds.yaml new file mode 100644 index 0000000000..36bd4770ef --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-cap_bounds.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'cap_bounds' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-containers.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-containers.yaml new file mode 100644 index 0000000000..462a8e2535 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-containers.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'containers' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-fcntl-locktests.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-fcntl-locktests.yaml new file mode 100644 index 0000000000..118508df39 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-fcntl-locktests.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'fcntl-locktests' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-filecaps.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-filecaps.yaml new file mode 100644 index 0000000000..397951c51d --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-filecaps.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'filecaps' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-fs.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-fs.yaml new file mode 100644 index 0000000000..50e629d5cd --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-fs.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'fs' %} +{% set job_timeout = 75 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-fs_bind.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-fs_bind.yaml new file mode 100644 index 0000000000..09ff06aaa8 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-fs_bind.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'fs_bind' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-fs_perms_simple.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-fs_perms_simple.yaml new file mode 100644 index 0000000000..06281b5869 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-fs_perms_simple.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'fs_perms_simple' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-fsx.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-fsx.yaml new file mode 100644 index 0000000000..244dda0010 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-fsx.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'fsx' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-hugetlb.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-hugetlb.yaml new file mode 100644 index 0000000000..7f5a66a371 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-hugetlb.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'hugetlb' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-io.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-io.yaml new file mode 100644 index 0000000000..3cb7d6d2f4 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-io.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'io' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-ipc.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-ipc.yaml new file mode 100644 index 0000000000..544f6450ef --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-ipc.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'ipc' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-math.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-math.yaml new file mode 100644 index 0000000000..fe030d0025 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-math.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'math' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-nptl.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-nptl.yaml new file mode 100644 index 0000000000..90dbdf0c83 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-nptl.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'nptl' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-pty.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-pty.yaml new file mode 100644 index 0000000000..ed9609eba7 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-pty.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'pty' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-sched.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-sched.yaml new file mode 100644 index 0000000000..6d713cfa1e --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-sched.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'sched' %} +{% set job_timeout = 30 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-securebits.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-securebits.yaml new file mode 100644 index 0000000000..da2043ef0a --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-securebits.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'securebits' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-syscalls.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-syscalls.yaml new file mode 100644 index 0000000000..d2657deef4 --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-syscalls.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'syscalls' %} +{% set job_timeout = 60 %} diff --git a/openembedded-lkft/lava-job-definitions/testplan/ltp-timers.yaml b/openembedded-lkft/lava-job-definitions/testplan/ltp-timers.yaml new file mode 100644 index 0000000000..95bcc89add --- /dev/null +++ b/openembedded-lkft/lava-job-definitions/testplan/ltp-timers.yaml @@ -0,0 +1,4 @@ +{% extends "master/template-ltp.yaml.jinja2" %} + +{% set testname = 'timers' %} +{% set job_timeout = 20 %} diff --git a/openembedded-lkft/lava-job-definitions/x15/master-template-ltp.yaml.jinja2 b/openembedded-lkft/lava-job-definitions/x15/master-template-ltp.yaml.jinja2 deleted file mode 100644 index fda64dca31..0000000000 --- a/openembedded-lkft/lava-job-definitions/x15/master-template-ltp.yaml.jinja2 +++ /dev/null @@ -1,125 +0,0 @@ -context: - test_character_delay: 10 - -device_type: x15 -job_name: lkft-ltp-{{testname}}-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 90 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - ltp-{{testname}}-tests__url: ${LTP_URL} - ltp-{{testname}}-tests__version: "${LTP_VERSION}" - ltp-{{testname}}-tests__revision: "${LTP_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-x15-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 5 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'shell@am57xevm:/' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 25 - to: fastboot - namespace: x15-oe - images: - userdata: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - os: oe - -- boot: - namespace: x15-oe - auto_login: - login_prompt: 'am57xx-evm login:' - username: root - prompts: - - 'root@am57xx-evm:' - commands: - - run findfdt - - setenv console ttyS2,115200n8 - - setenv mmcdev 1 - - "setenv bootpart 1:f" - - run mmcboot - timeout: - minutes: 15 - method: u-boot - -- test: - namespace: x15-oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/ltp/ltp.yaml - parameters: - SKIP_INSTALL: 'true' - TST_CMDFILES: '{{testname}}' - SKIPFILE: 'skipfile-lkft-x15' - TIMEOUT_MULTIPLIER: 3 - name: ltp-{{testname}}-tests - timeout: - minutes: 90 diff --git a/openembedded-lkft/lava-job-definitions/x15/template-kselftest.yaml b/openembedded-lkft/lava-job-definitions/x15/template-kselftest.yaml deleted file mode 100644 index 39330fdd7b..0000000000 --- a/openembedded-lkft/lava-job-definitions/x15/template-kselftest.yaml +++ /dev/null @@ -1,123 +0,0 @@ -context: - test_character_delay: 10 - -device_type: x15 -job_name: lkft-kselftest-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 90 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - kselftest__url: ${KSELFTESTS_URL} - kselftest__version: "${KSELFTESTS_VERSION}" - kselftest__revision: "${KSELFTESTS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-x15-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 5 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'shell@am57xevm:/' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 25 - to: fastboot - namespace: x15-oe - images: - userdata: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - os: oe - -- boot: - namespace: x15-oe - auto_login: - login_prompt: 'am57xx-evm login:' - username: root - prompts: - - 'root@am57xx-evm:' - commands: - - run findfdt - - setenv console ttyS2,115200n8 - - setenv mmcdev 1 - - "setenv bootpart 1:f" - - run mmcboot - timeout: - minutes: 15 - method: u-boot - -- test: - namespace: x15-oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/kselftest/kselftest.yaml - name: kselftest - parameters: - SKIPFILE: skipfiles/skiplist_${DEVICE_TYPE}_${KERNEL_VERSION} - KSELFTEST_PATH: ${KSELFTEST_PATH} - timeout: - minutes: 45 diff --git a/openembedded-lkft/lava-job-definitions/x15/template-libhugetlbfs.yaml b/openembedded-lkft/lava-job-definitions/x15/template-libhugetlbfs.yaml deleted file mode 100644 index c0b3b49237..0000000000 --- a/openembedded-lkft/lava-job-definitions/x15/template-libhugetlbfs.yaml +++ /dev/null @@ -1,123 +0,0 @@ -context: - test_character_delay: 10 - -device_type: x15 -job_name: lkft-libhugetlbfs-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 90 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - libhugetlbfs__url: ${LIBHUGETLBFS_URL} - libhugetlbfs__version: "${LIBHUGETLBFS_VERSION}" - libhugetlbfs__revision: "${LIBHUGETLBFS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -protocols: - lava-lxc: - name: lxc-x15-oe - template: debian - distribution: debian - release: jessie - arch: amd64 - mirror: http://mirror.bytemark.co.uk/debian - -actions: -- deploy: - namespace: tlxc - timeout: - minutes: 5 - to: lxc - packages: - - wget - - unzip - os: debian - -- boot: - namespace: tlxc - prompts: - - 'root@(.*):/#' - - 'shell@am57xevm:/' - timeout: - minutes: 5 - method: lxc - -- test: - namespace: tlxc - timeout: - minutes: 10 - definitions: - - from: inline - name: install-google-fastboot - path: inline/install-google-fastboot.yaml - repository: - metadata: - format: Lava-Test Test Definition 1.0 - name: install-fastboot - description: "Install fastboot provided by google" - run: - steps: - - wget http://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip - - unzip platform-tools_r26.0.0-linux.zip - - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot - - ln -s `pwd`/platform-tools/adb /usr/bin/adb - - fastboot --version - -- deploy: - timeout: - minutes: 25 - to: fastboot - namespace: x15-oe - images: - userdata: - url: ${SYSTEM_URL} - compression: gz - apply-overlay: true - os: oe - -- boot: - namespace: x15-oe - auto_login: - login_prompt: 'am57xx-evm login:' - username: root - prompts: - - 'root@am57xx-evm:' - commands: - - run findfdt - - setenv console ttyS2,115200n8 - - setenv mmcdev 1 - - "setenv bootpart 1:f" - - run mmcboot - timeout: - minutes: 15 - method: u-boot - -- test: - namespace: x15-oe - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/libhugetlbfs/libhugetlbfs.yaml - name: libhugetlbfs - parameters: - # default is 64. x15 is 32 bit platform - WORD_SIZE: 32 - timeout: - minutes: 30 diff --git a/openembedded-lkft/lava-job-definitions/x86/master-template-ltp.yaml.jinja2 b/openembedded-lkft/lava-job-definitions/x86/master-template-ltp.yaml.jinja2 deleted file mode 100644 index 7f1ca8c0e2..0000000000 --- a/openembedded-lkft/lava-job-definitions/x86/master-template-ltp.yaml.jinja2 +++ /dev/null @@ -1,72 +0,0 @@ -context: - test_character_delay: 10 - -device_type: x86 -job_name: lkft-ltp-{{testname}}-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 90 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - ltp-{{testname}}-tests__url: ${LTP_URL} - ltp-{{testname}}-tests__version: "${LTP_VERSION}" - ltp-{{testname}}-tests__revision: "${LTP_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -actions: -- deploy: - timeout: - minutes: 15 - to: tftp - kernel: - url: ${KERNEL_URL} - nfsrootfs: - url: ${NFSROOTFS_URL} - compression: xz - os: oe - -- boot: - timeout: - minutes: 10 - method: ipxe - commands: nfs - parameters: - shutdown-message: "reboot: Restarting system" - auto_login: - login_prompt: 'login:' - username: root - login_commands: - - su - prompts: - - 'root@intel-core2-32:' - -- test: - timeout: - minutes: 90 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/ltp/ltp.yaml - parameters: - SKIP_INSTALL: 'true' - TST_CMDFILES: '{{testname}}' - SKIPFILE: 'skipfile-lkft-x86' - TIMEOUT_MULTIPLIER: 3 - name: ltp-{{testname}}-tests - timeout: - minutes: 90 diff --git a/openembedded-lkft/lava-job-definitions/x86/template-kselftest.yaml b/openembedded-lkft/lava-job-definitions/x86/template-kselftest.yaml deleted file mode 100644 index fcff119d87..0000000000 --- a/openembedded-lkft/lava-job-definitions/x86/template-kselftest.yaml +++ /dev/null @@ -1,70 +0,0 @@ -context: - test_character_delay: 10 - -device_type: x86 -job_name: lkft-kselftest-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - kselftest__url: ${KSELFTESTS_URL} - kselftest__version: "${KSELFTESTS_VERSION}" - kselftest__revision: "${KSELFTESTS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -actions: -- deploy: - timeout: - minutes: 15 - to: tftp - kernel: - url: ${KERNEL_URL} - nfsrootfs: - url: ${NFSROOTFS_URL} - compression: xz - os: oe - -- boot: - timeout: - minutes: 10 - method: ipxe - commands: nfs - parameters: - shutdown-message: "reboot: Restarting system" - auto_login: - login_prompt: 'login:' - username: root - login_commands: - - su - prompts: - - 'root@intel-core2-32:' - -- test: - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/kselftest/kselftest.yaml - name: kselftest - parameters: - SKIPFILE: skipfiles/skiplist_${DEVICE_TYPE}_${KERNEL_VERSION} - KSELFTEST_PATH: ${KSELFTEST_PATH} - timeout: - minutes: 45 diff --git a/openembedded-lkft/lava-job-definitions/x86/template-libhugetlbfs.yaml b/openembedded-lkft/lava-job-definitions/x86/template-libhugetlbfs.yaml deleted file mode 100644 index c67ac77adf..0000000000 --- a/openembedded-lkft/lava-job-definitions/x86/template-libhugetlbfs.yaml +++ /dev/null @@ -1,67 +0,0 @@ -context: - test_character_delay: 10 - -device_type: x86 -job_name: lkft-libhugetlbfs-${KERNEL_BRANCH}-${BUILD_NUMBER} -timeouts: - job: - minutes: 60 - action: - minutes: 10 - connection: - minutes: 2 -priority: ${LAVA_JOB_PRIORITY} -visibility: public - -metadata: - git branch: ${KERNEL_BRANCH} - git repo: ${KERNEL_REPO} - git commit: ${KERNEL_COMMIT} - git describe: ${KERNEL_DESCRIBE} - make_kernelversion: "${MAKE_KERNELVERSION}" - kernel-config: ${KERNEL_CONFIG_URL} - kernel-defconfig: ${KERNEL_DEFCONFIG_URL} - libhugetlbfs__url: ${LIBHUGETLBFS_URL} - libhugetlbfs__version: "${LIBHUGETLBFS_VERSION}" - libhugetlbfs__revision: "${LIBHUGETLBFS_REVISION}" - build-url: ${BUILD_URL} - build-location: ${SNAPSHOTS_URL}/${BASE_URL} - series: lkft - -actions: -- deploy: - timeout: - minutes: 15 - to: tftp - kernel: - url: ${KERNEL_URL} - nfsrootfs: - url: ${NFSROOTFS_URL} - compression: xz - os: oe - -- boot: - timeout: - minutes: 10 - method: ipxe - commands: nfs - parameters: - shutdown-message: "reboot: Restarting system" - auto_login: - login_prompt: 'login:' - username: root - login_commands: - - su - prompts: - - 'root@intel-core2-32:' - -- test: - timeout: - minutes: 60 - definitions: - - repository: git://git.linaro.org/qa/test-definitions.git - from: git - path: automated/linux/libhugetlbfs/libhugetlbfs.yaml - name: libhugetlbfs - timeout: - minutes: 30 diff --git a/openembedded-lkft/submit_for_testing.py b/openembedded-lkft/submit_for_testing.py index 7476fc62ae..7903788e6e 100644 --- a/openembedded-lkft/submit_for_testing.py +++ b/openembedded-lkft/submit_for_testing.py @@ -5,6 +5,7 @@ import sys from copy import deepcopy from string import Template from jinja2 import Environment, FileSystemLoader, StrictUndefined +from jinja2.exceptions import TemplateNotFound try: from urllib.parse import urlsplit @@ -14,7 +15,8 @@ except ImportError: # Templates base path template_base_path = 'configs/openembedded-lkft/lava-job-definitions' -testplan_base_path = 'configs/openembedded-lkft/lava-job-definitions' +testplan_base_path = 'configs/openembedded-lkft/lava-job-definitions/' +testplan_device_path = 'devices/' # Snapshots base URL snapshots_url = 'https://snapshots.linaro.org/openembedded/lkft' @@ -113,9 +115,9 @@ def main(): dest="testplan_path", default=testplan_base_path) parser.add_argument("--testplan-device-path", - help="Path to Jinja2 device deployment fragments", + help="Relative path to Jinja2 device deployment fragments", dest="testplan_device_path", - default=testplan_base_path) + default=testplan_device_path) parser.add_argument("--template-base-pre", help="base template used to construct templates, previous", dest="template_base_pre") @@ -201,13 +203,21 @@ def main(): args.qa_token, args.quiet) - THIS_DIR = os.path.dirname(os.path.abspath(args.testplan_path)) + THIS_DIR = os.path.abspath(args.testplan_path) # prevent creating templates when variables are missing j2_env = Environment(loader=FileSystemLoader(THIS_DIR), undefined=StrictUndefined) context = deepcopy(os.environ) context.update({"device_type": os.path.join(args.testplan_device_path, args.device_type)}) for test in args.test_plan: - lava_job = j2_env.get_template(test).render(context) + lava_job = None + try: + lava_job = j2_env.get_template(test).render(context) + except TemplateNotFound as e: + print("Test plan or device_type not found") + print(e) + + if lava_job is None: + continue if not args.quiet: print(lava_job) if not args.dryrun: diff --git a/openembedded-lkft/submit_for_testing.sh b/openembedded-lkft/submit_for_testing.sh index f66e4ae16d..a66f17396a 100755 --- a/openembedded-lkft/submit_for_testing.sh +++ b/openembedded-lkft/submit_for_testing.sh @@ -6,6 +6,11 @@ set -ex [ -z "${LAVA_JOB_PRIORITY}" ] && export LAVA_JOB_PRIORITY="low" [ -z "${SKIP_LAVA}" ] || unset DEVICE_TYPE +if [ -z "${DEVICE_TYPE}" ]; then + echo "DEVICE_TYPE not set. Exiting" + exit 0 +fi + case "${QA_SERVER_PROJECT}" in linux-mainline-*) source /srv/oe/build/lkftmetadata/packages/*/${KERNEL_RECIPE}/metadata @@ -35,16 +40,12 @@ fi rm -rf configs git clone --depth 1 http://git.linaro.org/ci/job/configs.git -# Pre install jinja2-cli -# Create LTP sub test suite templates -LTP_TESTS="cap_bounds containers fcntl-locktests filecaps fs fs_bind fs_perms_simple fsx hugetlb io ipc math nptl pty sched securebits syscalls timers" -[ -z "${DEVICE_TYPE}" ] || \ -for ltptest in ${LTP_TESTS}; do - ${HOME}/.local/bin/jinja2 -D testname=${ltptest} configs/openembedded-lkft/lava-job-definitions/${DEVICE_TYPE}/master-template-ltp.yaml.jinja2 > configs/openembedded-lkft/lava-job-definitions/${DEVICE_TYPE}/template-ltp-${ltptest}.yaml - LTP_TEMPLATES="${LTP_TEMPLATES} template-ltp-${ltptest}.yaml" +[ ! -z ${TEST_TEMPLATES} ] && unset TEST_TEMPLATES + +for test in $(ls configs/openembedded-lkft/lava-job-definitions/testplan); do + TEST_TEMPLATES="${TEST_TEMPLATES} testplan/${test}" done -[ -z "${DEVICE_TYPE}" ] || \ python configs/openembedded-lkft/submit_for_testing.py \ --device-type ${DEVICE_TYPE} \ --build-number ${BUILD_NUMBER} \ @@ -53,4 +54,4 @@ python configs/openembedded-lkft/submit_for_testing.py \ --qa-server-team lkft \ --qa-server-project ${QA_SERVER_PROJECT} \ --git-commit ${QA_BUILD_VERSION} \ - --template-names template-kselftest.yaml template-libhugetlbfs.yaml ${LTP_TEMPLATES} + --test-plan ${TEST_TEMPLATES} diff --git a/openembedded-lkft/test_submit_for_testing.sh b/openembedded-lkft/test_submit_for_testing.sh new file mode 100755 index 0000000000..8b8e718efe --- /dev/null +++ b/openembedded-lkft/test_submit_for_testing.sh @@ -0,0 +1,94 @@ +#!/bin/bash + +virtualenv .venv +source .venv/bin/activate +pip install Jinja2 requests urllib3 + +export BASE_URL=openembedded/lkft/morty/hikey/rpb/linux-mainline/346 +export BOOT_URL=http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/linux-mainline/346/boot-0.0+AUTOINC+06e4def583-fb1158a365-r0-hikey-20171012090440-346.uefi.img +export DTB_URL=http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/linux-mainline/346/junor2.dtb +export BUILD_ID=346 +export BUILD_NUMBER=346 +export BUILD_URL="https://ci.linaro.org/job/openembedded-lkft-linux-mainline/DISTRO=rpb,MACHINE=hikey,label=docker-stretch-amd64/346/" +export JOB_BASE_NAME="DISTRO=rpb,MACHINE=hikey,label=docker-stretch-amd64" +export JOB_NAME="openembedded-lkft-linux-mainline/DISTRO=rpb,MACHINE=hikey,label=docker-stretch-amd64" +export JOB_URL="https://ci.linaro.org/job/openembedded-lkft-linux-mainline/DISTRO=rpb,MACHINE=hikey,label=docker-stretch-amd64/" +export KERNEL_BRANCH=master +export KERNEL_COMMIT=ff5abbe799e29099695cb8b5b2f198dd8b8bdf26 +export KERNEL_CONFIG_URL=http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/linux-mainline/346/defconfig +export KERNEL_DEFCONFIG_URL=http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/linux-mainline/346/defconfig +export KERNEL_DESCRIBE=v4.14-rc4-84-gff5abbe799e2 +export KERNEL_RECIPE=linux-hikey-mainline +export KERNEL_REPO=https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git +export KERNEL_URL=http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/linux-mainline/346/Image--4.13+git0+ff5abbe799-r0-hikey-20171012090440-346.bin +export KERNEL_VERSION=git +export KSELFTEST_PATH="/opt/" +export KSELFTESTS_URL=https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.13.tar.xz +export KSELFTESTS_VERSION=4.13 +export KSELFTESTS_REVISION=g4.13 +export KSELFTESTS_NEXT_URL=git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git +export KSELFTESTS_NEXT_VERSION=4.13+gitAUTOINC+49827b977a +export LAVA_SERVER=https://lkft.validation.linaro.org/RPC2/ +export LIBHUGETLBFS_REVISION=e44180072b796c0e28e53c4d01ef6279caaa2a99 +export LIBHUGETLBFS_URL=git://github.com/libhugetlbfs/libhugetlbfs.git +export LIBHUGETLBFS_VERSION=2.20 +export LTP_REVISION=e671f2a13c695bbd87f7dfec2954ca7e3c43f377 +export LTP_URL=git://github.com/linux-test-project/ltp.git +export LTP_VERSION=20170929 +export MACHINE=hikey +export MAKE_KERNELVERSION=4.14.0-rc4 +export MANIFEST_BRANCH=morty +export NFSROOTFS_URL=http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/linux-mainline/346/rpb-console-image-hikey-20171012090440-346.rootfs.tar.xz +export QA_REPORTS_TOKEN=qa-reports-token +export QA_SERVER=https://qa-reports.linaro.org +export QA_SERVER_PROJECT=linux-mainline-oe +export RECOVERY_IMAGE_URL=http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/linux-mainline/346/juno-oe-uboot.zip +export SKIP_LAVA= +export SNAPSHOTS_URL=http://snapshots.linaro.org +export SRCREV_kernel=ff5abbe799e29099695cb8b5b2f198dd8b8bdf26 +export SYSTEM_URL=http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/linux-mainline/346/rpb-console-image-hikey-20171012090440-346.rootfs.img.gz +export BUILD_NAME="openembedded-lkft-linux-mainline" +export LAVA_JOB_PRIORITY="medium" +export QA_SERVER="http://localhost:8000" +export QA_REPORTS_TOKEN="secret" +export DEVICE_TYPE="x86" +export KSELFTEST_SKIPLIST="pstore" +export QA_BUILD_VERSION=${KERNEL_DESCRIBE} + +[ -z "${KSELFTEST_PATH}" ] && export KSELFTEST_PATH="/opt/kselftests/mainline/" +[ -z "${LAVA_JOB_PRIORITY}" ] && export LAVA_JOB_PRIORITY="low" +[ -z "${SKIP_LAVA}" ] || unset DEVICE_TYPE + +if [ -z "${DEVICE_TYPE}" ]; then + echo "DEVICE_TYPE not set. Exiting" + exit 0 +fi + +if [ ! -z "${KERNEL_DESCRIBE}" ]; then + export QA_BUILD_VERSION=${KERNEL_DESCRIBE} +else + export QA_BUILD_VERSION=${KERNEL_COMMIT:0:12} +fi + +[ ! -z ${TEST_TEMPLATES} ] && unset TEST_TEMPLATES + +for test in $(ls lava-job-definitions/testplan); do + TEST_TEMPLATES="${TEST_TEMPLATES} testplan/${test}" +done + +[ -z "${DEVICE_TYPE}" ] || \ +python submit_for_testing.py \ + --device-type ${DEVICE_TYPE} \ + --build-number ${BUILD_NUMBER} \ + --lava-server ${LAVA_SERVER} \ + --qa-server ${QA_SERVER} \ + --qa-server-team lkft \ + --qa-server-project ${QA_SERVER_PROJECT} \ + --git-commit ${QA_BUILD_VERSION} \ + --test-plan ${TEST_TEMPLATES} \ + --testplan-path lava-job-definitions \ + --dry-run + +# cleanup virtualenv +deactivate +rm -rf .venv |