[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250821074552.682731-1-alessandro@0x65c.net>
Date: Thu, 21 Aug 2025 09:43:10 +0200
From: Alessandro Ratti <alessandro@...5c.net>
To: davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
skhan@...uxfoundation.org
Cc: netdev@...r.kernel.org,
linux-kselftest@...r.kernel.org,
alessandro.ratti@...il.com
Subject: [PATCH] selftests: rtnetlink: add checks for ifconfig and iproute2
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
Powered by blists - more mailing lists