aboutsummaryrefslogtreecommitdiffstats
path: root/include/kunit
AgeCommit message (Expand)AuthorFilesLines
2024-02-28kunit: Annotate _MSG assertion variants with gnu printf specifiersDavid Gow1-6/+6
2024-01-11Merge tag 'net-next-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds2-0/+75
2024-01-03kunit: Protect string comparisons against NULLRichard Fitzgerald1-1/+1
2024-01-03kunit: Allow passing function pointer to kunit_activate_static_stub()Richard Fitzgerald1-1/+1
2024-01-03kunit: add a convenience allocation wrapper for SKBsBenjamin Berg1-0/+56
2024-01-03kunit: add parameter generation macro using description from arrayBenjamin Berg1-0/+19
2023-12-18kunit: Add APIs for managing devicesdavidgow@google.com1-0/+80
2023-12-18kunit: add is_init test attributeRae Moar1-0/+1
2023-12-18kunit: add KUNIT_INIT_TABLE to init linker sectionRae Moar1-11/+19
2023-12-18kunit: Add a macro to wrap a deferred action functionDavid Gow1-0/+21
2023-09-18kunit: Use string_stream for test logRichard Fitzgerald1-8/+6
2023-08-29Merge tag 'mm-nonmm-stable-2023-08-28-22-48' of git://git.kernel.org/pub/scm/...Linus Torvalds1-0/+1
2023-08-18kernel.h: split out COUNT_ARGS() and CONCATENATE() to args.hAndy Shevchenko1-0/+1
2023-08-13kunit: replace KUNIT_TRIGGER_STATIC_STUB maro with KUNIT_STATIC_STUB_REDIRECTKemeng Shi1-3/+3
2023-08-08kunit: Allow kunit test modules to use test filteringJanusz Krzysztofik1-0/+11
2023-08-08kunit: Make 'list' action available to kunit test modulesJanusz Krzysztofik1-0/+2
2023-08-08kunit: Report the count of test suites in a moduleJanusz Krzysztofik1-0/+8
2023-07-26kunit: Add ability to filter attributesRae Moar1-0/+31
2023-07-26kunit: Add module attributeRae Moar1-5/+8
2023-07-26kunit: Add speed attributeRae Moar1-1/+31
2023-07-26kunit: Add test attributes API structureRae Moar2-0/+52
2023-07-18kunit: test-bug.h: include `stddef.h` for `NULL`Miguel Ojeda1-0/+2
2023-06-01kunit: Move kunit_abort() call out of kunit_do_failed_assertion()David Gow1-8/+12
2023-06-01kunit: Fix obsolete name in documentation headers (func->action)David Gow1-4/+4
2023-05-26kunit: Update kunit_print_ok_not_ok functionMichal Wajdeczko1-0/+1
2023-05-25kunit: kmalloc_array: Use kunit_add_action()David Gow1-2/+8
2023-05-25kunit: Add kunit_add_action() to defer a call until test exitDavid Gow1-0/+92
2023-05-11Documentation: kunit: Warn that exit functions run even if init failsDavid Gow1-0/+3
2023-03-29kunit: increase KUNIT_LOG_SIZE to 2048 bytesHeiko Carstens1-1/+1
2023-03-17kunit: Use gfp in kunit_alloc_resource() kernel-docStephen Boyd1-1/+1
2023-03-10kunit: fix bug of extra newline characters in debugfs logsRae Moar1-1/+1
2023-03-10kunit: fix bug in debugfs logs of parameterized testsRae Moar1-1/+1
2023-02-08kunit: Expose 'static stub' API to redirect functionsDavid Gow2-0/+114
2023-02-08kunit: Add "hooks" to call into KUnit when it's built as a moduleDavid Gow1-18/+10
2023-01-31kunit: fix kunit_test_init_section_suites(...)Brendan Higgins1-1/+0
2023-01-30kunit: fix bug in KUNIT_EXPECT_MEMEQRae Moar1-2/+3
2022-12-12kunit: add macro to allow conditionally exposing static symbols to testsRae Moar1-0/+33
2022-12-12kunit: Use the static key when retrieving the current testDavid Gow1-3/+50
2022-12-12kunit: Provide a static key to check if KUnit is actively running testsDavid Gow1-0/+4
2022-12-12kunit: remove KUNIT_INIT_MEM_ASSERTION macroDaniel Latypov2-13/+6
2022-12-12kunit: eliminate KUNIT_INIT_*_ASSERT_STRUCT macrosDaniel Latypov2-60/+15
2022-10-27kunit: Introduce KUNIT_EXPECT_MEMEQ and KUNIT_EXPECT_MEMNEQ macrosMaĆ­ra Canal2-0/+120
2022-10-07kunit: declare kunit_assert structs as constDaniel Latypov1-1/+1
2022-10-07kunit: rename base KUNIT_ASSERTION macro to _KUNIT_FAILEDDaniel Latypov1-58/+65
2022-10-07kunit: remove format func from struct kunit_assert, get it to 0 bytesDaniel Latypov2-28/+17
2022-10-07kunit: make kunit_kfree() only work on pointers from kunit_malloc() and friendsDaniel Latypov1-16/+0
2022-09-30kunit: no longer call module_info(test, "Y") for kunit modulesJoe Fradley1-1/+0
2022-09-30kunit: add kunit.enable to enable/disable KUnit testJoe Fradley1-0/+2
2022-09-01kunit: fix assert_type for comparison macrosSander Vanheule1-3/+3
2022-07-11kunit: flatten kunit_suite*** to kunit_suite** in .kunit_test_suitesDaniel Latypov1-7/+6
2022-07-11kunit: unify module and builtin suite definitionsJeremy Kerr1-43/+6
2022-07-08kunit: test.h: fix a kernel-doc markupMauro Carvalho Chehab1-1/+1
2022-07-01kunit: Taint the kernel when KUnit tests are runDavid Gow1-1/+2
2022-05-16kunit: take `kunit_assert` as `const`Miguel Ojeda1-1/+1
2022-05-12kunit: Rework kunit_resource allocation policyDavid Gow1-27/+115
2022-05-02kunit: add ability to specify suite-level init and exit functionsDaniel Latypov1-0/+5
2022-04-26kunit: add support for kunit_suites that reference init codeBrendan Higgins1-0/+28
2022-04-04kunit: split resource API from test.h into new resource.hDaniel Latypov2-299/+322
2022-04-04kunit: Introduce _NULL and _NOT_NULL macrosRicardo Ribalda1-0/+84
2022-01-31kunit: cleanup assertion macro internal variablesDaniel Latypov1-5/+5
2022-01-31kunit: factor out str constants from binary assertion structsDaniel Latypov2-34/+35
2022-01-31kunit: consolidate KUNIT_INIT_BINARY_ASSERT_STRUCT macrosDaniel Latypov2-66/+22
2022-01-31kunit: remove va_format from kunit_assertDaniel Latypov1-30/+13
2022-01-25kunit: decrease macro layering for EQ/NE assertsDaniel Latypov1-124/+49
2022-01-25kunit: decrease macro layering for integer assertsDaniel Latypov1-148/+51
2022-01-25kunit: reduce layering in string assertion macrosDaniel Latypov1-48/+20
2022-01-25kunit: drop unused intermediate macros for ptr inequality checksDaniel Latypov1-60/+0
2022-01-25kunit: make KUNIT_EXPECT_EQ() use KUNIT_EXPECT_EQ_MSG(), etc.Daniel Latypov1-142/+26
2022-01-25kunit: drop unused assert_type from kunit_assert and clean up macrosDaniel Latypov2-43/+19
2022-01-25kunit: split out part of kunit_assert into a static constDaniel Latypov2-9/+28
2022-01-25kunit: drop unused kunit* field in kunit_assertDaniel Latypov2-41/+18
2022-01-25kunit: move check if assertion passed into the macrosDaniel Latypov1-10/+11
2022-01-20kunit: replace kernel.h with the necessary inclusionsAndy Shevchenko1-1/+1
2021-11-09include/kunit/test.h: replace kernel.h with the necessary inclusionsAndy Shevchenko1-2/+11
2021-10-06kunit: fix kernel-doc warnings due to mismatched arg namesDaniel Latypov1-3/+3
2021-07-02Merge tag 'linux-kselftest-kunit-fixes-5.14-rc1' of git://git.kernel.org/pub/...Linus Torvalds1-14/+102
2021-06-29kunit: make test->lock irq safeVlastimil Babka1-2/+3
2021-06-25kunit: Support skipped testsDavid Gow1-6/+67
2021-06-25kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpersDaniel Latypov1-4/+32
2021-06-23kunit: Add gnu_printf specifiersDavid Gow1-1/+1
2021-06-23kunit: Assign strings to 'const char*' in STREQ assertionsDavid Gow1-2/+2
2021-06-23kunit: Do not typecheck binary assertionsDavid Gow1-1/+0
2021-04-06kunit: fix -Wunused-function warning for __kunit_fail_current_testDaniel Latypov1-2/+2
2021-04-02kunit: support failure from dynamic analysis toolsUriel Guajardo1-0/+29
2020-12-02kunit: Support for Parameterized TestingArpitha Raghunandan1-0/+51
2020-11-10kunit: fix display of failed expectations for stringsDaniel Latypov1-1/+1
2020-10-26kunit: test: fix remaining kernel-doc warningsMauro Carvalho Chehab1-8/+8
2020-10-25treewide: Convert macro and uses of __section(foo) to __section("foo")Joe Perches1-1/+1
2020-10-18Merge tag 'linux-kselftest-kunit-5.10-rc1' of git://git.kernel.org/pub/scm/li...Linus Torvalds1-22/+54
2020-10-15kunit: test.h: fix a bad kernel-doc markupMauro Carvalho Chehab1-2/+2
2020-10-15kunit: test.h: solve kernel-doc warningsMauro Carvalho Chehab1-3/+7
2020-10-13KUnit: KASAN IntegrationPatricia Alfonso1-0/+5
2020-10-09init: main: add KUnit to kernel initBrendan Higgins1-0/+9
2020-10-09kunit: test: create a single centralized executor for all testsAlan Maguire1-22/+45
2020-06-26kunit: add support for named resourcesAlan Maguire1-0/+54
2020-06-26kunit: generalize kunit_resource API beyond allocated resourcesAlan Maguire1-30/+126
2020-05-22Documentation: test.h - fix warningsLothar Rubusch1-6/+6
2020-03-26kunit: subtests should be indented 4 spaces according to TAPAlan Maguire1-1/+10
2020-03-26kunit: add debugfs /sys/kernel/debug/kunit/<suite>/results displayAlan Maguire1-8/+46
2020-01-09kunit: allow kunit tests to be loaded as a moduleAlan Maguire1-10/+27
2020-01-09kunit: hide unexported try-catch interface in try-catch-impl.hAlan Maguire1-10/+0
2020-01-09kunit: move string-stream.h to lib/kunitAlan Maguire2-52/+2
2019-09-30kunit: fix failure to build without printkBrendan Higgins1-3/+2
2019-09-30kunit: test: add the concept of assertionsBrendan Higgins1-2/+280
2019-09-30kunit: test: add support for test abortBrendan Higgins2-0/+77
2019-09-30kunit: test: add the concept of expectationsBrendan Higgins1-0/+836
2019-09-30kunit: test: add assertion printing libraryBrendan Higgins1-0/+356
2019-09-30kunit: test: add string_stream a std::stream like string builderBrendan Higgins1-0/+51
2019-09-30kunit: test: add test resource management APIBrendan Higgins1-0/+187
2019-09-30kunit: test: add KUnit test runner coreBrendan Higgins1-0/+188