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>
38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
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
|
|
# example_simple_test: EXPECTATION FAILED at lib/kunit/example-test.c:30
|
|
Expected 1 + 1 == 3, but
|
|
1 + 1 == 2
|
|
3 == 3
|
|
# 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
|