/linux-6.1.9/Documentation/dev-tools/kunit/ |
D | running_tips.rst | 7 Using ``kunit.py run`` ("kunit tool") 18 ( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run "$@" ) 22 Early versions of ``kunit.py`` (before 5.6) didn't work unless run from 28 ``kunit.py run`` accepts an optional glob argument to filter tests. The format 35 $ echo -e 'CONFIG_KUNIT=y\nCONFIG_KUNIT_ALL_TESTS=y' > .kunit/.kunitconfig 36 $ ./tools/testing/kunit/kunit.py run 'sysctl*' 42 $ echo -e 'CONFIG_KUNIT=y\nCONFIG_KUNIT_ALL_TESTS=y' > .kunit/.kunitconfig 43 $ ./tools/testing/kunit/kunit.py run 'sysctl*.*write*' 55 ``kunit.py run`` (along with ``build``, and ``config``) supports a 60 E.g. kunit has one for its tests: [all …]
|
D | start.rst | 24 ./tools/testing/kunit/kunit.py run 30 This happens because internally kunit.py specifies ``.kunit`` 57 Documentation/dev-tools/kunit/run_wrapper.rst. 72 If you didn't run ``kunit.py run`` yet, you can generate it by running: 77 tools/testing/kunit/kunit.py config 78 cat .kunit/.kunitconfig 81 ``.kunitconfig`` lives in the ``--build_dir`` used by kunit.py, which is 82 ``.kunit`` by default. 90 a. Edit ``.kunit/.kunitconfig``. The file should contain the list of kconfig 94 If you need to run on an architecture other than UML see :ref:`kunit-on-qemu`. [all …]
|
D | run_wrapper.rst | 9 manually, see: Documentation/dev-tools/kunit/run_manual.rst. 19 ./tools/testing/kunit/kunit.py run 33 ./tools/testing/kunit/kunit.py run --timeout=30 --jobs=`nproc --all` 53 ./tools/testing/kunit/kunit.py run --kunitconfig=fs/ext4/.kunitconfig 59 ./tools/testing/kunit/kunit.py run --help 67 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/kunit/configs… 81 cp tools/testing/kunit/configs/default.config .kunit/.kunitconfig 99 work, therefore by default use ``make O=.kunit menuconfig``. 111 ./tools/testing/kunit/kunit.py config 118 ./tools/testing/kunit/kunit.py build [all …]
|
D | faq.rst | 34 (``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``. 93 5. Try to run ``make ARCH=um defconfig`` before running ``kunit.py run``. This [all …]
|
/linux-6.1.9/sound/soc/ |
D | soc-topology-test.c | 28 static int snd_soc_tplg_test_init(struct kunit *test) in snd_soc_tplg_test_init() 40 static void snd_soc_tplg_test_exit(struct kunit *test) in snd_soc_tplg_test_exit() 52 struct kunit *kunit; member 66 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe() 79 KUNIT_EXPECT_EQ(kunit_comp->kunit, 0, ret); in d_remove() 231 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_comp() 242 static void snd_soc_tplg_test_load_with_null_comp(struct kunit *test) in snd_soc_tplg_test_load_with_null_comp() 250 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_comp() 284 static void snd_soc_tplg_test_load_with_null_ops(struct kunit *test) in snd_soc_tplg_test_load_with_null_ops() 292 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_ops() [all …]
|
/linux-6.1.9/include/kunit/ |
D | resource.h | 153 int __kunit_add_resource(struct kunit *test, 169 static inline int kunit_add_resource(struct kunit *test, in kunit_add_resource() 180 kunit_find_named_resource(struct kunit *test, const char *name); 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, 309 static inline bool kunit_resource_name_match(struct kunit *test, in kunit_resource_name_match() 323 kunit_find_resource(struct kunit *test, in kunit_find_resource() 351 kunit_find_named_resource(struct kunit *test, in kunit_find_named_resource() [all …]
|
/linux-6.1.9/mm/kasan/ |
D | kasan_test.c | 49 static int kasan_test_init(struct kunit *test) in kasan_test_init() 64 static void kasan_test_exit(struct kunit *test) in kasan_test_exit() 126 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right() 155 static void kmalloc_oob_left(struct kunit *test) in kmalloc_oob_left() 168 static void kmalloc_node_oob_right(struct kunit *test) in kmalloc_node_oob_right() 187 static void kmalloc_pagealloc_oob_right(struct kunit *test) in kmalloc_pagealloc_oob_right() 203 static void kmalloc_pagealloc_uaf(struct kunit *test) in kmalloc_pagealloc_uaf() 217 static void kmalloc_pagealloc_invalid_free(struct kunit *test) in kmalloc_pagealloc_invalid_free() 230 static void pagealloc_oob_right(struct kunit *test) in pagealloc_oob_right() 252 static void pagealloc_uaf(struct kunit *test) in pagealloc_uaf() [all …]
|
/linux-6.1.9/lib/kunit/ |
D | kunit-test.c | 19 struct kunit *test = data; in kunit_test_successful_try() 27 struct kunit *test = data; in kunit_test_no_catch() 32 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch() 48 struct kunit *test = data; in kunit_test_unsuccessful_try() 58 struct kunit *test = data; in kunit_test_catch() 64 static void kunit_test_try_catch_unsuccessful_try_does_catch(struct kunit *test) in kunit_test_try_catch_unsuccessful_try_does_catch() 78 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init() 111 struct kunit test; 133 static void kunit_resource_test_init_resources(struct kunit *test) in kunit_resource_test_init_resources() 142 static void kunit_resource_test_alloc_resource(struct kunit *test) in kunit_resource_test_alloc_resource() [all …]
|
D | Makefile | 1 obj-$(CONFIG_KUNIT) += kunit.o 3 kunit-objs += test.o \ 11 kunit-objs += debugfs.o 14 obj-$(CONFIG_KUNIT_TEST) += kunit-test.o 21 obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o
|
D | executor_test.c | 11 static void kfree_at_end(struct kunit *test, const void *to_free); 12 static struct kunit_suite *alloc_fake_suite(struct kunit *test, 16 static void dummy_test(struct kunit *test) {} in dummy_test() 25 static void parse_filter_test(struct kunit *test) in parse_filter_test() 42 static void filter_suites_test(struct kunit *test) in filter_suites_test() 66 static void filter_suites_test_glob_test(struct kunit *test) in filter_suites_test_glob_test() 93 static void filter_suites_to_empty_test(struct kunit *test) in filter_suites_to_empty_test() 136 static void kfree_at_end(struct kunit *test, const void *to_free) in kfree_at_end() 145 static struct kunit_suite *alloc_fake_suite(struct kunit *test, in alloc_fake_suite()
|
D | test.c | 97 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats() 166 struct kunit *test = is_test ? test_or_suite : NULL; in kunit_print_ok_not_ok() 236 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream() 259 static void kunit_fail(struct kunit *test, const struct kunit_loc *loc, in kunit_fail() 284 static void __noreturn kunit_abort(struct kunit *test) in kunit_abort() 297 void kunit_do_failed_assertion(struct kunit *test, in kunit_do_failed_assertion() 320 void kunit_init_test(struct kunit *test, const char *name, char *log) in kunit_init_test() 336 static void kunit_run_case_internal(struct kunit *test, in kunit_run_case_internal() 354 static void kunit_case_internal_cleanup(struct kunit *test) in kunit_case_internal_cleanup() 363 static void kunit_run_case_cleanup(struct kunit *test, in kunit_run_case_cleanup() [all …]
|
D | kunit-example-test.c | 21 static void example_simple_test(struct kunit *test) in example_simple_test() 36 static int example_test_init(struct kunit *test) in example_test_init() 57 static void example_skip_test(struct kunit *test) in example_skip_test() 72 static void example_mark_skipped_test(struct kunit *test) in example_mark_skipped_test() 87 static void example_all_expect_macros_test(struct kunit *test) in example_all_expect_macros_test()
|
D | Kconfig | 14 Documentation/dev-tools/kunit/. 19 bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" if !KUNIT_ALL_TESTS 22 Enable debugfs representation for kunit. Currently this consists 23 of /sys/kernel/debug/kunit/<test_suite>/results files for each 44 itself, lib/kunit/example-test.c, for more information. This option 58 to the KUnit documentation in Documentation/dev-tools/kunit/. 63 bool "Default value of kunit.enable" 66 Sets the default value of kunit.enable. If set to N then KUnit 67 tests will not execute unless kunit.enable=1 is passed to the
|
/linux-6.1.9/lib/ |
D | list-test.c | 17 static void list_test_list_init(struct kunit *test) in list_test_list_init() 46 static void list_test_list_add(struct kunit *test) in list_test_list_add() 60 static void list_test_list_add_tail(struct kunit *test) in list_test_list_add_tail() 74 static void list_test_list_del(struct kunit *test) in list_test_list_del() 90 static void list_test_list_replace(struct kunit *test) in list_test_list_replace() 106 static void list_test_list_replace_init(struct kunit *test) in list_test_list_replace_init() 125 static void list_test_list_swap(struct kunit *test) in list_test_list_swap() 147 static void list_test_list_del_init(struct kunit *test) in list_test_list_del_init() 164 static void list_test_list_del_init_careful(struct kunit *test) in list_test_list_del_init_careful() 184 static void list_test_list_move(struct kunit *test) in list_test_list_move() [all …]
|
/linux-6.1.9/mm/kmsan/ |
D | kmsan_test.c | 154 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() 193 static void test_uninit_stack_var(struct kunit *test) in test_uninit_stack_var() 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() 263 static void test_uninit_multiple_params(struct kunit *test) in test_uninit_multiple_params() 287 static void test_uninit_kmsan_check_memory(struct kunit *test) in test_uninit_kmsan_check_memory() 305 static void test_init_kmsan_vmap_vunmap(struct kunit *test) in test_init_kmsan_vmap_vunmap() 336 static void test_init_vmalloc(struct kunit *test) in test_init_vmalloc() [all …]
|
/linux-6.1.9/security/apparmor/ |
D | policy_unpack_test.c | 52 struct kunit *test, size_t buf_size) in build_aa_ext_struct() 109 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init() 124 static void policy_unpack_test_inbounds_when_inbounds(struct kunit *test) in policy_unpack_test_inbounds_when_inbounds() 133 static void policy_unpack_test_inbounds_when_out_of_bounds(struct kunit *test) in policy_unpack_test_inbounds_when_out_of_bounds() 140 static void policy_unpack_test_unpack_array_with_null_name(struct kunit *test) in policy_unpack_test_unpack_array_with_null_name() 154 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name() 169 static void policy_unpack_test_unpack_array_out_of_bounds(struct kunit *test) in policy_unpack_test_unpack_array_out_of_bounds() 185 static void policy_unpack_test_unpack_blob_with_null_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_null_name() 199 static void policy_unpack_test_unpack_blob_with_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_name() 213 static void policy_unpack_test_unpack_blob_out_of_bounds(struct kunit *test) in policy_unpack_test_unpack_blob_out_of_bounds() [all …]
|
/linux-6.1.9/drivers/clk/ |
D | clk-gate_test.c | 11 static void clk_gate_register_test_dev(struct kunit *test) in clk_gate_register_test_dev() 29 static void clk_gate_register_test_parent_names(struct kunit *test) in clk_gate_register_test_parent_names() 47 static void clk_gate_register_test_parent_data(struct kunit *test) in clk_gate_register_test_parent_data() 67 static void clk_gate_register_test_parent_data_legacy(struct kunit *test) in clk_gate_register_test_parent_data_legacy() 87 static void clk_gate_register_test_parent_hw(struct kunit *test) in clk_gate_register_test_parent_hw() 105 static void clk_gate_register_test_hiword_invalid(struct kunit *test) in clk_gate_register_test_hiword_invalid() 137 static struct clk_gate_test_context *clk_gate_test_alloc_ctx(struct kunit *test) in clk_gate_test_alloc_ctx() 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() [all …]
|
D | clk_test.c | 144 static int clk_test_init_with_ops(struct kunit *test, const struct clk_ops *ops) in clk_test_init_with_ops() 167 static int clk_test_init(struct kunit *test) in clk_test_init() 172 static int clk_maximize_test_init(struct kunit *test) in clk_maximize_test_init() 177 static int clk_minimize_test_init(struct kunit *test) in clk_minimize_test_init() 182 static void clk_test_exit(struct kunit *test) in clk_test_exit() 192 static void clk_test_get_rate(struct kunit *test) in clk_test_get_rate() 213 static void clk_test_set_get_rate(struct kunit *test) in clk_test_set_get_rate() 238 static void clk_test_set_set_get_rate(struct kunit *test) in clk_test_set_set_get_rate() 264 static void clk_test_round_set_get_rate(struct kunit *test) in clk_test_round_set_get_rate() 306 static int clk_uncached_test_init(struct kunit *test) in clk_uncached_test_init() [all …]
|
/linux-6.1.9/arch/s390/lib/ |
D | test_kprobes.c | 11 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()
|
/linux-6.1.9/kernel/events/ |
D | hw_breakpoint_test.c | 65 static void fill_one_bp_slot(struct kunit *test, int *id, int cpu, struct task_struct *tsk) in fill_one_bp_slot() 80 static bool fill_bp_slots(struct kunit *test, int *id, int cpu, struct task_struct *tsk, int skip) in fill_bp_slots() 93 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() [all …]
|
/linux-6.1.9/tools/testing/kunit/ |
D | kunit_tool_test.py | 25 import kunit 545 kunit.main(['config', '--build_dir=.kunit']) 550 kunit.main(['build']) 552 …self.linux_source_mock.build_kernel.assert_called_once_with(kunit.get_default_jobs(), '.kunit', No… 556 kunit.main(['exec']) 564 kunit.main(['run']) 574 kunit.main(['exec']) 580 kunit.main(['run']) 589 kunit.main(['run']) 597 kunit.main(['exec', '--raw_output']) [all …]
|
/linux-6.1.9/drivers/gpu/drm/tests/ |
D | drm_cmdline_parser_test.c | 14 static void drm_test_cmdline_force_e_only(struct kunit *test) in drm_test_cmdline_force_e_only() 32 static void drm_test_cmdline_force_D_only_not_digital(struct kunit *test) in drm_test_cmdline_force_D_only_not_digital() 54 static void drm_test_cmdline_force_D_only_hdmi(struct kunit *test) in drm_test_cmdline_force_D_only_hdmi() 76 static void drm_test_cmdline_force_D_only_dvi(struct kunit *test) in drm_test_cmdline_force_D_only_dvi() 94 static void drm_test_cmdline_force_d_only(struct kunit *test) in drm_test_cmdline_force_d_only() 112 static void drm_test_cmdline_res(struct kunit *test) in drm_test_cmdline_res() 134 static void drm_test_cmdline_res_vesa(struct kunit *test) in drm_test_cmdline_res_vesa() 156 static void drm_test_cmdline_res_vesa_rblank(struct kunit *test) in drm_test_cmdline_res_vesa_rblank() 178 static void drm_test_cmdline_res_rblank(struct kunit *test) in drm_test_cmdline_res_rblank() 200 static void drm_test_cmdline_res_bpp(struct kunit *test) in drm_test_cmdline_res_bpp() [all …]
|
D | drm_format_test.c | 12 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() 88 static void drm_test_format_block_height_two_plane(struct kunit *test) in drm_test_format_block_height_two_plane() 100 static void drm_test_format_block_height_three_plane(struct kunit *test) in drm_test_format_block_height_three_plane() 113 static void drm_test_format_block_height_tiled(struct kunit *test) in drm_test_format_block_height_tiled() [all …]
|
D | drm_damage_helper_test.c | 26 static int drm_damage_helper_init(struct kunit *test) in drm_damage_helper_init() 95 static void check_damage_clip(struct kunit *test, struct drm_rect *r, in check_damage_clip() 119 static void drm_test_damage_iter_no_damage(struct kunit *test) in drm_test_damage_iter_no_damage() 137 static void drm_test_damage_iter_no_damage_fractional_src(struct kunit *test) in drm_test_damage_iter_no_damage_fractional_src() 158 static void drm_test_damage_iter_no_damage_src_moved(struct kunit *test) in drm_test_damage_iter_no_damage_src_moved() 177 static void drm_test_damage_iter_no_damage_fractional_src_moved(struct kunit *test) in drm_test_damage_iter_no_damage_fractional_src_moved() 197 static void drm_test_damage_iter_no_damage_not_visible(struct kunit *test) in drm_test_damage_iter_no_damage_not_visible() 215 static void drm_test_damage_iter_no_damage_no_crtc(struct kunit *test) in drm_test_damage_iter_no_damage_no_crtc() 233 static void drm_test_damage_iter_no_damage_no_fb(struct kunit *test) in drm_test_damage_iter_no_damage_no_fb() 251 static void drm_test_damage_iter_simple_damage(struct kunit *test) in drm_test_damage_iter_simple_damage() [all …]
|
/linux-6.1.9/net/mptcp/ |
D | token_test.c | 6 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() 63 static void mptcp_token_test_msk_basic(struct kunit *test) in mptcp_token_test_msk_basic() 86 static void mptcp_token_test_accept(struct kunit *test) in mptcp_token_test_accept() 105 static void mptcp_token_test_destroyed(struct kunit *test) in mptcp_token_test_destroyed()
|