[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240827071703.59401ed7@kernel.org>
Date: Tue, 27 Aug 2024 07:17:03 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Petr Machata <petrm@...dia.com>
Cc: Przemek Kitszel <przemyslaw.kitszel@...el.com>, Shuah Khan
<shuah@...nel.org>, <linux-kselftest@...r.kernel.org>,
<netdev@...r.kernel.org>, Ido Schimmel <idosch@...dia.com>, Amit Cohen
<amcohen@...dia.com>, Benjamin Poirier <bpoirier@...dia.com>, Hangbin Liu
<liuhangbin@...il.com>, Vladimir Oltean <vladimir.oltean@....com>,
<mlxsw@...dia.com>
Subject: Re: [RFC PATCH net-next 1/5] selftests: forwarding: Introduce
deferred commands
On Tue, 27 Aug 2024 10:53:53 +0200 Petr Machata wrote:
> >> I can do it, but it's gonna be more pain in setting up those
> >> TEST_INCLUDES. People will forget. It will be a nuisance.
> >> I'm thinking of just moving it to net/lib.sh, from forwarding.
> >
> > what about separate file, but included from net/lib.sh?
>
> Unfortunately that would be even worse. Then you need to remember to put
> the file into TEST_INCLUDES despite seemingly not using it.
>
> Like ideally we'd have automation for this. But I don't know how to do that
> without actually parsing the bash files, and that's just asking for
> trouble. Maybe after the defer stuff we also need a module system :-/
FWIW we could throw it into net/lib, which has a fake target, see:
b86761ff6374 ("selftests: net: add scaffolding for Netlink tests in Python")
Powered by blists - more mailing lists