Tims 0day notes
0day is a performance and regression test system developed by Fengguan Wu of Intel's open source development center.
Puts each test (named a 'job') into a yaml file
lkp is a command line tool for executing a test
some command line options are:
- lkp install <test_package>
- ls $LKP_SRC/jobs to see available jobs
- lkp split-job <test_package>
- lkp run
- lkp result <testname>
Here's what a test looks like:
From the file tbench.yaml
In the 'linpack' directory are some PKGBUILD files. This appears to be the package file format for Arch Linux.
Each test has a 'maker script' that tells how to build and install the test program. See pack/ebizzy for an example.
- jobs - has parameters for a particular execution of the test program (similar to fuegos specs and plans)
- pack - has the maker script which does the fetch, build, install for a test program
- stats - has the results parser for each test - output is JSON
- tests - has the main test script for each test
- in lkp-tests/tests/pack-dep - check_shared_package
- in jobs/ftrace_onoff.yaml:need_memory: 2G
- in jobs/phoronix-test-suite-neex.yaml:need_x true
- in include/ndctl:need_kernel_headers: true
- in include/ltp:need_kconfig: CONFIG_BLK_DEV_LOOP
- in filters/need_cpu: if (( need_cpu > nr_cpu )); then
- in jobs/README.md: need_*
The file include/kernel_selftests has the following content:
Items in the yaml file are converted either to environment variables, or to references to setup scripts or test scripts.
See jobs/README.md for details.