![Felix Guo](/assets/img/avatar_default.png)
The ultimate goal is to create minimal isolated test binaries; in the meantime we are using UML to provide the infrastructure to run tests, so define an abstract way to configure and run tests that allow us to change the context in which tests are built without affecting the user. This also makes pretty and dynamic error reporting, and a lot of other nice features easier. kunit_config.py: - parse .config and Kconfig files. kunit_kernel.py: provides helper functions to: - configure the kernel using kunitconfig. - build the kernel with the appropriate configuration. - provide function to invoke the kernel and stream the output back. kunit_parser.py: parses raw logs returned out by kunit_kernel and displays them in a user friendly way. test_data/*: samples of test data for testing kunit.py, kunit_config.py, etc. Signed-off-by: Felix Guo <felixguoxiuping@gmail.com> Signed-off-by: Brendan Higgins <brendanhiggins@google.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
TAP version 14
|
|
# Subtest: sysctl_test
|
|
1..8
|
|
# sysctl_test_dointvec_null_tbl_data: sysctl_test_dointvec_null_tbl_data passed
|
|
ok 1 - sysctl_test_dointvec_null_tbl_data
|
|
# sysctl_test_dointvec_table_maxlen_unset: sysctl_test_dointvec_table_maxlen_unset passed
|
|
ok 2 - sysctl_test_dointvec_table_maxlen_unset
|
|
# sysctl_test_dointvec_table_len_is_zero: sysctl_test_dointvec_table_len_is_zero passed
|
|
ok 3 - sysctl_test_dointvec_table_len_is_zero
|
|
# sysctl_test_dointvec_table_read_but_position_set: sysctl_test_dointvec_table_read_but_position_set passed
|
|
ok 4 - sysctl_test_dointvec_table_read_but_position_set
|
|
# sysctl_test_dointvec_happy_single_positive: sysctl_test_dointvec_happy_single_positive passed
|
|
ok 5 - sysctl_test_dointvec_happy_single_positive
|
|
# sysctl_test_dointvec_happy_single_negative: sysctl_test_dointvec_happy_single_negative passed
|
|
ok 6 - sysctl_test_dointvec_happy_single_negative
|
|
# sysctl_test_dointvec_single_less_int_min: sysctl_test_dointvec_single_less_int_min passed
|
|
ok 7 - sysctl_test_dointvec_single_less_int_min
|
|
# sysctl_test_dointvec_single_greater_int_max: sysctl_test_dointvec_single_greater_int_max passed
|
|
ok 8 - sysctl_test_dointvec_single_greater_int_max
|
|
kunit sysctl_test: all tests passed
|
|
ok 1 - sysctl_test
|
|
# Subtest: example
|
|
1..2
|
|
init_suite
|
|
# example_simple_test: initializing
|
|
# example_simple_test: example_simple_test passed
|
|
ok 1 - example_simple_test
|
|
# example_mock_test: initializing
|
|
# example_mock_test: example_mock_test passed
|
|
ok 2 - example_mock_test
|
|
kunit example: all tests passed
|
|
ok 2 - example
|