Skip to content

Commit 4307bdc

Browse files
author
Hangbin Liu
committed
redhat/kernel.spec.template: add drivers/net and drivers/net/hw selftest
JIRA: https://issues.redhat.com/browse/RHEL-95557 Upstream Status: kernel-ark.git commit b05601030c50 Conflicts: context conflicts as we have 929f055 ("redhat/spec: Install all selftests in a single step") on c10s. commit b05601030c5048732ebac5dbb72f8c61a54fad55 Author: Hangbin Liu <liuhangbin@gmail.com> Date: Wed Jun 25 09:50:30 2025 +0800 redhat/kernel.spec.template: add drivers/net and drivers/net/hw selftest Add drivers/net/hw for mlxsw related tests that depend on files in that path. Also include drivers/net for SW-only tests. At the same time, since all bonding tests are bash scripts, there's no need to list drivers/net/bonding explicitly in TARGETS. Replace it with drivers/net instead. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: Hangbin Liu <haliu@redhat.com>
1 parent 36e9c0b commit 4307bdc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

redhat/kernel.spec.template

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3200,7 +3200,7 @@ pushd tools/testing/selftests
32003200
export CFLAGS="%{build_cflags}"
32013201
export CXXFLAGS="%{build_cxxflags}"
32023202

3203-
TARGETS="bpf cgroup kmod mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net/bonding iommu cachestat pid_namespace rlimits timens pidfd"
3203+
TARGETS="bpf cgroup kmod mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net/hw iommu cachestat pid_namespace rlimits timens pidfd"
32043204
%{make} %{?_smp_mflags} EXTRA_CFLAGS="${RPM_OPT_FLAGS}" EXTRA_CXXFLAGS="${RPM_OPT_FLAGS}" EXTRA_LDFLAGS="%{__global_ldflags}" ARCH=$Arch V=1 TARGETS="$TARGETS" SKIP_TARGETS="" $force_targets VMLINUX_H="${RPM_VMLINUX_H}"
32053205

32063206
# Restore the original level of source fortification
@@ -3552,12 +3552,24 @@ find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/cgroup/{} \;
35523552
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/cgroup/{} \;
35533553
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/cgroup/{} \;
35543554
popd
3555+
# install drivers/net selftests
3556+
pushd tools/testing/selftests/drivers/net
3557+
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/drivers/net/{} \;
3558+
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/{} \;
3559+
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/{} \;
3560+
popd
35553561
# install drivers/net/mlxsw selftests
35563562
pushd tools/testing/selftests/drivers/net/mlxsw
35573563
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/drivers/net/mlxsw/{} \;
35583564
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/mlxsw/{} \;
35593565
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/mlxsw/{} \;
35603566
popd
3567+
# install drivers/net/hw selftests
3568+
pushd tools/testing/selftests/drivers/net/hw
3569+
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/drivers/net/hw/{} \;
3570+
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/hw/{} \;
3571+
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/hw/{} \;
3572+
popd
35613573
# install drivers/net/netdevsim selftests
35623574
pushd tools/testing/selftests/drivers/net/netdevsim
35633575
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/drivers/net/netdevsim/{} \;

0 commit comments

Comments
 (0)