Home
last modified time | relevance | path

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

1234

/Linux-v6.1/lib/kunit/
Ddebugfs.c40 struct kunit_suite *suite, in debugfs_print_result() argument
54 struct kunit_suite *suite = (struct kunit_suite *)seq->private; in debugfs_print_results() local
55 enum kunit_status success = kunit_suite_has_succeeded(suite); in debugfs_print_results()
58 if (!suite || !suite->log) in debugfs_print_results()
61 seq_printf(seq, "%s", suite->log); in debugfs_print_results()
63 kunit_suite_for_each_test_case(suite, test_case) in debugfs_print_results()
64 debugfs_print_result(seq, suite, test_case); in debugfs_print_results()
67 kunit_status_to_ok_not_ok(success), 1, suite->name); in debugfs_print_results()
78 struct kunit_suite *suite; in debugfs_results_open() local
80 suite = (struct kunit_suite *)inode->i_private; in debugfs_results_open()
[all …]
Dtest.c138 size_t kunit_suite_num_test_cases(struct kunit_suite *suite) in kunit_suite_num_test_cases() argument
143 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases()
150 static void kunit_print_suite_start(struct kunit_suite *suite) in kunit_print_suite_start() argument
152 kunit_log(KERN_INFO, suite, KUNIT_SUBTEST_INDENT "# Subtest: %s", in kunit_print_suite_start()
153 suite->name); in kunit_print_suite_start()
154 kunit_log(KERN_INFO, suite, KUNIT_SUBTEST_INDENT "1..%zd", in kunit_print_suite_start()
155 kunit_suite_num_test_cases(suite)); in kunit_print_suite_start()
165 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in kunit_print_ok_not_ok() local
177 if (suite) in kunit_print_ok_not_ok()
190 enum kunit_status kunit_suite_has_succeeded(struct kunit_suite *suite) in kunit_suite_has_succeeded() argument
[all …]
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
Dexecutor_test.c149 struct kunit_suite *suite; in alloc_fake_suite() local
152 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite()
153 strncpy((char *)suite->name, suite_name, sizeof(suite->name) - 1); in alloc_fake_suite()
154 suite->test_cases = test_cases; in alloc_fake_suite()
156 return suite; in alloc_fake_suite()
Dexecutor.c58 kunit_filter_tests(const struct kunit_suite *const suite, const char *test_glob) in kunit_filter_tests() argument
64 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_tests()
72 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_tests()
83 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_tests()
Dkunit-test.c460 struct kunit_suite suite; in kunit_log_test() local
462 suite.log = kunit_kzalloc(test, KUNIT_LOG_SIZE, GFP_KERNEL); in kunit_log_test()
463 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, suite.log); in kunit_log_test()
467 kunit_log(KERN_INFO, &suite, "add to suite log."); in kunit_log_test()
468 kunit_log(KERN_INFO, &suite, "along with this."); in kunit_log_test()
476 strstr(suite.log, "add to suite log.")); in kunit_log_test()
478 strstr(suite.log, "along with this.")); in kunit_log_test()
Dkunit-example-test.c47 static int example_test_init_suite(struct kunit_suite *suite) in example_test_init_suite() argument
49 kunit_info(suite, "initializing suite\n"); in example_test_init_suite()
DKconfig24 test suite, which allow users to see results of the last test suite
/Linux-v6.1/crypto/
Dtestmgr.c155 } suite; member
1930 const struct hash_testvec *template = desc->suite.hash.vecs; in alg_test_hash()
1931 unsigned int tcount = desc->suite.hash.count; in alg_test_hash()
2244 const struct aead_test_suite *suite, in generate_aead_message() argument
2256 if (suite->aad_iv && vec->alen >= ivsize) in generate_aead_message()
2294 mutate_aead_message(vec, suite->aad_iv, ivsize); in generate_aead_message()
2297 if (suite->einval_allowed) in generate_aead_message()
2310 const struct aead_test_suite *suite, in generate_random_aead_testvec() argument
2359 generate_aead_message(req, suite, vec, prefer_inauthentic); in generate_random_aead_testvec()
2372 &ctx->test_desc->suite.aead, in try_to_generate_inauthentic_testvec()
[all …]
/Linux-v6.1/Documentation/dev-tools/kunit/
Dstyle.rst24 suite is a group of tests which test a related area of the kernel. A subsystem
31 Every test suite must belong to a subsystem. A subsystem is a collection of one
81 shutdown code which is run for all tests in the suite. Not all subsystems need
90 put into separate suites, with the type of test as the last element in the suite
92 or similar in the suite name.
94 The full test suite name (including the subsystem name) should be specified as
105 The ``kasan`` subsystem has only one suite, so the suite name is the same as
113 The suite name is ambiguous without the subsystem name.
115 Because there is only one suite in the ``kasan`` subsystem, the suite should
117 ``integration_test``. It should be a separate test suite. For example, if the
[all …]
Dstart.rst128 separator between the name of the test suite and the test case,
129 otherwise, it will be interpreted as the name of the test suite.
132 a. inform the name of a test suite, like ``"kunit_executor_test"``,
137 b. inform the name of a test case prefixed by its test suite,
144 any test suite::
Drunning_tips.rst224 Retrieving per suite results
228 ``CONFIG_KUNIT_DEBUGFS`` to expose per-suite TAP-formatted results:
236 The results for each suite will be exposed under
237 ``/sys/kernel/debug/kunit/<suite>/results``.
/Linux-v6.1/include/kunit/
Dtest.h172 int (*suite_init)(struct kunit_suite *suite);
173 void (*suite_exit)(struct kunit_suite *suite);
235 int kunit_run_tests(struct kunit_suite *suite);
237 size_t kunit_suite_num_test_cases(struct kunit_suite *suite);
239 unsigned int kunit_test_case_num(struct kunit_suite *suite,
278 #define kunit_test_suite(suite) kunit_test_suites(&suite) argument
305 #define kunit_test_init_section_suite(suite) \ argument
306 kunit_test_init_section_suites(&suite)
308 #define kunit_suite_for_each_test_case(suite, test_case) \ argument
309 for (test_case = suite->test_cases; test_case->run_case; test_case++)
[all …]
/Linux-v6.1/tools/testing/kunit/test_data/
Dtest_is_test_passed-no_tests_no_plan.log3 # Subtest: suite
7 ok 1 - suite
/Linux-v6.1/tools/testing/selftests/tc-testing/creating-plugins/
DAddingPlugins.txt14 - adding commands to be run before and/or after the test suite
18 pre (the pre-suite stage)
23 post (the post-suite stage)
48 TAP output. The tdc.py script will do that for the test suite as
52 post-suite method using this info passed in to the pre_suite method.
/Linux-v6.1/tools/testing/selftests/tc-testing/
DREADME1 tdc - Linux Traffic Control (tc) unit testing suite
76 One run of tests is considered a "test suite" (this will be refined in the
77 future). A test suite has one or more test cases in it.
134 -P, --pause Pause execution just before post-suite stage
198 pre- and post-suite
203 The pre-suite hook receives the number of tests and an array of test ids.
215 - pre (pre-suite)
220 - post (post-suite)
254 first version of the tc testing suite. This work was presented at
DTODO.txt9 need to better handle problems in pre- and post-suite.
28 and a way to configure a test suite,
/Linux-v6.1/Documentation/arm/vfp/
Drelease-notes.rst14 John R. Hauser using the TestFloat-2a test suite. Details of this
15 library and test suite can be found at:
/Linux-v6.1/mm/damon/
DKconfig20 This builds the DAMON Kunit test suite.
48 This builds the DAMON virtual addresses operations Kunit test suite.
79 This builds the DAMON debugfs interface Kunit test suite.
/Linux-v6.1/lib/
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
DKconfig.kmsan52 tristate "KMSAN integration test suite" if !KUNIT_ALL_TESTS
56 Test suite for KMSAN, testing various error detection scenarios,
/Linux-v6.1/Documentation/bpf/
Ds390.rst15 The following is required to build and run the test suite:
105 In addition to the usual Kconfig options required to run the BPF test suite, it
127 4. Running the test suite
160 After that, the test suite can be run using the following commands::
/Linux-v6.1/Documentation/admin-guide/
Dclearing-warn-once.rst9 This can be useful after test suite runs to reproduce problems.
/Linux-v6.1/tools/testing/vsock/
DREADME1 AF_VSOCK test suite
/Linux-v6.1/tools/perf/Documentation/
Dperf-help.txt38 Part of the linkperf:perf[1] suite

1234