Date
1 - 5 of 5
Kselftest implementation
Alice Ferrazzi
Hi everyone, I'm Alice Ferrazzi from Cybertrust Japan. I'm currently working on adding Kselftest to the current CIP CI tests of linux-cip Kernel I made and tested kselftest on a testing instance of lava, currently tested only on qemu x86_64 I implemented a simple skiplist in the kselftest envelope for skipping tests that are currently not working. The usage is similar to how spectre-meltdown-checker-test is currently working. My idea is to start implementing kselftest tests for at least qemu x86_64 architecture and expand in the future to other architectures. As Iwamatsu-san pointed, we need also to create kselftest binary. I'm currently thinking of implementing kselftest binary creation mechanism on linux-cip-ci kernel build script but I still didn't start to work on this yet. Kselftest test code:
linux-cip Kernel Kselftest implementation (currently in draft): Thanks, Alice ====================================== Cybertrust Japan Co.,Ltd. Alice Ferrazzi alice.ferrazzi@... ====================================== |
|
Chris Paterson
Hello Alice,
From: cip-dev@... <cip-dev@...> OnThank you for your work on this! If you'd like to test on a wider range of platforms then get in touch and we'll get you access to the CIP LAVA instance. I implemented a simple skiplist in the kselftest envelope for skipping testsIt looks like a great start. Is there any work we can leverage from the Linaro test-definitions repo? https://github.com/Linaro/test-definitions/tree/master/automated/linux/kselftest KernelCI also recently implemented kselftest support if that's useful at all, this'll include the build side of things. https://github.com/kernelci/kernelci-core/tree/main/config/lava/kselftest Please assign the MR to me when you're ready for it to be reviewed, or if you need any help. Also let me know if you want write access to the linux-cip-ci repo. If you push your branch to our repo directly the CI will be able to run, making it easier for you to test. Kind regards, Chris
|
|
Alice Ferrazzi
Hello Chris, On Wed, Apr 14, 2021 at 7:27 AM Chris Paterson <Chris.Paterson2@...> wrote: Hello Alice, This would be nice!
Thanks > Is there any work we can leverage from the Linaro test-definitions repo? That was the first thing I tried out but was not working correctly on the cip rootfs enviroment KernelCI also recently implemented kselftest support if that's useful at all, this'll include the build side of things. I know about KernelCI effort for kselftest and I think to use a similar approach about the kselftest binary creation implementation. The code I wrote is based on Glava-tests that is part of GKernelCI. GKernelCI is the current Gentoo kernel CI system that is reporting and collaborating with KernelCI. Using a different repository currently is helpful for self managing the skiplist, but it could be changed in the future. > Testing the kselftest branch directly on CIP CI test environment from linux-cip-ci repo would be really helpful. Thanks, Alicef ====================================== Cybertrust Japan Co.,Ltd. Alice Ferrazzi alice.ferrazzi@... ====================================== |
|
Nobuhiro Iwamatsu
Hi,
Thanks for your work. On Thu, Apr 15, 2021 at 11:04:26AM +0900, Alice Ferrazzi wrote: Hello Chris,As you write, cip rootfs lacks the software to run kselftest. Therefore, it is necessary to make a separate flavor of rootfs. There are also two types of cip rootfs, and we need to use either or both for kernel testing. KernelCI also recently implemented kselftest support if that's useful atI know about KernelCI effort for kselftest and I think to use a similar I think this needs to be done first. I also think there are several approaches to creating kselftest binaries. - Continue to use a particular kernel version of ksefltests. - Use CIP kernel kselftest. - Use the latest kernel kselftest. I used to build an environment using the latter. https://gitlab.com/cip-project/cip-kernel/linux-cip/-/tree/ci/iwamatsu/linux-cip-kselftest By the way, do you know which kernelci they are using? Testing the kselftest branch directly on CIP CI test environment fromPlease assign the MR to me when you're ready for it to be reviewed, or if Best regards, Nobuhiro |
|
Alice Ferrazzi
Hi, thanks for the review, On Thu, Apr 22, 2021 at 4:35 PM Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@...> wrote: Hi, ok. > KernelCI is using a docker container for building kselftest https://github.com/kernelci/kernelci-core/blob/26924e6b1a90833bcdf8eb28d038fa2fac19885f/config/docker/gcc-8_x86/Dockerfile KernelCI is building kselftest in production for at least linux-next and mainline any time a new revision is discovered on the branches. on staging.kernelci.org kselftest is built for each job. This was yesterday staging build with kselftest https://staging.kernelci.org/build/kernelci/branch/staging-mainline/kernel/staging-mainline-20210422.0/ Currently I'm working on a similar implementation for CIP testing. Thanks, Alicef -- ====================================== Cybertrust Japan Co.,Ltd. Alice Ferrazzi alice.ferrazzi@... ====================================== |
|