netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v3] selftests: net: build net/lib dependency in all target
@ 2025-06-01 14:29 Bui Quang Minh
  2025-06-03 10:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Bui Quang Minh @ 2025-06-01 14:29 UTC (permalink / raw)
  To: netdev
  Cc: Jakub Kicinski, Simon Horman, Philip Li, oliver.sang, Shuah Khan,
	linux-kselftest, linux-kernel, Bui Quang Minh

We have the logic to include net/lib automatically for net related
selftests. However, currently, this logic is only in install target
which means only `make install` will have net/lib included. This commit
adds the logic to all target so that all `make`, `make run_tests` and
`make install` will have net/lib included in net related selftests.

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
---
Changes in v3:
- Don't remove INSTALL_DEP_TARGETS in install target so that net/lib is
copied to INSTALL_PATH

Changes in v2:
- Make the commit message clearer.

 tools/testing/selftests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index 6aa11cd3db42..339b31e6a6b5 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -205,7 +205,7 @@ export KHDR_INCLUDES
 
 all:
 	@ret=1;							\
-	for TARGET in $(TARGETS); do				\
+	for TARGET in $(TARGETS) $(INSTALL_DEP_TARGETS); do	\
 		BUILD_TARGET=$$BUILD/$$TARGET;			\
 		mkdir $$BUILD_TARGET  -p;			\
 		$(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET	\
-- 
2.43.0


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

* Re: [PATCH net v3] selftests: net: build net/lib dependency in all target
  2025-06-01 14:29 [PATCH net v3] selftests: net: build net/lib dependency in all target Bui Quang Minh
@ 2025-06-03 10:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-03 10:30 UTC (permalink / raw)
  To: Bui Quang Minh
  Cc: netdev, kuba, horms, philip.li, oliver.sang, shuah,
	linux-kselftest, linux-kernel

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Sun,  1 Jun 2025 21:29:13 +0700 you wrote:
> We have the logic to include net/lib automatically for net related
> selftests. However, currently, this logic is only in install target
> which means only `make install` will have net/lib included. This commit
> adds the logic to all target so that all `make`, `make run_tests` and
> `make install` will have net/lib included in net related selftests.
> 
> Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
> 
> [...]

Here is the summary with links:
  - [net,v3] selftests: net: build net/lib dependency in all target
    https://git.kernel.org/netdev/net/c/d3f2a9587ebe

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] 2+ messages in thread

end of thread, other threads:[~2025-06-03 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-01 14:29 [PATCH net v3] selftests: net: build net/lib dependency in all target Bui Quang Minh
2025-06-03 10:30 ` 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).