netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] selftests: forwarding: Install two missing tests
@ 2022-07-07 13:55 Martin Blumenstingl
  2022-07-07 13:55 ` [PATCH 1/2] selftests: forwarding: Install local_termination.sh Martin Blumenstingl
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2022-07-07 13:55 UTC (permalink / raw)
  To: netdev, linux-kselftest
  Cc: vladimir.oltean, linux-kernel, pabeni, kuba, edumazet, davem,
	shuah, Martin Blumenstingl

For some distributions (e.g. OpenWrt) we don't want to rely on rsync
to copy the tests to the target as some extra dependencies need to be
installed. The Makefile in tools/testing/selftests/net/forwarding
already installs most of the tests.

This series adds the two missing tests to the list of installed tests.
That way a downstream distribution can build a package using this
Makefile (and add dependencies there as needed).


Martin Blumenstingl (2):
  selftests: forwarding: Install local_termination.sh
  selftests: forwarding: Install no_forwarding.sh

 tools/testing/selftests/net/forwarding/Makefile | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.37.0


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

* [PATCH 1/2] selftests: forwarding: Install local_termination.sh
  2022-07-07 13:55 [PATCH 0/2] selftests: forwarding: Install two missing tests Martin Blumenstingl
@ 2022-07-07 13:55 ` Martin Blumenstingl
  2022-07-07 22:20   ` Vladimir Oltean
  2022-07-07 13:55 ` [PATCH 2/2] selftests: forwarding: Install no_forwarding.sh Martin Blumenstingl
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Martin Blumenstingl @ 2022-07-07 13:55 UTC (permalink / raw)
  To: netdev, linux-kselftest
  Cc: vladimir.oltean, linux-kernel, pabeni, kuba, edumazet, davem,
	shuah, Martin Blumenstingl

When using the Makefile from tools/testing/selftests/net/forwarding/
all tests should be installed. Add local_termination.sh to the list of
"to be installed tests" where it has been missing so far.

Fixes: 90b9566aa5cd3f ("selftests: forwarding: add a test for local_termination.sh")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 tools/testing/selftests/net/forwarding/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/net/forwarding/Makefile b/tools/testing/selftests/net/forwarding/Makefile
index 669ffd6f2a68..6fcf6cdfaee2 100644
--- a/tools/testing/selftests/net/forwarding/Makefile
+++ b/tools/testing/selftests/net/forwarding/Makefile
@@ -38,6 +38,7 @@ TEST_PROGS = bridge_igmp.sh \
 	ipip_hier_gre_key.sh \
 	ipip_hier_gre_keys.sh \
 	ipip_hier_gre.sh \
+	local_termination.sh \
 	loopback.sh \
 	mirror_gre_bound.sh \
 	mirror_gre_bridge_1d.sh \
-- 
2.37.0


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

* [PATCH 2/2] selftests: forwarding: Install no_forwarding.sh
  2022-07-07 13:55 [PATCH 0/2] selftests: forwarding: Install two missing tests Martin Blumenstingl
  2022-07-07 13:55 ` [PATCH 1/2] selftests: forwarding: Install local_termination.sh Martin Blumenstingl
@ 2022-07-07 13:55 ` Martin Blumenstingl
  2022-07-07 22:20   ` Vladimir Oltean
  2022-07-07 22:25 ` [PATCH 0/2] selftests: forwarding: Install two missing tests Vladimir Oltean
  2022-07-09  3:40 ` patchwork-bot+netdevbpf
  3 siblings, 1 reply; 8+ messages in thread
From: Martin Blumenstingl @ 2022-07-07 13:55 UTC (permalink / raw)
  To: netdev, linux-kselftest
  Cc: vladimir.oltean, linux-kernel, pabeni, kuba, edumazet, davem,
	shuah, Martin Blumenstingl

When using the Makefile from tools/testing/selftests/net/forwarding/
all tests should be installed. Add no_forwarding.sh to the list of
"to be installed tests" where it has been missing so far.

Fixes: 476a4f05d9b83f ("selftests: forwarding: add a no_forwarding.sh test")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 tools/testing/selftests/net/forwarding/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/net/forwarding/Makefile b/tools/testing/selftests/net/forwarding/Makefile
index 6fcf6cdfaee2..a9c5c1be5088 100644
--- a/tools/testing/selftests/net/forwarding/Makefile
+++ b/tools/testing/selftests/net/forwarding/Makefile
@@ -54,6 +54,7 @@ TEST_PROGS = bridge_igmp.sh \
 	mirror_gre_vlan_bridge_1q.sh \
 	mirror_gre_vlan.sh \
 	mirror_vlan.sh \
+	no_forwarding.sh \
 	pedit_dsfield.sh \
 	pedit_ip.sh \
 	pedit_l4port.sh \
-- 
2.37.0


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

* Re: [PATCH 1/2] selftests: forwarding: Install local_termination.sh
  2022-07-07 13:55 ` [PATCH 1/2] selftests: forwarding: Install local_termination.sh Martin Blumenstingl
@ 2022-07-07 22:20   ` Vladimir Oltean
  0 siblings, 0 replies; 8+ messages in thread
From: Vladimir Oltean @ 2022-07-07 22:20 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: netdev, linux-kselftest, linux-kernel, pabeni, kuba, edumazet,
	davem, shuah

On Thu, Jul 07, 2022 at 03:55:31PM +0200, Martin Blumenstingl wrote:
> When using the Makefile from tools/testing/selftests/net/forwarding/
> all tests should be installed. Add local_termination.sh to the list of
> "to be installed tests" where it has been missing so far.
> 
> Fixes: 90b9566aa5cd3f ("selftests: forwarding: add a test for local_termination.sh")
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>

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

* Re: [PATCH 2/2] selftests: forwarding: Install no_forwarding.sh
  2022-07-07 13:55 ` [PATCH 2/2] selftests: forwarding: Install no_forwarding.sh Martin Blumenstingl
@ 2022-07-07 22:20   ` Vladimir Oltean
  0 siblings, 0 replies; 8+ messages in thread
From: Vladimir Oltean @ 2022-07-07 22:20 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: netdev, linux-kselftest, linux-kernel, pabeni, kuba, edumazet,
	davem, shuah

On Thu, Jul 07, 2022 at 03:55:32PM +0200, Martin Blumenstingl wrote:
> When using the Makefile from tools/testing/selftests/net/forwarding/
> all tests should be installed. Add no_forwarding.sh to the list of
> "to be installed tests" where it has been missing so far.
> 
> Fixes: 476a4f05d9b83f ("selftests: forwarding: add a no_forwarding.sh test")
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>

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

* Re: [PATCH 0/2] selftests: forwarding: Install two missing tests
  2022-07-07 13:55 [PATCH 0/2] selftests: forwarding: Install two missing tests Martin Blumenstingl
  2022-07-07 13:55 ` [PATCH 1/2] selftests: forwarding: Install local_termination.sh Martin Blumenstingl
  2022-07-07 13:55 ` [PATCH 2/2] selftests: forwarding: Install no_forwarding.sh Martin Blumenstingl
@ 2022-07-07 22:25 ` Vladimir Oltean
  2022-07-08 22:28   ` Martin Blumenstingl
  2022-07-09  3:40 ` patchwork-bot+netdevbpf
  3 siblings, 1 reply; 8+ messages in thread
From: Vladimir Oltean @ 2022-07-07 22:25 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: netdev, linux-kselftest, linux-kernel, pabeni, kuba, edumazet,
	davem, shuah

Hi Martin,

On Thu, Jul 07, 2022 at 03:55:30PM +0200, Martin Blumenstingl wrote:
> For some distributions (e.g. OpenWrt) we don't want to rely on rsync
> to copy the tests to the target as some extra dependencies need to be
> installed. The Makefile in tools/testing/selftests/net/forwarding
> already installs most of the tests.
> 
> This series adds the two missing tests to the list of installed tests.
> That way a downstream distribution can build a package using this
> Makefile (and add dependencies there as needed).

Just for future reference, the netdev process is to mark patch sets such
as this one with "PATCH net" since they fix a packaging problem with an
rc kernel. There's more information about this in
Documentation/process/maintainer-netdev.rst.

Do we need to create a Makefile for the selftests symlinked by DSA in
tools/testing/selftests/drivers/net/dsa/, for the symlinks to be
installed, or how do you see this?

The reason why I created the symlinks was to make use of the custom
forwarding.config provided there, and also to reduce the clutter a bit
and only focus on the selftests I felt were relevant for DSA for now.

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

* Re: [PATCH 0/2] selftests: forwarding: Install two missing tests
  2022-07-07 22:25 ` [PATCH 0/2] selftests: forwarding: Install two missing tests Vladimir Oltean
@ 2022-07-08 22:28   ` Martin Blumenstingl
  0 siblings, 0 replies; 8+ messages in thread
From: Martin Blumenstingl @ 2022-07-08 22:28 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: netdev, linux-kselftest, linux-kernel, pabeni, kuba, edumazet,
	davem, shuah

Hi Vladimir,

On Fri, Jul 8, 2022 at 12:25 AM Vladimir Oltean <vladimir.oltean@nxp.com> wrote:
>
> Hi Martin,
>
> On Thu, Jul 07, 2022 at 03:55:30PM +0200, Martin Blumenstingl wrote:
> > For some distributions (e.g. OpenWrt) we don't want to rely on rsync
> > to copy the tests to the target as some extra dependencies need to be
> > installed. The Makefile in tools/testing/selftests/net/forwarding
> > already installs most of the tests.
> >
> > This series adds the two missing tests to the list of installed tests.
> > That way a downstream distribution can build a package using this
> > Makefile (and add dependencies there as needed).
>
> Just for future reference, the netdev process is to mark patch sets such
> as this one with "PATCH net" since they fix a packaging problem with an
> rc kernel. There's more information about this in
> Documentation/process/maintainer-netdev.rst.
noted

> Do we need to create a Makefile for the selftests symlinked by DSA in
> tools/testing/selftests/drivers/net/dsa/, for the symlinks to be
> installed, or how do you see this?
Yes, we should have a Makefile there as well (IMO). I'll send a patch for this.

> The reason why I created the symlinks was to make use of the custom
> forwarding.config provided there, and also to reduce the clutter a bit
> and only focus on the selftests I felt were relevant for DSA for now.
Makes sense, I'll make sure that this one is installed by the Makefile as well


Best regards,
Martin

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

* Re: [PATCH 0/2] selftests: forwarding: Install two missing tests
  2022-07-07 13:55 [PATCH 0/2] selftests: forwarding: Install two missing tests Martin Blumenstingl
                   ` (2 preceding siblings ...)
  2022-07-07 22:25 ` [PATCH 0/2] selftests: forwarding: Install two missing tests Vladimir Oltean
@ 2022-07-09  3:40 ` patchwork-bot+netdevbpf
  3 siblings, 0 replies; 8+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-07-09  3:40 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: netdev, linux-kselftest, vladimir.oltean, linux-kernel, pabeni,
	kuba, edumazet, davem, shuah

Hello:

This series was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Thu,  7 Jul 2022 15:55:30 +0200 you wrote:
> For some distributions (e.g. OpenWrt) we don't want to rely on rsync
> to copy the tests to the target as some extra dependencies need to be
> installed. The Makefile in tools/testing/selftests/net/forwarding
> already installs most of the tests.
> 
> This series adds the two missing tests to the list of installed tests.
> That way a downstream distribution can build a package using this
> Makefile (and add dependencies there as needed).
> 
> [...]

Here is the summary with links:
  - [1/2] selftests: forwarding: Install local_termination.sh
    https://git.kernel.org/netdev/net/c/437ac2592c09
  - [2/2] selftests: forwarding: Install no_forwarding.sh
    https://git.kernel.org/netdev/net/c/cfbba7b46aef

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-07-09  3:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 13:55 [PATCH 0/2] selftests: forwarding: Install two missing tests Martin Blumenstingl
2022-07-07 13:55 ` [PATCH 1/2] selftests: forwarding: Install local_termination.sh Martin Blumenstingl
2022-07-07 22:20   ` Vladimir Oltean
2022-07-07 13:55 ` [PATCH 2/2] selftests: forwarding: Install no_forwarding.sh Martin Blumenstingl
2022-07-07 22:20   ` Vladimir Oltean
2022-07-07 22:25 ` [PATCH 0/2] selftests: forwarding: Install two missing tests Vladimir Oltean
2022-07-08 22:28   ` Martin Blumenstingl
2022-07-09  3:40 ` patchwork-bot+netdevbpf

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).