Testing Linux Kernel
Testing is an integral and important part of any software development cycle and Linux kernel is no exception to that.
With several developers continuing to
add new features, and
fixing bugs,
Continuous integration and testing is vital to ensure the kernel continues to work on
existing hardware as new hardware support and features get added
New kernels are always released regularly, but in fact, everyone doesn’t fully understand how the kernel is tested in depth
In this course, we will be looking into various testing tools available for Linux Kernel:
- Linux Test Project (LTP)
- LTP-DDT
- Kselftest
Introduction to Linux Testing
1
Introduction
2
Running few usage tests
Linux Test Project
1
Introduction to LTP
2
LTP Design Goals
3
Tests covered by LTP
4
Installing LTP
5
Running LTP Tests
6
Runtest and runltp script
7
ltp-pan driver
8
Testcases directory
9
Frequency of ltp releases
10
When to use ltp
11
Change name of log file
12
Script Readable Format
13
HTML Report
14
Controlling ltp tests to run
15
ver_linux script
16
Other files in ltp installation directory
17
Template of LTP Test
18
Adding a new testcase
19
tst_res API
20
setup and cleanup function
21
Runtest File Format
22
TCONF
23
Creating Temporary Directory
24
Creating Temporary Directory Part 2
25
TBROK
26
SAFE Macros
27
Test function
28
Test Macro
29
Executing testsuite for a particular duration
30
Reduce Logging
31
Other LTP options
32
Stress Testing in LTP
33
LTP on Yocto
34
LTP on Beaglebone black
35
Notes
36
LTP Quiz
LTP-DDT
1
Introduction
2
Download LTP-DDT
3
Goals of LTP-DDT
4
Enhancement of LTP-DDT over LTP
5
Running Tests in LTP_DDT
6
Running ltp-ddt tests on beaglebone
7
Runtest format guidelines
8
Adding new test cases
9
Guidelines to follow while writing test cases
10
Resources
11
LTP-DDT Quiz
Kselftest
1
Introduction
2
Kselftest - Purpose, Types of Tests, Users
3
When do we run kselftest
4
Difference between LTP and Kselftest
5
When are new tests added to kselftest
6
Build and Run Kselftest
7
Running Subset of tests
8
Output format
9
Saving output files in separate directory
10
Summary Option
11
Installing kselftest
12
Generate Tarball
13
Kselftest test examples
14
kselftest-merge
15
kselftest use cases
16
Kselftest Quiz
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!