Linux Kernel Selftests
Kernel Setup
Keep the previously built kernel config file
Get into kernel source directory:
cp previous_config .config make olddefconfig make kselftest-merge make menuconfig # setup if and as you want make -j 2 make modules modules_install install
Do necessary things for booting the new kernel. Reboot with new kernel.
Net selftests
Debian instructions for setup: Install necessary softwares for kselftest:
sudo apt-get install libnuma-dev traceroute net-tools
Get into previously built kernel source directory and run:
make summary=1 TARGETS=net kselftest |& tee /tmp/kselftest_summary_net.log make TARGETS=net kselftest |& tee /tmp/kselftest_net.log
You may see the above log files for later need.
The kselftest target builds "nettest" executable binary. Copy it to PATH or make a symlink.
cp tools/testing/selftests/net/nettest /usr/local/bin
Rerun the selftest to pass some failing tests because of previously non-existant nettest binary.