aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kunit
AgeCommit message (Expand)AuthorFilesLines
2024-02-27kunit: test: Log the correct filter string in executor_testDavid Gow1-1/+1
2024-02-27kunit: Setup DMA masks on the kunit deviceMaxime Ripard1-0/+4
2024-02-27kunit: make kunit_bus_type constRicardo B. Marliere1-1/+1
2024-02-27kunit: Mark filter* params as rwLucas De Marchi1-3/+3
2024-02-06kunit: device: Unregister the kunit_bus on shutdownDavid Gow3-0/+19
2024-01-22kunit: run test suites only after module initialization completesMarco Pagani2-3/+15
2024-01-22kunit: device: Fix a NULL vs IS_ERR() check in init()Dan Carpenter1-2/+2
2024-01-22kunit: Fix a NULL vs IS_ERR() bugDan Carpenter1-1/+1
2024-01-03kunit: Fix some comments which were mistakenly kerneldocDavid Gow1-3/+3
2024-01-03kunit: Add example of kunit_activate_static_stub() with pointer-to-functionRichard Fitzgerald1-0/+35
2024-01-03kunit: Fix NULL-dereference in kunit_init_suite() if suite->log is NULLRichard Fitzgerald1-1/+3
2023-12-18kunit: Reset test->priv after each param iterationMichal Wajdeczko1-0/+1
2023-12-18kunit: Add example for using test->privMichal Wajdeczko1-0/+15
2023-12-18kunit: Add APIs for managing devicesdavidgow@google.com5-2/+336
2023-12-18kunit: add ability to run tests after boot using debugfsRae Moar2-0/+78
2023-12-18kunit: add is_init test attributeRae Moar2-1/+65
2023-12-18kunit: add example suite to test init suitesRae Moar1-0/+37
2023-12-18kunit: add KUNIT_INIT_TABLE to init linker sectionRae Moar2-13/+77
2023-12-18kunit: debugfs: Handle errors from alloc_string_stream()Richard Fitzgerald1-5/+25
2023-12-18kunit: debugfs: Fix unchecked dereference in debugfs_print_results()Richard Fitzgerald1-1/+3
2023-12-18kunit: string-stream: Allow ERR_PTR to be passed to string_stream_destroy()Richard Fitzgerald1-1/+1
2023-12-18kunit: string-stream-test: Avoid cast warning when testing gfp_t flagsRichard Fitzgerald1-1/+1
2023-12-18kunit: Add a macro to wrap a deferred action functionDavid Gow2-6/+5
2023-11-14kunit: test: Avoid cast warning when adding kfree() as an actionRichard Fitzgerald1-1/+1
2023-11-14kunit: Reset suite counter right before running testsMichal Wajdeczko1-2/+2
2023-11-14kunit: Warn if tests are slowMaxime Ripard1-0/+38
2023-09-28kunit: test: Fix the possible memory leak in executor_testJinjie Ruan1-14/+22
2023-09-28kunit: Fix possible memory leak in kunit_filter_suites()Jinjie Ruan1-4/+13
2023-09-28kunit: Fix the wrong kfree of copy for kunit_filter_suites()Jinjie Ruan1-1/+1
2023-09-28kunit: Fix missed memory release in kunit_free_suite_set()Jinjie Ruan1-1/+3
2023-09-18kunit: Reset test status on each param iterationMichal Wajdeczko2-4/+7
2023-09-18kunit: string-stream: Test performance of string_streamRichard Fitzgerald1-0/+54
2023-09-18kunit: Use string_stream for test logRichard Fitzgerald3-61/+75
2023-09-18kunit: string-stream: Add tests for freeing resource-managed string_streamRichard Fitzgerald2-5/+145
2023-09-18kunit: string-stream: Decouple string_stream from kunitRichard Fitzgerald4-24/+53
2023-09-18kunit: string-stream: Add kunit_alloc_string_stream()Richard Fitzgerald4-18/+29
2023-09-18kunit: Don't use a managed alloc in is_literal()Richard Fitzgerald1-8/+6
2023-09-18kunit: string-stream-test: Add cases for string_stream newline appendingRichard Fitzgerald1-0/+93
2023-09-18kunit: string-stream: Add option to make all lines end with newlineRichard Fitzgerald2-7/+28
2023-09-18kunit: string-stream: Improve testing of string_streamRichard Fitzgerald1-16/+217
2023-09-18kunit: string-stream: Don't create a fragment for empty stringsRichard Fitzgerald1-2/+8
2023-09-05kunit: Fix possible memory leak in kunit_filter_suites()Jinjie Ruan1-2/+2
2023-09-05kunit: Fix possible null-ptr-deref in kunit_parse_glob_filter()Jinjie Ruan1-4/+19
2023-09-05kunit: Fix the wrong err path and add goto labels in kunit_filter_suites()Jinjie Ruan1-9/+12
2023-09-05kunit: Fix wild-memory-access bug in kunit_free_suite_set()Jinjie Ruan1-1/+2
2023-09-01kunit: test: Make filter strings in executor_test writableDavid Gow1-5/+8
2023-08-21kunit: fix struct kunit_attr headerRae Moar1-0/+2
2023-08-08kunit: Allow kunit test modules to use test filteringJanusz Krzysztofik3-27/+55
2023-08-08kunit: Make 'list' action available to kunit test modulesJanusz Krzysztofik2-14/+32
2023-08-08kunit: Report the count of test suites in a moduleJanusz Krzysztofik3-32/+52
2023-08-04kunit: fix uninitialized variables bug in attributes filteringRae Moar3-31/+29
2023-08-04kunit: fix possible memory leak in kunit_filter_suites()Ruan Jinjie1-5/+12
2023-07-31kunit: fix wild-memory-access bug in kunit_filter_suites()Ruan Jinjie1-1/+2
2023-07-26kunit: add tests for filtering attributesRae Moar1-0/+116
2023-07-26kunit: Add ability to filter attributesRae Moar4-28/+358
2023-07-26kunit: Add module attributeRae Moar1-0/+25
2023-07-26kunit: Add speed attributeRae Moar2-1/+52
2023-07-26kunit: Add test attributes API structureRae Moar4-12/+109
2023-06-28Merge tag 'mm-nonmm-stable-2023-06-24-19-23' of git://git.kernel.org/pub/scm/...Linus Torvalds1-0/+1
2023-06-09kunit: include debugfs header fileArnd Bergmann1-0/+1
2023-06-01kunit: Move kunit_abort() call out of kunit_do_failed_assertion()David Gow1-6/+4
2023-05-26kunit: Update kunit_print_ok_not_ok functionMichal Wajdeczko1-17/+28
2023-05-26kunit: Fix reporting of the skipped parameterized testsMichal Wajdeczko1-2/+4
2023-05-26kunit/test: Add example test showing parameterized testingMichal Wajdeczko1-0/+34
2023-05-25kunit: kmalloc_array: Use kunit_add_action()David Gow1-39/+9
2023-05-25kunit: executor_test: Use kunit_add_action()David Gow1-7/+4
2023-05-25kunit: Add kunit_add_action() to defer a call until test exitDavid Gow2-1/+186
2023-05-11kunit: example: Provide example exit functionsDavid Gow1-0/+22
2023-05-11kunit: Always run cleanup from a test kthreadDavid Gow1-8/+48
2023-04-05kunit: add tests for using current KUnit test fieldRae Moar1-1/+41
2023-03-10kunit: fix bug of extra newline characters in debugfs logsRae Moar2-12/+41
2023-03-10kunit: fix bug in the order of lines in debugfs logsRae Moar2-9/+26
2023-03-10kunit: fix bug in debugfs logs of parameterized testsRae Moar1-6/+12
2023-02-27kunit: Fix 'hooks.o' build by recursing into kunitDavid Gow1-1/+1
2023-02-08kunit: Add printf attribute to fail_current_test_implDavid Gow2-2/+4
2023-02-08kunit: Expose 'static stub' API to redirect functionsDavid Gow4-0/+164
2023-02-08kunit: Add "hooks" to call into KUnit when it's built as a moduleDavid Gow4-8/+58
2023-01-30kunit: fix bug in KUNIT_EXPECT_MEMEQRae Moar1-15/+25
2023-01-20kunit: Export kunit_running()Arnd Bergmann1-0/+1
2022-12-26kunit: alloc_string_stream_fragment error handling bug fixYoungJun.park1-1/+3
2022-12-12Merge tag 'linux-kselftest-kunit-next-6.2-rc1' of git://git.kernel.org/pub/sc...Linus Torvalds6-14/+83
2022-12-12kunit: improve KTAP compliance of KUnit test outputRae Moar3-7/+10
2022-12-12kunit: Provide a static key to check if KUnit is actively running testsDavid Gow1-0/+6
2022-10-27kunit: remove unused structure definitionYoungJun.park1-5/+0
2022-10-27kunit: Add KUnit memory block assertions to the example_all_expect_macros_testMaíra Canal1-0/+7
2022-10-27kunit: Introduce KUNIT_EXPECT_MEMEQ and KUNIT_EXPECT_MEMNEQ macrosMaíra Canal1-0/+56
2022-10-27kunit: log numbers in decimal and hexMark Rutland1-2/+4
2022-10-18kunit: update NULL vs IS_ERR() testsDan Carpenter2-3/+3
2022-10-07kunit: remove format func from struct kunit_assert, get it to 0 bytesDaniel Latypov1-3/+4
2022-10-07kunit: make kunit_kfree(NULL) a no-op to match kfree()Daniel Latypov1-0/+3
2022-10-07kunit: make kunit_kfree() not segfault on invalid inputsDaniel Latypov1-12/+2
2022-10-07kunit: make kunit_kfree() only work on pointers from kunit_malloc() and friendsDaniel Latypov2-2/+15
2022-10-07kunit: drop test pointer in string_stream_fragmentDaniel Latypov2-6/+5
2022-10-07kunit: string-stream: Simplify resource useDavid Gow3-76/+18
2022-09-30kunit: add kunit.enable to enable/disable KUnit testJoe Fradley3-0/+39
2022-07-14kunit: executor: Fix a memory leak on failure in kunit_filter_testsDavid Gow1-1/+3
2022-07-11kunit: flatten kunit_suite*** to kunit_suite** in .kunit_test_suitesDaniel Latypov3-202/+75
2022-07-11kunit: unify module and builtin suite definitionsJeremy Kerr1-1/+51
2022-07-07kunit: use kmemdup in kunit_filter_tests(), take suite as constDaniel Latypov1-4/+2
2022-07-01kunit: Taint the kernel when KUnit tests are runDavid Gow1-0/+4
2022-05-17kunit: fix executor OOM error handling logic on non-UMLDaniel Latypov1-4/+5
2022-05-16kunit: take `kunit_assert` as `const`Miguel Ojeda1-2/+2
2022-05-12kunit: bail out of test filtering logic quicker if OOMDaniel Latypov2-6/+25
2022-05-12kunit: Rework kunit_resource allocation policyDavid Gow1-57/+7
2022-05-02kunit: fix debugfs code to use enum kunit_status, not boolDaniel Latypov1-1/+1
2022-05-02kunit: add ability to specify suite-level init and exit functionsDaniel Latypov2-0/+31
2022-05-02kunit: rename print_subtest_{start,end} for clarity (s/subtest/suite)Daniel Latypov1-4/+4
2022-04-05kunit: Make kunit_remove_resource() idempotentDavid Gow2-2/+41
2022-04-04kunit: split resource API impl from test.c into new resource.cDaniel Latypov3-115/+127
2022-04-04kunit: use NULL macrosRicardo Ribalda2-1/+3
2022-03-23Merge tag 'linux-kselftest-kunit-5.18-rc1' of git://git.kernel.org/pub/scm/li...Linus Torvalds3-57/+100
2022-03-22kunit: make kunit_test_timeout compatible with commentPeng Liu1-1/+1
2022-03-22kunit: fix UAF when run kfence test case test_gfpzeroPeng Liu1-0/+1
2022-01-31kunit: factor out str constants from binary assertion structsDaniel Latypov1-19/+19
2022-01-31kunit: remove va_format from kunit_assertDaniel Latypov2-16/+23
2022-01-25kunit: split out part of kunit_assert into a static constDaniel Latypov2-10/+14
2022-01-25kunit: factor out kunit_base_assert_format() call into kunit_fail()Daniel Latypov2-6/+1
2022-01-25kunit: move check if assertion passed into the macrosDaniel Latypov1-9/+4
2022-01-25kunit: add example test case showing off all the expect macrosDaniel Latypov1-0/+42
2022-01-17Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+2
2021-12-13kunit: Report test parameter results as (K)TAP subtestsDavid Gow1-3/+4
2021-12-13kunit: Don't crash if no parameters are generatedDavid Gow1-8/+10
2021-12-13exit: Rename complete_and_exit to kthread_complete_and_exitEric W. Biederman1-2/+2
2021-10-19kunit: Reset suite count after running testsDavid Gow1-2/+4
2021-10-19kunit: add 'kunit.action' param to allow listing out testsDaniel Latypov1-5/+40
2021-10-19kunit: fix too small allocation when using suite-only kunit.filter_globDaniel Latypov2-1/+2
2021-10-19kunit: tool: allow filtering test cases via globDaniel Latypov2-24/+192
2021-10-19kunit: drop assumption in kunit-log-test about current suiteDaniel Latypov1-6/+8
2021-10-01kunit: fix reference count leak in kfree_at_endXiyu Yang1-2/+2
2021-09-03Merge tag 'kbuild-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-1/+1
2021-08-19isystem: ship and use stdarg.hAlexey Dobriyan1-1/+1
2021-08-13kunit: Print test statistics on failureDavid Gow1-0/+109
2021-07-02Merge tag 'linux-kselftest-kunit-fixes-5.14-rc1' of git://git.kernel.org/pub/...Linus Torvalds7-49/+295
2021-06-29kunit: make test->lock irq safeVlastimil Babka1-7/+11
2021-06-25kunit: add unit test for filtering suites by namesDaniel Latypov2-14/+152
2021-06-25kunit: test: Add example tests which are always skippedDavid Gow1-0/+31
2021-06-25kunit: Support skipped testsDavid Gow3-21/+77
2021-06-25kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpersDaniel Latypov1-10/+12
2021-06-23kunit: Add gnu_printf specifiersDavid Gow1-3/+3
2021-06-11kunit: Add 'kunit_shutdown' optionDavid Gow1-0/+20
2021-06-11kunit: Fix result propagation for parameterised testsDavid Gow1-4/+3
2021-04-02kunit: support failure from dynamic analysis toolsUriel Guajardo1-4/+35
2021-04-02kunit: tool: make --kunitconfig accept dirs, add lib/kunit fragmentDaniel Latypov1-0/+3
2021-04-02kunit: make KUNIT_EXPECT_STREQ() quote values, don't print literalsDaniel Latypov1-6/+24
2021-03-23kunit: Match parenthesis alignment to improve code readabilityLucas Stankus1-11/+20
2021-02-08kunit: add kunit.filter_glob cmdline option to filter suitesDaniel Latypov2-9/+85
2021-02-08kunit: don't show `1 == 1` in failed assertion messagesDaniel Latypov1-6/+33
2020-12-02kunit: Support for Parameterized TestingArpitha Raghunandan1-13/+46
2020-10-18Merge tag 'linux-kselftest-kunit-5.10-rc1' of git://git.kernel.org/pub/scm/li...Linus Torvalds3-13/+46
2020-10-13KUnit: KASAN IntegrationPatricia Alfonso1-5/+8
2020-10-09kunit: test: add test plan to KUnit TAP formatBrendan Higgins2-11/+17
2020-10-09init: main: add KUnit to kernel initBrendan Higgins1-3/+1
2020-10-09kunit: test: create a single centralized executor for all testsAlan Maguire3-2/+31
2020-06-26kunit: add support for named resourcesAlan Maguire2-0/+61
2020-06-26kunit: generalize kunit_resource API beyond allocated resourcesAlan Maguire3-99/+142
2020-06-01kunit: default KUNIT_* fragments to KUNIT_ALL_TESTSAnders Roxell1-3/+6
2020-06-01kunit: Kconfig: enable a KUNIT_ALL_TESTS fragmentAnders Roxell1-0/+14
2020-04-23kunit: Add missing newline in summary messageMarco Elver1-1/+1
2020-03-26kunit: subtests should be indented 4 spaces according to TAPAlan Maguire2-42/+44
2020-03-26kunit: add log testAlan Maguire1-1/+39
2020-03-26kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results displayAlan Maguire6-33/+276
2020-03-25kunit: Always print actual pointer values in assertsDavid Gow1-2/+2
2020-01-09kunit: allow kunit to be loaded as a moduleAlan Maguire3-2/+17
2020-01-09kunit: remove timeout dependence on sysctl_hung_task_timeout_secondsAlan Maguire1-18/+4
2020-01-09kunit: allow kunit tests to be loaded as a moduleAlan Maguire8-9/+34
2020-01-09kunit: hide unexported try-catch interface in try-catch-impl.hAlan Maguire4-12/+32
2020-01-09kunit: move string-stream.h to lib/kunitAlan Maguire5-2/+59
2019-09-30kunit: fix failure to build without printkBrendan Higgins1-51/+6
2019-09-30kunit: test: add tests for KUnit managed resourcesAvinash Kondareddy1-0/+228
2019-09-30kunit: test: add the concept of assertionsBrendan Higgins2-6/+3
2019-09-30kunit: test: add tests for kunit test abortBrendan Higgins2-1/+108
2019-09-30kunit: test: add support for test abortBrendan Higgins3-16/+242
2019-09-30kunit: test: add initial testsBrendan Higgins4-0/+167
2019-09-30kunit: test: add the concept of expectationsBrendan Higgins1-0/+62
2019-09-30kunit: test: add assertion printing libraryBrendan Higgins2-1/+143
2019-09-30kunit: test: add string_stream a std::stream like string builderBrendan Higgins2-1/+219
2019-09-30kunit: test: add test resource management APIBrendan Higgins1-0/+163
2019-09-30kunit: test: add KUnit test runner coreBrendan Higgins3-0/+205