€•ˆjŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ'/translations/zh_CN/dev-tools/kunit/faq”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/zh_TW/dev-tools/kunit/faq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/it_IT/dev-tools/kunit/faq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/ja_JP/dev-tools/kunit/faq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/ko_KR/dev-tools/kunit/faq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/pt_BR/dev-tools/kunit/faq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/sp_SP/dev-tools/kunit/faq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒA/var/lib/git/docbuild/linux/Documentation/dev-tools/kunit/faq.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒFrequently Asked Questions”h]”hŒFrequently Asked Questions”…””}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒ:How is this different from Autotest, kselftest, and so on?”h]”hŒ:How is this different from Autotest, kselftest, and so on?”…””}”(hhàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÝh²hh³hÇh´KubhŒ paragraph”“”)”}”(hŒQKUnit is a unit testing framework. Autotest, kselftest (and some others) are not.”h]”hŒQKUnit is a unit testing framework. Autotest, kselftest (and some others) are not.”…””}”(hhðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K hhÝh²hubhï)”}”(hX©A `unit test `_ is supposed to test a single unit of code in isolation and hence the name *unit test*. A unit test should be the finest granularity of testing and should allow all possible code paths to be tested in the code under test. This is only possible if the code under test is small and does not have any external dependencies outside of the test's control like hardware.”h]”(hŒA ”…””}”(hhþh²hh³Nh´NubhŒ reference”“”)”}”(hŒ;`unit test `_”h]”hŒ unit test”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œ unit test”Œrefuri”Œ,https://martinfowler.com/bliki/UnitTest.html”uh1jhhþubhŒtarget”“”)”}”(hŒ/ ”h]”h}”(h]”Œ unit-test”ah ]”h"]”Œ unit test”ah$]”h&]”Œrefuri”juh1jŒ referenced”KhhþubhŒK is supposed to test a single unit of code in isolation and hence the name ”…””}”(hhþh²hh³Nh´NubhŒemphasis”“”)”}”(hŒ *unit test*”h]”hŒ unit test”…””}”(hj0h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j.hhþubhX. A unit test should be the finest granularity of testing and should allow all possible code paths to be tested in the code under test. This is only possible if the code under test is small and does not have any external dependencies outside of the test’s control like hardware.”…””}”(hhþh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K hhÝh²hubhï)”}”(hXyThere are no testing frameworks currently available for the kernel that do not require installing the kernel on a test machine or in a virtual machine. All testing frameworks require tests to be written in userspace and run on the kernel under test. This is true for Autotest, kselftest, and some others, disqualifying any of them from being considered unit testing frameworks.”h]”hXyThere are no testing frameworks currently available for the kernel that do not require installing the kernel on a test machine or in a virtual machine. All testing frameworks require tests to be written in userspace and run on the kernel under test. This is true for Autotest, kselftest, and some others, disqualifying any of them from being considered unit testing frameworks.”…””}”(hjHh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KhhÝh²hubeh}”(h]”Œ7how-is-this-different-from-autotest-kselftest-and-so-on”ah ]”h"]”Œ:how is this different from autotest, kselftest, and so on?”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒ;Does KUnit support running on architectures other than UML?”h]”hŒ;Does KUnit support running on architectures other than UML?”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj^h²hh³hÇh´Kubhï)”}”(hŒ Yes, mostly.”h]”hŒ Yes, mostly.”…””}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Khj^h²hubhï)”}”(hX—For the most part, the KUnit core framework (what we use to write the tests) can compile to any architecture. It compiles like just another part of the kernel and runs when the kernel boots, or when built as a module, when the module is loaded. However, there is infrastructure, like the KUnit Wrapper (``tools/testing/kunit/kunit.py``) that might not support some architectures (see :ref:`kunit-on-qemu`).”h]”(hX0For the most part, the KUnit core framework (what we use to write the tests) can compile to any architecture. It compiles like just another part of the kernel and runs when the kernel boots, or when built as a module, when the module is loaded. However, there is infrastructure, like the KUnit Wrapper (”…””}”(hj}h²hh³Nh´NubhŒliteral”“”)”}”(hŒ ``tools/testing/kunit/kunit.py``”h]”hŒtools/testing/kunit/kunit.py”…””}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj}ubhŒ1) that might not support some architectures (see ”…””}”(hj}h²hh³Nh´Nubh)”}”(hŒ:ref:`kunit-on-qemu`”h]”hŒinline”“”)”}”(hj›h]”hŒ kunit-on-qemu”…””}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj™ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œdev-tools/kunit/faq”Œ refdomain”jªŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆŒ reftarget”Œ kunit-on-qemu”uh1hh³hÇh´Khj}ubhŒ).”…””}”(hj}h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Khj^h²hubhï)”}”(hŒpIn short, yes, you can run KUnit on other architectures, but it might require more work than using KUnit on UML.”h]”hŒpIn short, yes, you can run KUnit on other architectures, but it might require more work than using KUnit on UML.”…””}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K%hj^h²hubhï)”}”(hŒ2For more information, see :ref:`kunit-on-non-uml`.”h]”(hŒFor more information, see ”…””}”(hjÖh²hh³Nh´Nubh)”}”(hŒ:ref:`kunit-on-non-uml`”h]”jž)”}”(hjàh]”hŒkunit-on-non-uml”…””}”(hjâh²hh³Nh´Nubah}”(h]”h ]”(j©Œstd”Œstd-ref”eh"]”h$]”h&]”uh1jhjÞubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j¶Œ refdomain”jìŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj¼Œkunit-on-non-uml”uh1hh³hÇh´K(hjÖubhŒ.”…””}”(hjÖh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K(hj^h²hubj)”}”(hŒ.. _kinds-of-tests:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œkinds-of-tests”uh1jh´K*hj^h²hh³hÇubeh}”(h]”Œ:does-kunit-support-running-on-architectures-other-than-uml”ah ]”h"]”Œ;does kunit support running on architectures other than uml?”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒDWhat is the difference between a unit test and other kinds of tests?”h]”hŒDWhat is the difference between a unit test and other kinds of tests?”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´K-ubhï)”}”(hŒlMost existing tests for the Linux kernel would be categorized as an integration test, or an end-to-end test.”h]”hŒlMost existing tests for the Linux kernel would be categorized as an integration test, or an end-to-end test.”…””}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K.hjh²hubhŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hX\A unit test is supposed to test a single unit of code in isolation. A unit test should be the finest granularity of testing and, as such, allows all possible code paths to be tested in the code under test. This is only possible if the code under test is small and does not have any external dependencies outside of the test's control like hardware.”h]”hï)”}”(hX\A unit test is supposed to test a single unit of code in isolation. A unit test should be the finest granularity of testing and, as such, allows all possible code paths to be tested in the code under test. This is only possible if the code under test is small and does not have any external dependencies outside of the test's control like hardware.”h]”hX^A unit test is supposed to test a single unit of code in isolation. A unit test should be the finest granularity of testing and, as such, allows all possible code paths to be tested in the code under test. This is only possible if the code under test is small and does not have any external dependencies outside of the test’s control like hardware.”…””}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K1hjBubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hj=h²hh³hÇh´NubjA)”}”(hXÒAn integration test tests the interaction between a minimal set of components, usually just two or three. For example, someone might write an integration test to test the interaction between a driver and a piece of hardware, or to test the interaction between the userspace libraries the kernel provides and the kernel itself. However, one of these tests would probably not test the entire kernel along with hardware interactions and interactions with the userspace.”h]”hï)”}”(hXÒAn integration test tests the interaction between a minimal set of components, usually just two or three. For example, someone might write an integration test to test the interaction between a driver and a piece of hardware, or to test the interaction between the userspace libraries the kernel provides and the kernel itself. However, one of these tests would probably not test the entire kernel along with hardware interactions and interactions with the userspace.”h]”hXÒAn integration test tests the interaction between a minimal set of components, usually just two or three. For example, someone might write an integration test to test the interaction between a driver and a piece of hardware, or to test the interaction between the userspace libraries the kernel provides and the kernel itself. However, one of these tests would probably not test the entire kernel along with hardware interactions and interactions with the userspace.”…””}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K6hjZubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hj=h²hh³hÇh´NubjA)”}”(hX…An end-to-end test usually tests the entire system from the perspective of the code under test. For example, someone might write an end-to-end test for the kernel by installing a production configuration of the kernel on production hardware with a production userspace and then trying to exercise some behavior that depends on interactions between the hardware, the kernel, and userspace. ”h]”hï)”}”(hX„An end-to-end test usually tests the entire system from the perspective of the code under test. For example, someone might write an end-to-end test for the kernel by installing a production configuration of the kernel on production hardware with a production userspace and then trying to exercise some behavior that depends on interactions between the hardware, the kernel, and userspace.”h]”hX„An end-to-end test usually tests the entire system from the perspective of the code under test. For example, someone might write an end-to-end test for the kernel by installing a production configuration of the kernel on production hardware with a production userspace and then trying to exercise some behavior that depends on interactions between the hardware, the kernel, and userspace.”…””}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K=hjrubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hj=h²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1j;h³hÇh´K1hjh²hubeh}”(h]”(ŒCwhat-is-the-difference-between-a-unit-test-and-other-kinds-of-tests”jeh ]”h"]”(ŒDwhat is the difference between a unit test and other kinds of tests?”Œkinds-of-tests”eh$]”h&]”uh1hÈhhÊh²hh³hÇh´K-Œexpect_referenced_by_name”}”j˜jsŒexpect_referenced_by_id”}”jjsubhÉ)”}”(hhh]”(hÎ)”}”(hŒ'KUnit is not working, what should I do?”h]”hŒ'KUnit is not working, what should I do?”…””}”(hj¢h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjŸh²hh³hÇh´KDubhï)”}”(hŒ]Unfortunately, there are a number of things which can break, but here are some things to try.”h]”hŒ]Unfortunately, there are a number of things which can break, but here are some things to try.”…””}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KFhjŸh²hubhŒenumerated_list”“”)”}”(hhh]”(jA)”}”(hŒšRun ``./tools/testing/kunit/kunit.py run`` with the ``--raw_output`` parameter. This might show details or error messages hidden by the kunit_tool parser.”h]”hï)”}”(hŒšRun ``./tools/testing/kunit/kunit.py run`` with the ``--raw_output`` parameter. This might show details or error messages hidden by the kunit_tool parser.”h]”(hŒRun ”…””}”(hjÇh²hh³Nh´Nubj†)”}”(hŒ&``./tools/testing/kunit/kunit.py run``”h]”hŒ"./tools/testing/kunit/kunit.py run”…””}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjÇubhŒ with the ”…””}”(hjÇh²hh³Nh´Nubj†)”}”(hŒ``--raw_output``”h]”hŒ --raw_output”…””}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjÇubhŒV parameter. This might show details or error messages hidden by the kunit_tool parser.”…””}”(hjÇh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KIhjÃubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hjÀh²hh³hÇh´NubjA)”}”(hX(Instead of running ``kunit.py run``, try running ``kunit.py config``, ``kunit.py build``, and ``kunit.py exec`` independently. This can help track down where an issue is occurring. (If you think the parser is at fault, you can run it manually against ``stdin`` or a file with ``kunit.py parse``.)”h]”hï)”}”(hX(Instead of running ``kunit.py run``, try running ``kunit.py config``, ``kunit.py build``, and ``kunit.py exec`` independently. This can help track down where an issue is occurring. (If you think the parser is at fault, you can run it manually against ``stdin`` or a file with ``kunit.py parse``.)”h]”(hŒInstead of running ”…””}”(hjh²hh³Nh´Nubj†)”}”(hŒ``kunit.py run``”h]”hŒ kunit.py run”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjubhŒ, try running ”…””}”(hjh²hh³Nh´Nubj†)”}”(hŒ``kunit.py config``”h]”hŒkunit.py config”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjubhŒ, ”…””}”(hjh²hh³Nh´Nubj†)”}”(hŒ``kunit.py build``”h]”hŒkunit.py build”…””}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjubhŒ, and ”…””}”(hjh²hh³Nh´Nubj†)”}”(hŒ``kunit.py exec``”h]”hŒ kunit.py exec”…””}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjubhŒŒ independently. This can help track down where an issue is occurring. (If you think the parser is at fault, you can run it manually against ”…””}”(hjh²hh³Nh´Nubj†)”}”(hŒ ``stdin``”h]”hŒstdin”…””}”(hjSh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjubhŒ or a file with ”…””}”(hjh²hh³Nh´Nubj†)”}”(hŒ``kunit.py parse``”h]”hŒkunit.py parse”…””}”(hjeh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjubhŒ.)”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KLhjÿubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hjÀh²hh³hÇh´NubjA)”}”(hXøRunning the UML kernel directly can often reveal issues or error messages, ``kunit_tool`` ignores. This should be as simple as running ``./vmlinux`` after building the UML kernel (for example, by using ``kunit.py build``). Note that UML has some unusual requirements (such as the host having a tmpfs filesystem mounted), and has had issues in the past when built statically and the host has KASLR enabled. (On older host kernels, you may need to run ``setarch `uname -m` -R ./vmlinux`` to disable KASLR.)”h]”hï)”}”(hXøRunning the UML kernel directly can often reveal issues or error messages, ``kunit_tool`` ignores. This should be as simple as running ``./vmlinux`` after building the UML kernel (for example, by using ``kunit.py build``). Note that UML has some unusual requirements (such as the host having a tmpfs filesystem mounted), and has had issues in the past when built statically and the host has KASLR enabled. (On older host kernels, you may need to run ``setarch `uname -m` -R ./vmlinux`` to disable KASLR.)”h]”(hŒKRunning the UML kernel directly can often reveal issues or error messages, ”…””}”(hj‡h²hh³Nh´Nubj†)”}”(hŒ``kunit_tool``”h]”hŒ kunit_tool”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj‡ubhŒ. ignores. This should be as simple as running ”…””}”(hj‡h²hh³Nh´Nubj†)”}”(hŒ ``./vmlinux``”h]”hŒ ./vmlinux”…””}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj‡ubhŒ6 after building the UML kernel (for example, by using ”…””}”(hj‡h²hh³Nh´Nubj†)”}”(hŒ``kunit.py build``”h]”hŒkunit.py build”…””}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj‡ubhŒæ). Note that UML has some unusual requirements (such as the host having a tmpfs filesystem mounted), and has had issues in the past when built statically and the host has KASLR enabled. (On older host kernels, you may need to run ”…””}”(hj‡h²hh³Nh´Nubj†)”}”(hŒ#``setarch `uname -m` -R ./vmlinux``”h]”hŒsetarch `uname -m` -R ./vmlinux”…””}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj‡ubhŒ to disable KASLR.)”…””}”(hj‡h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KPhjƒubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hjÀh²hh³hÇh´NubjA)”}”(hX}Make sure the kernel .config has ``CONFIG_KUNIT=y`` and at least one test (e.g. ``CONFIG_KUNIT_EXAMPLE_TEST=y``). kunit_tool will keep its .config around, so you can see what config was used after running ``kunit.py run``. It also preserves any config changes you might make, so you can enable/disable things with ``make ARCH=um menuconfig`` or similar, and then re-run kunit_tool.”h]”hï)”}”(hX}Make sure the kernel .config has ``CONFIG_KUNIT=y`` and at least one test (e.g. ``CONFIG_KUNIT_EXAMPLE_TEST=y``). kunit_tool will keep its .config around, so you can see what config was used after running ``kunit.py run``. It also preserves any config changes you might make, so you can enable/disable things with ``make ARCH=um menuconfig`` or similar, and then re-run kunit_tool.”h]”(hŒ!Make sure the kernel .config has ”…””}”(hjçh²hh³Nh´Nubj†)”}”(hŒ``CONFIG_KUNIT=y``”h]”hŒCONFIG_KUNIT=y”…””}”(hjïh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjçubhŒ and at least one test (e.g. ”…””}”(hjçh²hh³Nh´Nubj†)”}”(hŒ``CONFIG_KUNIT_EXAMPLE_TEST=y``”h]”hŒCONFIG_KUNIT_EXAMPLE_TEST=y”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjçubhŒ^). kunit_tool will keep its .config around, so you can see what config was used after running ”…””}”(hjçh²hh³Nh´Nubj†)”}”(hŒ``kunit.py run``”h]”hŒ kunit.py run”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjçubhŒ]. It also preserves any config changes you might make, so you can enable/disable things with ”…””}”(hjçh²hh³Nh´Nubj†)”}”(hŒ``make ARCH=um menuconfig``”h]”hŒmake ARCH=um menuconfig”…””}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjçubhŒ( or similar, and then re-run kunit_tool.”…””}”(hjçh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KWhjãubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hjÀh²hh³hÇh´NubjA)”}”(hŒ˜Try to run ``make ARCH=um defconfig`` before running ``kunit.py run``. This may help clean up any residual config items which could be causing problems.”h]”hï)”}”(hŒ˜Try to run ``make ARCH=um defconfig`` before running ``kunit.py run``. This may help clean up any residual config items which could be causing problems.”h]”(hŒ Try to run ”…””}”(hjGh²hh³Nh´Nubj†)”}”(hŒ``make ARCH=um defconfig``”h]”hŒmake ARCH=um defconfig”…””}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjGubhŒ before running ”…””}”(hjGh²hh³Nh´Nubj†)”}”(hŒ``kunit.py run``”h]”hŒ kunit.py run”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjGubhŒS. This may help clean up any residual config items which could be causing problems.”…””}”(hjGh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K]hjCubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hjÀh²hh³hÇh´NubjA)”}”(hXFinally, try running KUnit outside UML. KUnit and KUnit tests can be built into any kernel, or can be built as a module and loaded at runtime. Doing so should allow you to determine if UML is causing the issue you're seeing. When tests are built-in, they will execute when the kernel boots, and modules will automatically execute associated tests when loaded. Test results can be collected from ``/sys/kernel/debug/kunit//results``, and can be parsed with ``kunit.py parse``. For more details, see :ref:`kunit-on-qemu`. ”h]”hï)”}”(hXFinally, try running KUnit outside UML. KUnit and KUnit tests can be built into any kernel, or can be built as a module and loaded at runtime. Doing so should allow you to determine if UML is causing the issue you're seeing. When tests are built-in, they will execute when the kernel boots, and modules will automatically execute associated tests when loaded. Test results can be collected from ``/sys/kernel/debug/kunit//results``, and can be parsed with ``kunit.py parse``. For more details, see :ref:`kunit-on-qemu`.”h]”(hXFinally, try running KUnit outside UML. KUnit and KUnit tests can be built into any kernel, or can be built as a module and loaded at runtime. Doing so should allow you to determine if UML is causing the issue you’re seeing. When tests are built-in, they will execute when the kernel boots, and modules will automatically execute associated tests when loaded. Test results can be collected from ”…””}”(hjƒh²hh³Nh´Nubj†)”}”(hŒ0``/sys/kernel/debug/kunit//results``”h]”hŒ,/sys/kernel/debug/kunit//results”…””}”(hj‹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjƒubhŒ, and can be parsed with ”…””}”(hjƒh²hh³Nh´Nubj†)”}”(hŒ``kunit.py parse``”h]”hŒkunit.py parse”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjƒubhŒ. For more details, see ”…””}”(hjƒh²hh³Nh´Nubh)”}”(hŒ:ref:`kunit-on-qemu`”h]”jž)”}”(hj±h]”hŒ kunit-on-qemu”…””}”(hj³h²hh³Nh´Nubah}”(h]”h ]”(j©Œstd”Œstd-ref”eh"]”h$]”h&]”uh1jhj¯ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j¶Œ refdomain”j½Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆj¼Œ kunit-on-qemu”uh1hh³hÇh´K_hjƒubhŒ.”…””}”(hjƒh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K_hjubah}”(h]”h ]”h"]”h$]”h&]”uh1j@hjÀh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1j¾hjŸh²hh³hÇh´KIubhï)”}”(hŒkIf none of the above tricks help, you are always welcome to email any issues to kunit-dev@googlegroups.com.”h]”(hŒPIf none of the above tricks help, you are always welcome to email any issues to ”…””}”(hjêh²hh³Nh´Nubj)”}”(hŒkunit-dev@googlegroups.com”h]”hŒkunit-dev@googlegroups.com”…””}”(hjòh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œ!mailto:kunit-dev@googlegroups.com”uh1jhjêubhŒ.”…””}”(hjêh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KghjŸh²hubeh}”(h]”Œ%kunit-is-not-working-what-should-i-do”ah ]”h"]”Œ'kunit is not working, what should i do?”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KDubeh}”(h]”Œfrequently-asked-questions”ah ]”h"]”Œfrequently asked questions”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j?Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”j]”jasŒnameids”}”(jjj[jXj%j"jjj˜jj—j”jjuŒ nametypes”}”(j‰j[‰j%ˆj‰j˜ˆj—‰j‰uh}”(jhÊjXhÝj"jjj^jjj”jjjŸuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)”}”(hhh]”hï)”}”(hhh]”hŒ4Hyperlink target "kinds-of-tests" is not referenced.”…””}”hj©sbah}”(h]”h ]”h"]”h$]”h&]”uh1hîhj¦ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÇŒline”K*uh1j¤ubaŒ transformer”NŒ include_log”]”Œ decoration”Nh²hub.