kernelci / kernelci-core

Core KernelCI tools
https://kernelci.org
GNU Lesser General Public License v2.1
107 stars 97 forks source link

How to use kci_test generate ltp test.ymal file? #2093

Open xc-23 opened 1 year ago

xc-23 commented 1 year ago

Now I have built Lava and Kerneci services myself. Using kci build to compile the next tag. Using kci test tool to generate xxx. ymal files and push them to Lava service. But the generated tasks are only baseline testing. May I ask how to generate the corresponding xxx. ymal file if I want to run the ltp test of the kernel. I did not find the corresponding document in the community. This makes me very headache.

xc-23 commented 1 year ago

The following is the script that I generated the kernel and yaml files, and pushed them to Lava. This script only generated the baseline yaml files, and I hope to generate the yaml files related to ltp testing

`

!/bin/bash

cd /home/o/kernelci-core

./kci_build update_mirror --build-config=next --mirror=linux-mirror.git

./kci_build update_repo --build-config=next --mirror=linux-mirror.git

./kci_build generate_fragments --build-config=next

./kci_build init_bmeta --build-config=next

docker run -v $PWD:/home/kernelci-core kernelci/gcc-10:x86-kselftest-kernelci sh -c "cd /home/kernelci-core; ./kci_build make_config --defconfig=defconfig; ./kci_build fetch_firmware; ./kci_build make_kernel; ./kci_build make_modules"

./kci_build push_kernel --storage-config=staging.kernelci.org --storage-cred=2eb80d7b-9d99-4f99-9965-b9f5cda7d552

rm jobs/*

./kci_test generate --install-path=linux/build-x86/install/ --output=jobs --storage=http://192.168.124.231:8082/ --user=kernelci-user --callback-id=kernelci-callback --callback-url=http://192.168.124.231:8081/callback/ --runtime-config=lab-collabora-staging

./kci_test submit --jobs=jobs/* --runtime-config=lab-collabora-staging --user=kernelci-tocken --runtime-token=c3d63267-e175-4f35-8d65-f263b5bdef93 `