]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: netconsole: selftests: Add userdata validation
authorBreno Leitao <leitao@debian.org>
Tue, 29 Oct 2024 09:00:29 +0000 (02:00 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sun, 3 Nov 2024 19:44:26 +0000 (11:44 -0800)
commitafa4ceb0fb648655c9f04921ccc801feb034109c
tree6c641db57cb87a877d71c1234f608cbeecb4ecf2
parentd051cd72dcb769c842494b1dbe29067aba45474f
net: netconsole: selftests: Add userdata validation

Extend netcons_basic selftest to verify the userdata functionality by:
 1. Creating a test key in the userdata configfs directory
 2. Writing a known value to the key
 3. Validating the key-value pair appears in the captured network output

This ensures the userdata feature is properly tested during selftests.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20241029090030.1793551-3-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/netcons_basic.sh