Harrison Mutai | a197d5d | 2022-09-15 13:45:21 +0100 | [diff] [blame] | 1 | device_type: qemu |
| 2 | job_name: qemu-linux-${test_config} |
Paul Sokolovsky | 9675e6b | 2022-12-07 20:43:48 +0300 | [diff] [blame^] | 3 | priority: ${LAVA_PRIORITY:-medium} |
Harrison Mutai | a197d5d | 2022-09-15 13:45:21 +0100 | [diff] [blame] | 4 | visibility: public |
| 5 | |
| 6 | metadata: |
| 7 | test_config: ${test_config} |
| 8 | build_url: ${BUILD_URL} |
| 9 | emulator: ${model} |
| 10 | |
| 11 | $(if [ -n "${gerrit_url}" ]; then |
| 12 | cat <<-YAML |
| 13 | gerrit_url: "${gerrit_url}" |
| 14 | YAML |
| 15 | fi) |
| 16 | |
| 17 | context: |
| 18 | arch: aarch64 |
| 19 | machine: ${machine:-virt} |
| 20 | cpu: ${cpu:-max} |
| 21 | extra_options: |
| 22 | $(for boot_argument in "${boot_arguments[@]:?}"; do |
| 23 | cat <<-YAML |
| 24 | - ${boot_argument} |
| 25 | YAML |
| 26 | done) |
| 27 | |
| 28 | timeouts: |
| 29 | job: |
| 30 | minutes: 15 |
| 31 | actions: |
| 32 | login-action: |
| 33 | minutes: 5 |
| 34 | auto-login-action: |
| 35 | minutes: 2 |
| 36 | boot-image-retry: |
| 37 | minutes: 2 |
| 38 | boot-qemu-image: |
| 39 | minutes: 2 |
| 40 | bootloader-action: |
| 41 | minutes: 3 |
| 42 | bootloader-commands: |
| 43 | minutes: 3 |
| 44 | bootloader-interrupt: |
| 45 | seconds: 30 |
| 46 | bootloader-retry: |
| 47 | minutes: 3 |
| 48 | download-retry: |
| 49 | minutes: 5 |
| 50 | lava-test-shell: |
| 51 | minutes: 3 |
| 52 | nfs-deploy: |
| 53 | minutes: 10 |
| 54 | power-off: |
| 55 | seconds: 10 |
| 56 | reset-device: |
| 57 | seconds: 30 |
| 58 | connection: |
| 59 | minutes: 2 |
| 60 | |
| 61 | actions: |
| 62 | - deploy: |
| 63 | to: tmpfs |
| 64 | images: |
| 65 | $(for artefact in "${artefacts[@]:?}"; do |
| 66 | cat <<-YAML |
| 67 | ${artefact:?}: |
| 68 | url: ${artefact_urls[${artefact}]:?} |
| 69 | YAML |
| 70 | |
| 71 | [[ "${artefact:?}" =~ ^(kernel|bios|initrd)$ ]] && cat <<-YAML |
| 72 | image_arg: -${artefact} {${artefact}} |
| 73 | YAML |
| 74 | |
| 75 | [[ "${artefact:?}" =~ ^(busybox|initrd)$ ]] && cat <<-YAML |
| 76 | compression: gz |
| 77 | YAML |
| 78 | done) |
| 79 | |
| 80 | - boot: |
| 81 | method: qemu |
| 82 | media: tmpfs |
| 83 | prompts: ["${prompt}"] |
| 84 | timeout: |
| 85 | minutes: 2 |