Comments (3)
First fully functional revision of kunit integration kernelci command line (kci_build) here: https://github.com/Heidifahim/kernelci-core/tree/kci_kunit
Need to have:
- Make sure to be using the latest upstream linux-kseltest tree which has all KUnit changes merged.
- Need to apply this JSON patch for it to function (this should be upstream soon as well).
Usage:
-
to run ALL kunit tests written in linux tree:
./kci_build` build_kernel --defconfig=defconfig --arch=x86 --build-env=gcc-8 --kdir=$HOME/workspace1/linux --kunit=alltests --kunit_json=out.json
-
to run a set of default KUnit tests found at
linux/arch/um/configs/kunit_defconfig:
./kci_build` build_kernel --defconfig=defconfig --arch=x86 --build-env=gcc-8 --kdir=$HOME/workspace1/linux --kunit --kunit_json=out.json
-
To run your own specified KUnit tests, create a
kunitconfig
file underlinux/
and run:
./kci_build` build_kernel --defconfig=defconfig --arch=x86 --build-env=gcc-8 --kdir=$HOME/workspace1/linux --kunit --kunit_json=hello.json
Now currently trying to implement kunit integration within "kci_test submit" command instead.
from kernelci-core.
Thanks @Heidifahim for the update, that's great progress. I think it's now all down to reshaping the code to better fit the current scheme of things, which can be done one step at a time.
The first step I guess would be to have the ability to generate a command and run it locally, as an implementation of the LabAPI
class. I guess the first step would be to generate the command to run with template parameters (the .generate()
method) and then run it (the .submit()
method). Initially this can be done synchronously, just by calling subprocess.call()
or something similar.
from kernelci-core.
We've now been running KUnit tests using the new API on x86_64, here's some sample logs:
https://storage.staging.kernelci.org/api/kunit-64c0d4cd53f14b471c8037b5/?C=M&O=D
There's also a plain run based on UML but we've had issues with it. I'll keep posting updates as things evolve around this topic.
from kernelci-core.
Related Issues (20)
- [ChromeOS] find a way to exclude specific tests when using a globbing pattern HOT 1
- Identify infrastructure failures on ChromeBooks and store this information in test results HOT 1
- Shutdown ChromeBooks properly HOT 11
- Builroot-generated rootfs should add a symlink for x86_64
- Include device identifier for LAVA test nodes
- Implement "boot time measurement" test HOT 3
- Lava log parser exception
- Upgrade the version of ChromiumOS used in KernelCI to R124 HOT 1
- `kci` command for submitting hierarchy
- BUG: `KeyError` while setting failed LAVA job metadata
- Propagate error_code and error_msg to test cases HOT 7
- [BUG?] Duplicated node events HOT 6
- Add branch BRANCH from
- Create separate kconfig fragments for testing equipment/features support
- Allowing filtering on tree/branch pairs HOT 6
- Automatically reflash corrupt ChromeBooks
- bookworm-igt fails to build for armhf
- selftests: MM: liburing isn't found HOT 2
- BUG: `kci job submit` raises "Invalid token" error
- Need a way to set the job timeout per job HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kernelci-core.