Skip to content
KPET - Kernel Patch-Evaluated Testing
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Add a `kpet` script meant to be executed directly from the repo Oct 22, 2018
kpet
tests Distinguish wildcards and empty sets in targets Jun 18, 2019
.gitignore improve .gitignore file Feb 25, 2019
.travis.yml Require Python 3.7 Feb 14, 2019
LICENSE
MANIFEST.in Remove builtin templates Oct 25, 2018
README.md README.md: Add logo Mar 1, 2019
logo.png
setup.cfg Bump package version Jun 14, 2019
setup.py Check Python version in setup.py Feb 18, 2019
tox.ini Add integration tests Mar 11, 2019

README.md

KPET - Kernel Patch-Evaluated Testing

KPET logo

KPET is a framework which will execute targeted testing based on changes introduced in the patch, e.g. a network driver or similar would trigger network related testing to be invoked, or a filesystem change would invoke filesystem testing.

Install KPET

kpet is written in Python that means you will need python3 installed in your system. You can execute it directly from the repository ./bin/kpet or you can install it via pip and use it directly from your PATH.

$ pip install --user git+https://github.com/CKI-project/kpet

Install KPET Database

In order to use kpet you will need to download the kpet database which includes the templates and pattern files needed to analyze the patch and generate the corresponding beaker xml.

$ git clone <kpet-db>

How to run it

To preview patch generated test cases:

$ kpet --db . run print-test-cases 001.patch

To generate complete beaker xml:

$ kpet --db . run generate --description 'skt ##KVER##' -a aarch64 -k '##KPG_URL##' -t upstream 001.patch
You can’t perform that action at this time.