Home
last modified time | relevance | path

Searched refs:suite (Results 1 – 22 of 22) sorted by relevance

/lib/kunit/
A Ddebugfs.c70 if (!suite) in debugfs_print_results()
101 struct kunit_suite *suite; in debugfs_results_open() local
118 suite->name); in debugfs_print_run()
129 struct kunit_suite *suite; in debugfs_run_open() local
174 if (suite->log) in kunit_debugfs_create_suite()
188 suite->log = stream; in kunit_debugfs_create_suite()
199 suite->debugfs = debugfs_create_dir(suite->name, debugfs_rootdir); in kunit_debugfs_create_suite()
202 suite->debugfs, in kunit_debugfs_create_suite()
206 if (!suite->is_init) { in kunit_debugfs_create_suite()
208 suite->debugfs, in kunit_debugfs_create_suite()
[all …]
A Dtest.c169 suite->name); in kunit_print_suite_start()
238 suite->name, in kunit_print_suite_end()
426 if (suite->init) { in kunit_run_case_internal()
458 if (suite->exit) in kunit_run_case_cleanup()
474 struct kunit_suite *suite = ctx->suite; in kunit_try_run_case() local
491 struct kunit_suite *suite = ctx->suite; in kunit_try_run_case_cleanup() local
574 context.suite = suite; in kunit_run_case_catch_errors()
600 suite->name, in kunit_print_suite_stats()
655 suite->suite_init_err = suite->suite_init(suite); in kunit_run_tests()
729 suite->suite_exit(suite); in kunit_run_tests()
[all …]
A Ddebugfs.h13 void kunit_debugfs_create_suite(struct kunit_suite *suite);
14 void kunit_debugfs_destroy_suite(struct kunit_suite *suite);
20 static inline void kunit_debugfs_create_suite(struct kunit_suite *suite) { } in kunit_debugfs_create_suite() argument
22 static inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { } in kunit_debugfs_destroy_suite() argument
A Dattributes.c215 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_speed_get() local
221 return ((void *) suite->attr.speed); in attr_speed_get()
226 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_module_get() local
232 else if (kunit_suite_num_test_cases(suite) > 0) in attr_module_get()
233 return ((void *) suite->test_cases[0].module_name); in attr_module_get()
246 return ((void *) suite->is_init); in attr_is_init_get()
307 kunit_log(KERN_INFO, suite, "%*s# %s: %s", in kunit_print_attr()
407 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_attr_tests()
411 kunit_suite_for_each_test_case(suite, test_case) { n++; } in kunit_filter_attr_tests()
427 suite_val = filter.attr->get_attr((void *)suite, false); in kunit_filter_attr_tests()
[all …]
A Dexecutor_test.c285 struct kunit_suite *suite; in alloc_fake_suite() local
288 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite()
289 strscpy((char *)suite->name, suite_name, sizeof(suite->name)); in alloc_fake_suite()
290 suite->test_cases = test_cases; in alloc_fake_suite()
292 return suite; in alloc_fake_suite()
A Dkunit-example-test.c58 static int example_test_init_suite(struct kunit_suite *suite) in example_test_init_suite() argument
60 kunit_info(suite, "initializing suite\n"); in example_test_init_suite()
69 static void example_test_exit_suite(struct kunit_suite *suite) in example_test_exit_suite() argument
71 kunit_info(suite, "exiting suite\n"); in example_test_exit_suite()
A Dexecutor.c114 kunit_filter_glob_tests(const struct kunit_suite *const suite, const char *test_glob) in kunit_filter_glob_tests() argument
120 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests()
128 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests()
139 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests()
A Dkunit-test.c595 struct kunit_suite suite; in kunit_log_test() local
599 suite.log = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_log_test()
600 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, suite.log); in kunit_log_test()
601 string_stream_set_append_newlines(suite.log, true); in kunit_log_test()
605 kunit_log(KERN_INFO, &suite, "add to suite log."); in kunit_log_test()
606 kunit_log(KERN_INFO, &suite, "along with this."); in kunit_log_test()
618 full_log = string_stream_get_string(suite.log); in kunit_log_test()
A DKconfig24 test suite, which allow users to see results of the last test suite
/lib/math/tests/
A Dprime_numbers_kunit.c12 struct kunit_suite *suite = ctx; in dump_primes() local
15 kunit_info(suite, "primes.{last=%lu, .sz=%lu, .primes[]=...x%lx} = %s", in dump_primes()
39 static void kunit_suite_exit(struct kunit_suite *suite) in kunit_suite_exit() argument
41 with_primes(suite, dump_primes); in kunit_suite_exit()
/lib/crypto/tests/
A Dpoly1305_kunit.c46 static int poly1305_suite_init(struct kunit_suite *suite) in poly1305_suite_init() argument
49 return hash_suite_init(suite); in poly1305_suite_init()
52 static void poly1305_suite_exit(struct kunit_suite *suite) in poly1305_suite_exit() argument
54 hash_suite_exit(suite); in poly1305_suite_exit()
A DKconfig55 corresponding KUnit test suite runs.
A Dhash-test-template.h76 static int hash_suite_init(struct kunit_suite *suite) in hash_suite_init() argument
93 static void hash_suite_exit(struct kunit_suite *suite) in hash_suite_exit() argument
/lib/
A DKconfig.kfence55 Warning: The KUnit test suite fails with this option enabled - due to
87 tristate "KFENCE integration test suite" if !KUNIT_ALL_TESTS
91 Test suite for KFENCE, testing various error detection scenarios with
A DKconfig.kmsan52 tristate "KMSAN integration test suite" if !KUNIT_ALL_TESTS
56 Test suite for KMSAN, testing various error detection scenarios,
A DKconfig.kgdb53 bool "KGDB: internal test suite"
77 This is the command string to send the kgdb test suite on
A DKconfig.kasan191 A KUnit-based KASAN test suite. Triggers different kinds of
A DKconfig.debug2732 This builds the generic FIFO implementation KUnit test suite.
2746 This builds the linked list KUnit test suite.
2765 This builds the hashtable KUnit test suite.
3253 This option enables the KUnit test suite for the int_pow function,
3254 which performs integer exponentiation. The test suite is designed to
3269 This option enables the KUnit test suite for the int_sqrt() function,
3270 which performs square root calculation. The test suite checks
3284 This option enables the KUnit test suite for the int_log library, which
3295 This option enables the KUnit test suite for the gcd() function,
3298 This test suite verifies the correctness of gcd() across various
[all …]
/lib/crc/tests/
A Dcrc_kunit.c89 static int crc_suite_init(struct kunit_suite *suite) in crc_suite_init() argument
106 static void crc_suite_exit(struct kunit_suite *suite) in crc_suite_exit() argument
/lib/tests/
A Dprintf_kunit.c766 static int printf_suite_init(struct kunit_suite *suite) in printf_suite_init() argument
778 static void printf_suite_exit(struct kunit_suite *suite) in printf_suite_exit() argument
782 kunit_info(suite, "ran %u tests\n", total_tests); in printf_suite_exit()
A Dscanf_kunit.c781 static int scanf_suite_init(struct kunit_suite *suite) in scanf_suite_init() argument
798 static void scanf_suite_exit(struct kunit_suite *suite) in scanf_suite_exit() argument
/lib/crc/
A DKconfig119 Include benchmarks in the KUnit test suite for the CRC functions.

Completed in 47 milliseconds