aboutsummaryrefslogtreecommitdiff
path: root/linux-leg
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-12-16 19:40:00 +0200
committerFathi Boudra <fabo@debian.org>2014-12-18 13:23:21 +0200
commit30a400f8e001d7b273c6d3d76aef4f60e6a61c9f (patch)
tree1099dbd017b5e40a4c2345bab9534b0caf48e634 /linux-leg
parent96be7c97e6e1935e56ae4da63aa65e33ccb2c85e (diff)
Add linux-leg job (Fu Wei changes)
v1: * move bundle stream, device type and lava server to job params * add metadata * switch to initrd from releases.linaro.org * switch to lava job definitions templates * beautify json templates (indent=2) * clean up efi-runtime hack v2: * move initrd, bl1 and fip URL to job params * add startup.nsh and publish it * inject image and startup.nsh URL as environment variables Change-Id: Ia9b35a4559b2623aa27471cc101ad69c9559d8f4 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linux-leg')
-rw-r--r--linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template-acpi.json78
-rw-r--r--linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template-grub-install.json89
-rw-r--r--linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template.json40
3 files changed, 207 insertions, 0 deletions
diff --git a/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template-acpi.json b/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template-acpi.json
new file mode 100644
index 0000000000..fbf140dfba
--- /dev/null
+++ b/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template-acpi.json
@@ -0,0 +1,78 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "bootloadertype": "uefi",
+ "customize": {
+ "boot:/fvp": [
+ "delete"
+ ],
+ "${STARTUP_NSH}": [
+ "boot:/EFI/BOOT/startup.nsh"
+ ],
+ "${BL1_URL}": [
+ "boot:/fvp_bl1.bin"
+ ],
+ "${FIP_URL}": [
+ "boot:/fvp_fip.bin"
+ ]
+ },
+ "image": "${IMAGE_URL}"
+ },
+ "metadata": {
+ "build id": "${BUILD_NUMBER}",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "acpi"
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 2",
+ "expect or any other key to continue.",
+ "sendline "
+ ]
+ }
+ },
+ {
+ "command": "lava_test_shell",
+ "parameters": {
+ "testdef_repos": [
+ {
+ "git-repo": "git://git.linaro.org/people/fu.wei/test-definitions.git",
+ "revision": "f700b9796643c675d2d52463e8cf068dfd5c393b",
+ "testdef": "openembedded/acpi-smoke-test.yaml"
+ }
+ ],
+ "timeout": 900
+ }
+ },
+ {
+ "command": "lava_test_shell",
+ "parameters": {
+ "testdef_repos": [
+ {
+ "git-repo": "git://git.linaro.org/people/fu.wei/test-definitions.git",
+ "revision": "f700b9796643c675d2d52463e8cf068dfd5c393b",
+ "testdef": "openembedded/fwts.yaml"
+ }
+ ],
+ "timeout": 900
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 20000
+} \ No newline at end of file
diff --git a/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template-grub-install.json b/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template-grub-install.json
new file mode 100644
index 0000000000..9bb5ce00d3
--- /dev/null
+++ b/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template-grub-install.json
@@ -0,0 +1,89 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "bootloadertype": "uefi",
+ "customize": {
+ "boot:/fvp": [
+ "delete"
+ ],
+ "boot:/rtsm": [
+ "delete"
+ ],
+ "${INITRD_URL}": [
+ "boot:/Initrd"
+ ],
+ "${STARTUP_NSH}": [
+ "boot:/EFI/BOOT/startup.nsh"
+ ],
+ "${BL1_URL}": [
+ "boot:/fvp_bl1.bin"
+ ],
+ "${FIP_URL}": [
+ "boot:/fvp_fip.bin"
+ ]
+ },
+ "image": "${IMAGE_URL}"
+ },
+ "metadata": {
+ "build id": "${BUILD_NUMBER}",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "grub-install"
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 2",
+ "expect or any other key to continue.",
+ "sendline "
+ ]
+ }
+ },
+ {
+ "command": "lava_command_run",
+ "parameters": {
+ "commands": [
+ "mkdir -p /boot/efi",
+ "mount /dev/vda1 /boot/efi",
+ "grub-install",
+ "umount /dev/vda1",
+ "sync"
+ ],
+ "timeout": 9600
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 1",
+ "expect grub>",
+ "sendline set root=(hd1,msdos1)",
+ "expect grub>",
+ "sendline set debug=linux",
+ "expect grub>",
+ "sendline linux /Image console=ttySBSA0 earlycon=pl011,0x1c090000 debug uefi_debug ignore_loglevel rootwait root=/dev/ram0 ro acpi=force",
+ "expect grub>",
+ "sendline initrd /Initrd",
+ "expect grub>",
+ "sendline boot"
+ ]
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 20000
+} \ No newline at end of file
diff --git a/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template.json b/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template.json
new file mode 100644
index 0000000000..19ded730aa
--- /dev/null
+++ b/linux-leg/lava-job-definitions/rtsm_fvp_base-aemv8a/template.json
@@ -0,0 +1,40 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "bootloadertype": "uefi",
+ "image": "${IMAGE_URL}"
+ },
+ "metadata": {
+ "distribution": "openembedded",
+ "hwpack.build": "${BUILD_NUMBER}",
+ "hwpack.type": "vexpress64",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "boot"
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 2",
+ "expect or any other key to continue.",
+ "sendline "
+ ]
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 20000
+} \ No newline at end of file