Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions lava-job-template/lpi4a/lpi4a-openscap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
device_type: lpi4a
job_name: ${job_name}
timeouts:
job:
minutes: 10250
action:
minutes: 10249
actions:
power-off:
seconds: 60
priority: medium
visibility: public
metadata:
# please change these fields when modifying this job for your own tests.
format: Lava-Test Test Definition 1.0
name: lpi4a-test
description: "test for lpi4a"
version: "1.0"
# ACTION_BLOCK
actions:
# DEPLOY_BLOCK
- deploy:
timeout:
minutes: 120
to: tftp
dtb:
url: ${dtb_url}
kernel:
url: ${kernel_image_url}
type: image
nfsrootfs:
url: ${rootfs_image_url}
compression: gz
# BOOT_BLOCK
- boot:
timeout:
minutes: 20
method: u-boot
commands: nfs
soft_reboot:
- root
- openEuler
- reboot
- The system will reboot now!
prompts: ["root@openeuler-riscv64", "login:", "Password:"]
auto_login:
login_prompt: "(.*)openeuler-riscv64 login:(.*)"
username: root
password_prompt: "Password:"
password: openEuler12#$
# TEST_BLOCK
- test:
timeout:
minutes: 10109
definitions:
- repository: ${testcase_repo}
from: git
name: ${testitem_name}
path: ${testcase_path}
59 changes: 59 additions & 0 deletions lava-job-template/lpi4a/lpi4a-osvscanner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
device_type: lpi4a
job_name: ${job_name}
timeouts:
job:
minutes: 10250
action:
minutes: 10249
actions:
power-off:
seconds: 60
priority: medium
visibility: public
metadata:
# please change these fields when modifying this job for your own tests.
format: Lava-Test Test Definition 1.0
name: lpi4a-test
description: "test for lpi4a"
version: "1.0"
# ACTION_BLOCK
actions:
# DEPLOY_BLOCK
- deploy:
timeout:
minutes: 120
to: tftp
dtb:
url: ${dtb_url}
kernel:
url: ${kernel_image_url}
type: image
nfsrootfs:
url: ${rootfs_image_url}
compression: gz
# BOOT_BLOCK
- boot:
timeout:
minutes: 20
method: u-boot
commands: nfs
soft_reboot:
- root
- openEuler
- reboot
- The system will reboot now!
prompts: ["root@openeuler-riscv64", "login:", "Password:"]
auto_login:
login_prompt: "(.*)openeuler-riscv64 login:(.*)"
username: root
password_prompt: "Password:"
password: openEuler12#$
# TEST_BLOCK
- test:
timeout:
minutes: 10109
definitions:
- repository: ${testcase_repo}
from: git
name: ${testitem_name}
path: ${testcase_path}
70 changes: 70 additions & 0 deletions lava-job-template/qemu/qemu-openscap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Your first LAVA JOB definition for an riscv_64 QEMU
device_type: qemu
job_name: ${job_name}
timeouts:
job:
minutes: 10150
action:
minutes: 10140
connection:
minutes: 10
priority: medium
visibility: public
# context allows specific values to be overridden or included
context:
# tell the qemu template which architecture is being tested
# the template uses that to ensure that qemu-system-riscv64 is executed.
arch: riscv64
machine: virt
guestfs_interface: virtio
extra_options:
- -machine virt
- -nographic
- -smp 8
- -m 8G
- -device virtio-blk-device,drive=hd0
- -append "root=/dev/vda rw console=ttyS0 selinux=0"
- -device virtio-net-device,netdev=usernet
- -netdev user,id=usernet,hostfwd=tcp::10001-:22
metadata:
# please change these fields when modifying this job for your own tests.
format: Lava-Test Test Definition 1.0
name: qemu-riscv64-test
description: "test for riscv64 qemu"
version: "1.0"
# ACTION_BLOCK
actions:
# DEPLOY_BLOCK
- deploy:
timeout:
minutes: 20
to: tmpfs
images:
kernel:
image_arg: -kernel {kernel}
url: ${kernel_image_url}
rootfs:
image_arg: -drive file={rootfs},format=raw,id=hd0,if=none
url: ${rootfs_image_url}
compression: zstd
# BOOT_BLOCK
- boot:
timeout:
minutes: 20
method: qemu
media: tmpfs
prompts: ["root@openeuler-riscv64"]
auto_login:
login_prompt: "openeuler-riscv64 login:"
username: root
password_prompt: "Password:"
password: openEuler12#$
# TEST_BLOCK
- test:
timeout:
minutes: 10100
definitions:
- from: git
name: ${testitem_name}
path: ${testcase_path}
repository: ${testcase_repo}
70 changes: 70 additions & 0 deletions lava-job-template/qemu/qemu-osvscanner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Your first LAVA JOB definition for an riscv_64 QEMU
device_type: qemu
job_name: ${job_name}
timeouts:
job:
minutes: 10150
action:
minutes: 10140
connection:
minutes: 10
priority: medium
visibility: public
# context allows specific values to be overridden or included
context:
# tell the qemu template which architecture is being tested
# the template uses that to ensure that qemu-system-riscv64 is executed.
arch: riscv64
machine: virt
guestfs_interface: virtio
extra_options:
- -machine virt
- -nographic
- -smp 8
- -m 8G
- -device virtio-blk-device,drive=hd0
- -append "root=/dev/vda rw console=ttyS0 selinux=0"
- -device virtio-net-device,netdev=usernet
- -netdev user,id=usernet,hostfwd=tcp::10001-:22
metadata:
# please change these fields when modifying this job for your own tests.
format: Lava-Test Test Definition 1.0
name: qemu-riscv64-test
description: "test for riscv64 qemu"
version: "1.0"
# ACTION_BLOCK
actions:
# DEPLOY_BLOCK
- deploy:
timeout:
minutes: 20
to: tmpfs
images:
kernel:
image_arg: -kernel {kernel}
url: ${kernel_image_url}
rootfs:
image_arg: -drive file={rootfs},format=raw,id=hd0,if=none
url: ${rootfs_image_url}
compression: zstd
# BOOT_BLOCK
- boot:
timeout:
minutes: 20
method: qemu
media: tmpfs
prompts: ["root@openeuler-riscv64"]
auto_login:
login_prompt: "openeuler-riscv64 login:"
username: root
password_prompt: "Password:"
password: openEuler12#$
# TEST_BLOCK
- test:
timeout:
minutes: 10100
definitions:
- from: git
name: ${testitem_name}
path: ${testcase_path}
repository: ${testcase_repo}
72 changes: 72 additions & 0 deletions lava-job-template/sg2042/sg2042-openscap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
device_type: sg2042
job_name: ${job_name}
timeouts:
job:
minutes: 10300
action:
minutes: 10299
actions:
power-off:
seconds: 60
priority: medium
visibility: public
metadata:
# please change these fields when modifying this job for your own tests.
format: Lava-Test Test Definition 1.0
name: sg2042-test
description: "test for sg2042"
version: "1.0"
# ACTION_BLOCK
actions:
- command:
name: pre_os_command
timeout:
minutes: 20
# DEPLOY_BLOCK
- deploy:
timeout:
minutes: 120
to: tftp
kernel:
url: ${kernel_image_url}
type: image
ramdisk:
url: ${ramdisk_url}
install_overlay: False
install_modules: False
dtb:
url: ${dtb_url}
persistent_nfs:
address: "{FILE_SERVER_IP}:/var/lib/lava/dispatcher/tmp/sg2042_rootfs"
- command:
name: pxelinux_generate
timeout:
minutes: 20
# BOOT_BLOCK
- boot:
timeout:
minutes: 30
method: u-boot
commands:
- "dhclient -ipv6=false eth0"
- "pxeboot -file tftp://{SERVER_IP}/pxelinux.cfg -server {SERVER_IP}"
soft_reboot:
- root
- openEuler
- reboot
- The system will reboot now!
prompts: ["root@openeuler-riscv64", "login:", "Password:"]
auto_login:
login_prompt: "(.*)openeuler-riscv64 login:(.*)"
username: root
password_prompt: "Password:"
password: openEuler12#$
- test:
timeout:
minutes: 10109
definitions:
- repository: ${testcase_repo}
from: git
name: ${testitem_name}
path: ${testcase_path}

Loading
Loading