netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests: rtnetlink: add checks for ifconfig and iproute2
@ 2025-08-21  7:43 Alessandro Ratti
  2025-08-21  7:43 ` Alessandro Ratti
  0 siblings, 1 reply; 16+ messages in thread
From: Alessandro Ratti @ 2025-08-21  7:43 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, skhan
  Cc: netdev, linux-kselftest, alessandro.ratti


Hi,

This patch improves portability of the rtnetlink selftests in two ways:

1. It wraps a call to ifconfig in a presence check to avoid test failures
   on systems where ifconfig is not installed — such as default Debian Bookworm
   and newer distributions where iproute2 is the norm.

2. It skips the do_test_address_proto test if the installed version of iproute2
   does not support the proto in ip address commands. Without this check,
   the test fails unconditionally on older iproute2 versions, even though the kernel
   functionality under test is not the culprit.

Both changes ensure that the test suite degrades gracefully by reporting SKIP
instead of FAIL on incompatible systems.

Tested on Debian Bookworm with iproute2 6.1.0 and without ifconfig.

Thanks for your time and consideration.

Best regards,
Alessandro Ratti

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-08-25 23:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21  7:43 [PATCH] selftests: rtnetlink: add checks for ifconfig and iproute2 Alessandro Ratti
2025-08-21  7:43 ` Alessandro Ratti
2025-08-21  8:25   ` Hangbin Liu
2025-08-21  8:45     ` Alessandro
2025-08-21  8:58       ` Hangbin Liu
2025-08-21  9:43         ` Alessandro Ratti
2025-08-21 14:16           ` [PATCH v2] selftests: rtnetlink: skip tests if tools or feats are missing Alessandro Ratti
2025-08-21 14:16             ` [PATCH] " Alessandro Ratti
2025-08-22  1:09               ` Hangbin Liu
2025-08-22 12:08                 ` [PATCH net-next v2] " Alessandro Ratti
2025-08-22 12:08                   ` Alessandro Ratti
2025-08-22 13:03                     ` Hangbin Liu
2025-08-22 14:03                       ` [PATCH net-next v3] " Alessandro Ratti
2025-08-22 14:03                         ` Alessandro Ratti
2025-08-25 23:10                           ` patchwork-bot+netdevbpf
2025-08-22 14:27                         ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).