Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to make a job file for 'lkp qemu' command #226

Open
alexshi opened this issue Mar 13, 2023 · 1 comment
Open

Any way to make a job file for 'lkp qemu' command #226

alexshi opened this issue Mar 13, 2023 · 1 comment

Comments

@alexshi
Copy link

alexshi commented Mar 13, 2023

Thanks for the great framework on kernel testing!

But I got some error on figuring out the job file for qemu testing, not local testing.
Could you show us how to compose a qemu job file?

Thanks
Alex

$sudo lkp qemu -k ../linux/arch/x86/boot/bzImage ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 1: ---: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 4: suite:: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 5: testcase:: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 6: category:: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 7: need_memory:: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 8: ltp:: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 9: test:: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 10: job_origin:: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 11: testbox:: command not found
ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml: line 12: arch:: command not found

the jobs file is generated by lkp split-job command.
cat ltp-cve-cve-00-debian-12-x86_64-20220629.cgz.yaml

#! jobs/ltp-cve.yaml
suite: ltp
testcase: ltp
category: functional
need_memory: 4G
ltp:
test: cve-00
job_origin: jobs/ltp-cve.yaml
testbox: alexsshi-LC1
arch: x86_64
tbox_group: alexsshi-LC1

#! hosts/alexsshi-LC1
nr_cpu: 8
memory: 31G
hdd_partitions:
ssd_partitions:
local_run: 1

#! include/category/functional
kmsg:
heartbeat:
meminfo:

#! include/ltp
need_kconfig:

  • BLK_DEV_LOOP
  • CAN: m
  • CAN_RAW: m
  • CAN_VCAN: m
  • MINIX_FS: m
  • EXPERT: y
  • CHECKPOINT_RESTORE: y
    rootfs: debian-12-x86_64-20220629.cgz
    initrds:
@Yujie-Liu
Copy link

Hi @alexshi, thanks for your interest in our project.

For now, we have two ways for running a job:
lkp run directly runs the job in the system environment, which is the "local testing" you mentioned. It requires a job.yaml file.
lkp qemu runs the job in a qemu environment. It requires a job.sh file that should contain some shell code. lkp qemu couldn't accept a job.yaml file.

We are planning to enhance lkp qemu to support a job.yaml file as well. This is a feature enabling work that needs some effort. We will support it after a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants