Hi Linus,
Please pull the following KUnit next update for Linux 6.2-rc1.
This KUnit next update for Linux 6.2-rc1 consists of several enhancements,
fixes, clean-ups, documentation updates, improvements to logging and KTAP
compliance of KUnit test output:
- log numbers in decimal and hex
- parse KTAP compliant test output
- allow conditionally exposing static symbols to tests
when KUNIT is enabled
- make static symbols visible during kunit testing
- clean-ups to remove unused structure definition
diff is attached.
Please note that this update touches apparmor, mm, drm areas.
apparmor patch in this update includes changes to static symbols visible
during kunit testing. John Johansen and I are coordinating our pull requests
to handle merge conflicts - John' pull request will include fixes to
merge conflicts found in linux-next.
Last note: patches have been in next for a while and I had to drop a patch
today to avoid merge conflicts - that explains the recent commit status on
a few patches.
thanks,
-- Shuah
----------------------------------------------------------------
The following changes since commit 247f34f7b80357943234f93f247a1ae6b6c3a740:
Linux 6.1-rc2 (2022-10-23 15:27:33 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-kunit-next-6.2-rc1
for you to fetch changes up to 054be257f28ca8eeb8e3620766501b81ceb4b293:
Documentation: dev-tools: Clarify requirements for result description (2022-12-12 14:13:48 -0700)
----------------------------------------------------------------
linux-kselftest-kunit-next-6.2-rc1
This KUnit next update for Linux 6.2-rc1 consists of several enhancements,
fixes, clean-ups, documentation updates, improvements to logging and KTAP
compliance of KUnit test output:
- log numbers in decimal and hex
- parse KTAP compliant test output
- allow conditionally exposing static symbols to tests
when KUNIT is enabled
- make static symbols visible during kunit testing
- clean-ups to remove unused structure definition
----------------------------------------------------------------
Daniel Latypov (13):
kunit: tool: make unit test not print parsed testdata to stdout
kunit: tool: print summary of failed tests if a few failed out of a lot
kunit: tool: make TestCounts a dataclass
kunit: tool: unit tests all check parser errors, standardize formatting a bit
kunit: tool: remove redundant file.close() call in unit test
kunit: eliminate KUNIT_INIT_*_ASSERT_STRUCT macros
Documentation: KUnit: make usage.rst a superset of tips.rst, remove duplication
Documentation: KUnit: reword description of assertions
kunit: remove KUNIT_INIT_MEM_ASSERTION macro
kunit: tool: tweak error message when no KTAP found
kunit: tool: make --json do nothing if --raw_ouput is set
kunit: tool: don't include KTAP headers and the like in the test log
kunit: tool: make parser preserve whitespace when printing test log
David Gow (5):
Documentation: kunit: Remove redundant 'tips.rst' page
kunit: Provide a static key to check if KUnit is actively running tests
kunit: Use the static key when retrieving the current test
mm: slub: test: Use the kunit_get_current_test() function
Documentation: kunit: Fix "How Do I Use This" / "Next Steps" sections
Mark Brown (1):
Documentation: dev-tools: Clarify requirements for result description
Mark Rutland (1):
kunit: log numbers in decimal and hex
MaĆra Canal (3):
kunit: Introduce KUNIT_EXPECT_MEMEQ and KUNIT_EXPECT_MEMNEQ macros
kunit: Add KUnit memory block assertions to the example_all_expect_macros_test
kunit: Use KUNIT_EXPECT_MEMEQ macro
Rae Moar (4):
kunit: tool: parse KTAP compliant test output
kunit: improve KTAP compliance of KUnit test output
kunit: add macro to allow conditionally exposing static symbols to tests
apparmor: test: make static symbols visible during kunit testing
Sadiya Kazi (1):
Documentation: Kunit: Update architecture.rst for minor fixes
YoungJun.park (1):
kunit: remove unused structure definition
Documentation/dev-tools/ktap.rst | 4 +-
Documentation/dev-tools/kunit/architecture.rst | 115 +++++-----
Documentation/dev-tools/kunit/index.rst | 20 +-
Documentation/dev-tools/kunit/start.rst | 18 +-
Documentation/dev-tools/kunit/tips.rst | 190 ----------------
Documentation/dev-tools/kunit/usage.rst | 92 +++++---
drivers/gpu/drm/tests/drm_format_helper_test.c | 12 +-
include/kunit/assert.h | 74 +++----
include/kunit/test-bug.h | 53 ++++-
include/kunit/test.h | 118 ++++++++--
include/kunit/visibility.h | 33 +++
lib/kunit/assert.c | 62 +++++-
lib/kunit/debugfs.c | 2 +-
lib/kunit/executor.c | 6 +-
lib/kunit/kunit-example-test.c | 7 +
lib/kunit/string-stream.c | 5 -
lib/kunit/test.c | 15 +-
lib/slub_kunit.c | 1 +
mm/slub.c | 3 +-
net/core/dev_addr_lists_test.c | 4 +-
security/apparmor/Kconfig | 4 +-
security/apparmor/Makefile | 3 +
security/apparmor/include/policy_unpack.h | 50 +++++
security/apparmor/policy_unpack.c | 238 +++++++++------------
security/apparmor/policy_unpack_test.c | 69 +++---
tools/testing/kunit/kunit.py | 36 ++--
tools/testing/kunit/kunit_parser.py | 188 ++++++++++------
tools/testing/kunit/kunit_tool_test.py | 164 ++++++++------
.../kunit/test_data/test_parse_ktap_output.log | 8 +
.../kunit/test_data/test_parse_subtest_header.log | 7 +
30 files changed, 901 insertions(+), 700 deletions(-)
delete mode 100644 Documentation/dev-tools/kunit/tips.rst
create mode 100644 include/kunit/visibility.h
create mode 100644 tools/testing/kunit/test_data/test_parse_ktap_output.log
create mode 100644 tools/testing/kunit/test_data/test_parse_subtest_header.log
----------------------------------------------------------------
The pull request you sent on Mon, 12 Dec 2022 15:07:05 -0700:
> git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-kunit-next-6.2-rc1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e2ed78d5d9ca07a2b9d158ebac366170a2d3083d
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html