Home
last modified time | relevance | path

Searched refs:kunit (Results 1 – 25 of 196) sorted by relevance

12345678

/openbmc/linux/include/kunit/
H A Dresource.h153 int __kunit_add_resource(struct kunit *test,
169 static inline int kunit_add_resource(struct kunit *test, in kunit_add_resource()
191 static inline int kunit_add_named_resource(struct kunit *test, in kunit_add_named_resource()
237 kunit_alloc_and_get_resource(struct kunit *test, in kunit_alloc_and_get_resource()
280 static inline void *kunit_alloc_resource(struct kunit *test, in kunit_alloc_resource()
299 typedef bool (*kunit_resource_match_t)(struct kunit *test,
323 kunit_find_resource(struct kunit *test, in kunit_find_resource()
351 kunit_find_named_resource(struct kunit *test, in kunit_find_named_resource()
367 int kunit_destroy_resource(struct kunit *test,
455 void kunit_remove_action(struct kunit *test,
[all …]
/openbmc/linux/sound/soc/
H A Dsoc-topology-test.c52 struct kunit *kunit; member
250 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_comp()
292 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_ops()
354 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_fw()
393 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg()
443 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_magic()
498 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_abi()
553 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_size()
608 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_payload_size()
662 kunit_comp->kunit = test; in snd_soc_tplg_test_load_pcm_tplg()
[all …]
/openbmc/linux/mm/kasan/
H A Dkasan_test.c88 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
285 static void pagealloc_uaf(struct kunit *test) in pagealloc_uaf()
427 static void krealloc_uaf(struct kunit *test) in krealloc_uaf()
614 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
646 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
680 static void kmalloc_uaf3(struct kunit *test) in kmalloc_uaf3()
872 static void ksize_uaf(struct kunit *test) in ksize_uaf()
992 static void kasan_memchr(struct kunit *test) in kasan_memchr()
1189 static void rcu_uaf(struct kunit *test) in rcu_uaf()
1263 static void vmalloc_oob(struct kunit *test) in vmalloc_oob()
[all …]
/openbmc/linux/drivers/gpu/drm/vc4/tests/
H A Dvc4_mock.h9 struct drm_crtc *vc4_find_crtc_for_encoder(struct kunit *test, in vc4_find_crtc_for_encoder()
28 struct vc4_dummy_plane *vc4_dummy_plane(struct kunit *test,
36 struct vc4_dummy_crtc *vc4_mock_pv(struct kunit *test,
49 struct vc4_dummy_output *vc4_dummy_output(struct kunit *test,
56 struct vc4_dev *vc4_mock_device(struct kunit *test);
57 struct vc4_dev *vc5_mock_device(struct kunit *test);
59 int vc4_mock_atomic_add_output(struct kunit *test,
62 int vc4_mock_atomic_del_output(struct kunit *test,
/openbmc/linux/Documentation/dev-tools/kunit/
H A Dstart.rst24 ./tools/testing/kunit/kunit.py run
30 This happens because internally kunit.py specifies ``.kunit``
77 tools/testing/kunit/kunit.py config
78 cat .kunit/.kunitconfig
99 ./tools/testing/kunit/kunit.py run \
105 ./tools/testing/kunit/kunit.py run \
120 cp .kunit/defconfig .kunit/.kunitconfig
135 ./tools/testing/kunit/kunit.py run "kunit_executor_test"
140 ./tools/testing/kunit/kunit.py run "example.example_simple_test"
146 ./tools/testing/kunit/kunit.py run "*.*64*"
[all …]
H A Drunning_tips.rst7 Using ``kunit.py run`` ("kunit tool")
18 ( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run "$@" )
36 $ ./tools/testing/kunit/kunit.py run 'sysctl*'
43 $ ./tools/testing/kunit/kunit.py run 'sysctl*.*write*'
64 $ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit/.kunitconfig
71 $ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit
97 $ ./tools/testing/kunit/kunit.py run --kernel_args=param=42 --kernel_args=param2=false
126 …$ ./tools/testing/kunit/kunit.py run --kunitconfig=.kunit/ --kunitconfig=tools/testing/kunit/confi…
139 $ ./tools/testing/kunit/kunit.py run --make_options=CC=/usr/bin/gcc-6
197 $ modprobe kunit-example-test
[all …]
H A Drun_wrapper.rst19 ./tools/testing/kunit/kunit.py run
59 ./tools/testing/kunit/kunit.py run --help
111 ./tools/testing/kunit/kunit.py config
118 ./tools/testing/kunit/kunit.py build
126 ./tools/testing/kunit/kunit.py exec
141 ./tools/testing/kunit/kunit.py run --raw_output
153 dmesg | ./tools/testing/kunit/kunit.py parse
164 ./tools/testing/kunit/kunit.py run 'kunit-resource*'
201 ./tools/testing/kunit/kunit.py run --arch=x86_64
208 ./tools/testing/kunit/kunit.py run \
[all …]
H A Dfaq.rst34 (``tools/testing/kunit/kunit.py``) that might not support some architectures
35 (see :ref:`kunit-on-qemu`).
40 For more information, see :ref:`kunit-on-non-uml`.
73 1. Run ``./tools/testing/kunit/kunit.py run`` with the ``--raw_output``
76 2. Instead of running ``kunit.py run``, try running ``kunit.py config``,
77 ``kunit.py build``, and ``kunit.py exec`` independently. This can help track
79 can run it manually against ``stdin`` or a file with ``kunit.py parse``.)
82 after building the UML kernel (for example, by using ``kunit.py build``).
89 around, so you can see what config was used after running ``kunit.py run``.
101 can be parsed with ``kunit.py parse``. For more details, see :ref:`kunit-on-qemu`.
[all …]
/openbmc/linux/lib/kunit/
H A Dkunit-test.c20 struct kunit *test = data; in kunit_test_successful_try()
28 struct kunit *test = data; in kunit_test_no_catch()
49 struct kunit *test = data; in kunit_test_unsuccessful_try()
59 struct kunit *test = data; in kunit_test_catch()
79 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init()
112 struct kunit test;
533 static void kunit_log_test(struct kunit *test) in kunit_log_test()
584 struct kunit fake; in kunit_status_set_failure_test()
595 struct kunit fake; in kunit_status_mark_skipped_test()
622 static void kunit_current_test(struct kunit *test) in kunit_current_test()
[all …]
H A Dkunit-example-test.c22 static void example_simple_test(struct kunit *test) in example_simple_test()
37 static int example_test_init(struct kunit *test) in example_test_init()
48 static void example_test_exit(struct kunit *test) in example_test_exit()
78 static void example_skip_test(struct kunit *test) in example_skip_test()
93 static void example_mark_skipped_test(struct kunit *test) in example_mark_skipped_test()
108 static void example_all_expect_macros_test(struct kunit *test) in example_all_expect_macros_test()
174 static void example_static_stub_test(struct kunit *test) in example_static_stub_test()
208 static void example_params_test(struct kunit *test) in example_params_test()
226 static void example_slow_test(struct kunit *test) in example_slow_test()
H A DMakefile1 obj-$(CONFIG_KUNIT) += kunit.o
3 kunit-objs += test.o \
13 kunit-objs += debugfs.o
19 obj-$(CONFIG_KUNIT_TEST) += kunit-test.o
26 obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o
H A Dresource.c19 int __kunit_add_resource(struct kunit *test, in __kunit_add_resource()
48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource()
63 int kunit_destroy_resource(struct kunit *test, kunit_resource_match_t match, in kunit_destroy_resource()
95 int kunit_add_action(struct kunit *test, void (*action)(void *), void *ctx) in kunit_add_action()
116 int kunit_add_action_or_reset(struct kunit *test, void (*action)(void *), in kunit_add_action_or_reset()
127 static bool __kunit_action_match(struct kunit *test, in __kunit_action_match()
141 void kunit_remove_action(struct kunit *test, in kunit_remove_action()
161 void kunit_release_action(struct kunit *test, in kunit_release_action()
H A Dexecutor_test.c13 static struct kunit_suite *alloc_fake_suite(struct kunit *test,
17 static void dummy_test(struct kunit *test) {} in dummy_test()
26 static void parse_filter_test(struct kunit *test) in parse_filter_test()
43 static void filter_suites_test(struct kunit *test) in filter_suites_test()
69 static void filter_suites_test_glob_test(struct kunit *test) in filter_suites_test_glob_test()
98 static void filter_suites_to_empty_test(struct kunit *test) in filter_suites_to_empty_test()
118 static void parse_filter_attr_test(struct kunit *test) in parse_filter_attr_test()
150 static void filter_attr_test(struct kunit *test) in filter_attr_test()
188 static void filter_attr_empty_test(struct kunit *test) in filter_attr_empty_test()
209 static void filter_attr_skip_test(struct kunit *test) in filter_attr_skip_test()
[all …]
H A Dtest.c97 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats()
198 static void kunit_print_ok_not_ok(struct kunit *test, in kunit_print_ok_not_ok()
329 void __noreturn __kunit_abort(struct kunit *test) in __kunit_abort()
343 void __kunit_do_failed_assertion(struct kunit *test, in __kunit_do_failed_assertion()
454 struct kunit *test;
462 struct kunit *test = ctx->test; in kunit_try_run_case()
479 struct kunit *test = ctx->test; in kunit_try_run_case_cleanup()
490 struct kunit *test = ctx->test; in kunit_catch_run_case_cleanup()
521 struct kunit *test = ctx->test; in kunit_catch_run_case()
550 struct kunit *test) in kunit_run_case_catch_errors()
[all …]
/openbmc/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.h28 struct ttm_buffer_object *ttm_bo_kunit_init(struct kunit *test,
32 struct ttm_test_devices *ttm_test_devices_basic(struct kunit *test);
33 struct ttm_test_devices *ttm_test_devices_all(struct kunit *test);
35 void ttm_test_devices_put(struct kunit *test, struct ttm_test_devices *devs);
38 int ttm_test_devices_init(struct kunit *test);
39 void ttm_test_devices_fini(struct kunit *test);
/openbmc/linux/include/drm/
H A Ddrm_kunit_helpers.h13 struct kunit;
15 struct device *drm_kunit_helper_alloc_device(struct kunit *test);
16 void drm_kunit_helper_free_device(struct kunit *test, struct device *dev);
19 __drm_kunit_helper_alloc_drm_device_with_driver(struct kunit *test,
51 __drm_kunit_helper_alloc_drm_device(struct kunit *test, in __drm_kunit_helper_alloc_drm_device()
95 drm_kunit_helper_acquire_ctx_alloc(struct kunit *test);
98 drm_kunit_helper_atomic_state_alloc(struct kunit *test,
/openbmc/linux/lib/
H A Dlist-test.c18 static void list_test_list_init(struct kunit *test) in list_test_list_init()
47 static void list_test_list_add(struct kunit *test) in list_test_list_add()
75 static void list_test_list_del(struct kunit *test) in list_test_list_del()
126 static void list_test_list_swap(struct kunit *test) in list_test_list_swap()
185 static void list_test_list_move(struct kunit *test) in list_test_list_move()
813 static void hlist_test_init(struct kunit *test) in hlist_test_init()
884 static void hlist_test_del(struct kunit *test) in hlist_test_del()
921 static void hlist_test_add(struct kunit *test) in hlist_test_add()
945 static void hlist_test_fake(struct kunit *test) in hlist_test_fake()
976 static void hlist_test_empty(struct kunit *test) in hlist_test_empty()
[all …]
/openbmc/linux/mm/kmsan/
H A Dkmsan_test.c154 static void test_uninit_kmalloc(struct kunit *test) in test_uninit_kmalloc()
168 static void test_init_kmalloc(struct kunit *test) in test_init_kmalloc()
181 static void test_init_kzalloc(struct kunit *test) in test_init_kzalloc()
204 static void test_init_stack_var(struct kunit *test) in test_init_stack_var()
235 static void test_params(struct kunit *test) in test_params()
336 static void test_init_vmalloc(struct kunit *test) in test_init_vmalloc()
354 static void test_uaf(struct kunit *test) in test_uaf()
392 static void test_printk(struct kunit *test) in test_printk()
425 static void test_init_memcpy(struct kunit *test) in test_init_memcpy()
612 static int test_init(struct kunit *test) in test_init()
[all …]
/openbmc/linux/security/apparmor/
H A Dpolicy_unpack_test.c55 struct kunit *test, size_t buf_size) in build_aa_ext_struct()
111 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init()
126 static void policy_unpack_test_inbounds_when_inbounds(struct kunit *test) in policy_unpack_test_inbounds_when_inbounds()
155 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name()
197 static void policy_unpack_test_unpack_blob_with_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_name()
242 static void policy_unpack_test_unpack_str_with_name(struct kunit *test) in policy_unpack_test_unpack_str_with_name()
399 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1()
415 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_2()
452 static void policy_unpack_test_unpack_u32_with_name(struct kunit *test) in policy_unpack_test_unpack_u32_with_name()
502 static void policy_unpack_test_unpack_u64_with_name(struct kunit *test) in policy_unpack_test_unpack_u64_with_name()
[all …]
/openbmc/linux/drivers/clk/
H A Dclk-gate_test.c11 static void clk_gate_register_test_dev(struct kunit *test) in clk_gate_register_test_dev()
148 static void clk_gate_test_parent_rate(struct kunit *test) in clk_gate_test_parent_rate()
159 static void clk_gate_test_enable(struct kunit *test) in clk_gate_test_enable()
176 static void clk_gate_test_disable(struct kunit *test) in clk_gate_test_disable()
203 static int clk_gate_test_init(struct kunit *test) in clk_gate_test_init()
224 static void clk_gate_test_exit(struct kunit *test) in clk_gate_test_exit()
239 static void clk_gate_test_invert_enable(struct kunit *test) in clk_gate_test_invert_enable()
282 static int clk_gate_test_invert_init(struct kunit *test) in clk_gate_test_invert_init()
355 static int clk_gate_test_hiword_init(struct kunit *test) in clk_gate_test_hiword_init()
384 static void clk_gate_test_is_enabled(struct kunit *test) in clk_gate_test_is_enabled()
[all …]
H A Dclk_test.c190 static int clk_test_init(struct kunit *test) in clk_test_init()
195 static int clk_maximize_test_init(struct kunit *test) in clk_maximize_test_init()
200 static int clk_minimize_test_init(struct kunit *test) in clk_minimize_test_init()
205 static void clk_test_exit(struct kunit *test) in clk_test_exit()
215 static void clk_test_get_rate(struct kunit *test) in clk_test_get_rate()
236 static void clk_test_set_get_rate(struct kunit *test) in clk_test_set_get_rate()
330 static int clk_uncached_test_init(struct kunit *test) in clk_uncached_test_init()
452 clk_multiple_parents_mux_test_init(struct kunit *test) in clk_multiple_parents_mux_test_init()
996 clk_single_parent_mux_test_exit(struct kunit *test) in clk_single_parent_mux_test_exit()
2422 clk_mux_no_reparent_test_init(struct kunit *test) in clk_mux_no_reparent_test_init()
[all …]
/openbmc/linux/arch/s390/lib/
H A Dtest_kprobes.c11 static void setup_kprobe(struct kunit *test, struct kprobe *kp, in setup_kprobe()
19 static void test_kprobe_offset(struct kunit *test, struct kprobe *kp, in test_kprobe_offset()
36 static void test_kprobe_odd(struct kunit *test) in test_kprobe_odd()
42 static void test_kprobe_in_insn4(struct kunit *test) in test_kprobe_in_insn4()
48 static void test_kprobe_in_insn6_lo(struct kunit *test) in test_kprobe_in_insn6_lo()
54 static void test_kprobe_in_insn6_hi(struct kunit *test) in test_kprobe_in_insn6_hi()
/openbmc/linux/kernel/events/
H A Dhw_breakpoint_test.c93 static struct task_struct *get_other_task(struct kunit *test) in get_other_task()
122 static void test_one_cpu(struct kunit *test) in test_one_cpu()
131 static void test_many_cpus(struct kunit *test) in test_many_cpus()
146 static void test_one_task_on_all_cpus(struct kunit *test) in test_one_task_on_all_cpus()
159 static void test_two_tasks_on_all_cpus(struct kunit *test) in test_two_tasks_on_all_cpus()
177 static void test_one_task_on_one_cpu(struct kunit *test) in test_one_task_on_one_cpu()
193 static void test_one_task_mixed(struct kunit *test) in test_one_task_mixed()
213 static void test_two_tasks_on_one_cpu(struct kunit *test) in test_two_tasks_on_one_cpu()
245 static void test_task_on_all_and_one_cpu(struct kunit *test) in test_task_on_all_and_one_cpu()
294 static int test_init(struct kunit *test) in test_init()
[all …]
/openbmc/linux/net/mptcp/
H A Dtoken_test.c6 static struct mptcp_subflow_request_sock *build_req_sock(struct kunit *test) in build_req_sock()
18 static void mptcp_token_test_req_basic(struct kunit *test) in mptcp_token_test_req_basic()
32 static struct inet_connection_sock *build_icsk(struct kunit *test) in build_icsk()
42 static struct mptcp_subflow_context *build_ctx(struct kunit *test) in build_ctx()
52 static struct mptcp_sock *build_msk(struct kunit *test) in build_msk()
66 static void mptcp_token_test_msk_basic(struct kunit *test) in mptcp_token_test_msk_basic()
89 static void mptcp_token_test_accept(struct kunit *test) in mptcp_token_test_accept()
108 static void mptcp_token_test_destroyed(struct kunit *test) in mptcp_token_test_destroyed()
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_format_test.c12 static void drm_test_format_block_width_invalid(struct kunit *test) in drm_test_format_block_width_invalid()
21 static void drm_test_format_block_width_one_plane(struct kunit *test) in drm_test_format_block_width_one_plane()
32 static void drm_test_format_block_width_two_plane(struct kunit *test) in drm_test_format_block_width_two_plane()
44 static void drm_test_format_block_width_three_plane(struct kunit *test) in drm_test_format_block_width_three_plane()
57 static void drm_test_format_block_width_tiled(struct kunit *test) in drm_test_format_block_width_tiled()
68 static void drm_test_format_block_height_invalid(struct kunit *test) in drm_test_format_block_height_invalid()
77 static void drm_test_format_block_height_one_plane(struct kunit *test) in drm_test_format_block_height_one_plane()
113 static void drm_test_format_block_height_tiled(struct kunit *test) in drm_test_format_block_height_tiled()
124 static void drm_test_format_min_pitch_invalid(struct kunit *test) in drm_test_format_min_pitch_invalid()
225 static void drm_test_format_min_pitch_two_plane(struct kunit *test) in drm_test_format_min_pitch_two_plane()
[all …]

12345678