Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: net: build net/lib dependency in all target

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>
Link: https://patch.msgid.link/20250601142914.13379-1-minhquangbui99@gmail.com
Fixes: b86761ff6374 ("selftests: net: add scaffolding for Netlink tests in Python")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Bui Quang Minh and committed by
Paolo Abeni
d3f2a958 982d30c3

+1 -1
+1 -1
tools/testing/selftests/Makefile
··· 205 205 206 206 all: 207 207 @ret=1; \ 208 - for TARGET in $(TARGETS); do \ 208 + for TARGET in $(TARGETS) $(INSTALL_DEP_TARGETS); do \ 209 209 BUILD_TARGET=$$BUILD/$$TARGET; \ 210 210 mkdir $$BUILD_TARGET -p; \ 211 211 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET \