Skip to contentSkip to conversation

selftests: netdevsim: add TEST_INCLUDES to Makefile

PATCH Applied Hangbin Liu 3 participants 3 messages Sep 10 – Sep 12

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: netdevsim: add TEST_INCLUDES to Makefile

From: Hangbin Liu <[email protected]>

Some netdevsim selftests source forwarding/lib.sh and other files, but the Makefile doesn't have TEST_INCLUDES targets, which makes

  make INSTALL_PATH=/tmp/kself TARGETS=drivers/net/netdevsim \
     -C tools/testing/selftests install

failed to install related lib files. Add TEST_INCLUDES to the Makefile to install the dependencies.

---
As there are multi nsim selftests include the lib.sh but no error report for the installation issue. So I won't bother fixes tags and just post this patch to net-next.

---
 tools/testing/selftests/drivers/net/netdevsim/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)
tools/testing/selftests/drivers/net/netdevsim/Makefile +8 -0
index 9808c2fbae9e..bb90fe89d9a1 100644
@@ -22,4 +22,12 @@ TEST_FILES := \
 	ethtool-common.sh
 # end of TEST_FILES
 
+TEST_INCLUDES := \
+	$(wildcard ../../../net/lib/sh/*.sh) \
+	../../../net/forwarding/devlink_lib.sh \
+	../../../net/forwarding/fib_offload_lib.sh \
+	../../../net/forwarding/lib.sh \
+	../../../net/lib.sh \
+# end of TEST_INCLUDES
+
 include ../../../lib.mk

---
base-commit: 63487bb38a97918656751a2a4b74809bbe22eacb
change-id: 20260910-nsim_lib-489cd5abf074

Best regards,

Signature · 1 line
Hangbin Liu <[email protected]>
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Hangbin Liu

From: Hangbin Liu <[email protected]>

Some netdevsim selftests source forwarding/lib.sh and other files, but the Makefile doesn't have TEST_INCLUDES targets, which makes

  make INSTALL_PATH=/tmp/kself TARGETS=drivers/net/netdevsim \
     -C tools/testing/selftests install
Quoted 8 lines

failed to install related lib files. Add TEST_INCLUDES to the Makefile to install the dependencies.

---
As there are multi nsim selftests include the lib.sh but no error report for the installation issue. So I won't bother fixes tags and just post this patch to net-next.

#2 lore raw
In reply to Hangbin Liu
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Thu, 10 Sep 2026 16:06:58 +0800 you wrote:

From: Hangbin Liu <[email protected]>

Some netdevsim selftests source forwarding/lib.sh and other files, but the Makefile doesn't have TEST_INCLUDES targets, which makes

  make INSTALL_PATH=/tmp/kself TARGETS=drivers/net/netdevsim \
     -C tools/testing/selftests install

[...]

Here is the summary with links:
- [net-next] selftests: netdevsim: add TEST_INCLUDES to Makefile

    https://git.kernel.org/netdev/net-next/c/879e280b8486

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html