45dcbb6f5e
TAP 14 allows an optional test plan to be emitted before the start of the start of testing[1]; this is valuable because it makes it possible for a test harness to detect whether the number of tests run matches the number of tests expected to be run, ensuring that no tests silently failed. Link[1]: https://github.com/isaacs/testanything.github.io/blob/tap14/tap-version-14-specification.md#the-plan Signed-off-by: Brendan Higgins <brendanhiggins@google.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
71 lines
3.0 KiB
Plaintext
71 lines
3.0 KiB
Plaintext
printk: console [tty0] enabled
|
|
printk: console [mc-1] enabled
|
|
TAP version 14
|
|
1..2
|
|
# 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
|
|
Stack:
|
|
6016f7db 6f81bd30 6f81bdd0 60021450
|
|
6024b0e8 60021440 60018bbe 16f81bdc0
|
|
00000001 6f81bd30 6f81bd20 6f81bdd0
|
|
Call Trace:
|
|
[<6016f7db>] ? kunit_try_run_case+0xab/0xf0
|
|
[<60021450>] ? set_signals+0x0/0x60
|
|
[<60021440>] ? get_signals+0x0/0x10
|
|
[<60018bbe>] ? kunit_um_run_try_catch+0x5e/0xc0
|
|
[<60021450>] ? set_signals+0x0/0x60
|
|
[<60021440>] ? get_signals+0x0/0x10
|
|
[<60018bb3>] ? kunit_um_run_try_catch+0x53/0xc0
|
|
[<6016f321>] ? kunit_run_case_catch_errors+0x121/0x1a0
|
|
[<60018b60>] ? kunit_um_run_try_catch+0x0/0xc0
|
|
[<600189e0>] ? kunit_um_throw+0x0/0x180
|
|
[<6016f730>] ? kunit_try_run_case+0x0/0xf0
|
|
[<6016f600>] ? kunit_catch_run_case+0x0/0x130
|
|
[<6016edd0>] ? kunit_vprintk+0x0/0x30
|
|
[<6016ece0>] ? kunit_fail+0x0/0x40
|
|
[<6016eca0>] ? kunit_abort+0x0/0x40
|
|
[<6016ed20>] ? kunit_printk_emit+0x0/0xb0
|
|
[<6016f200>] ? kunit_run_case_catch_errors+0x0/0x1a0
|
|
[<6016f46e>] ? kunit_run_tests+0xce/0x260
|
|
[<6005b390>] ? unregister_console+0x0/0x190
|
|
[<60175b70>] ? suite_kunit_initexample_test_suite+0x0/0x20
|
|
[<60001cbb>] ? do_one_initcall+0x0/0x197
|
|
[<60001d47>] ? do_one_initcall+0x8c/0x197
|
|
[<6005cd20>] ? irq_to_desc+0x0/0x30
|
|
[<60002005>] ? kernel_init_freeable+0x1b3/0x272
|
|
[<6005c5ec>] ? printk+0x0/0x9b
|
|
[<601c0086>] ? kernel_init+0x26/0x160
|
|
[<60014442>] ? new_thread_handler+0x82/0xc0
|
|
|
|
# example_simple_test: kunit test case crashed!
|
|
# example_simple_test: example_simple_test failed
|
|
not ok 1 - example_simple_test
|
|
# example_mock_test: initializing
|
|
# example_mock_test: example_mock_test passed
|
|
ok 2 - example_mock_test
|
|
kunit example: one or more tests failed
|
|
not ok 2 - example
|
|
List of all partitions:
|