Code Monkey home page Code Monkey logo

Comments (3)

Heidifahim avatar Heidifahim commented on August 13, 2024

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:

  1. Make sure to be using the latest upstream linux-kseltest tree which has all KUnit changes merged.
  2. Need to apply this JSON patch for it to function (this should be upstream soon as well).

Usage:

  1. 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

  2. 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

  3. To run your own specified KUnit tests, create a kunitconfig file under linux/ 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.

gctucker avatar gctucker commented on August 13, 2024

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.

gctucker avatar gctucker commented on August 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.