Skip to content

Commit 0eee321

Browse files
author
Hangbin Liu
committed
redhat/kernel.spec.template: add net packetdrill selftests
JIRA: https://issues.redhat.com/browse/RHEL-84659 Upstream Status: kernel-ark.git commit 716bf7ccea40 conflicts: context conflicts as kernel-ark doesn't have commits 929f055 ("redhat/spec: Install all selftests in a single step") and some other RHEL only updates. commit 716bf7ccea40627adc9f92f404b951d9acdd8366 Author: Hangbin Liu <haliu@redhat.com> Date: Mon Apr 7 11:35:20 2025 +0800 redhat/kernel.spec.template: add net packetdrill selftests Add net packetdrill selftests to internal selftests rpm. Signed-off-by: Hangbin Liu <haliu@redhat.com> Signed-off-by: Hangbin Liu <haliu@redhat.com>
1 parent 89c55d4 commit 0eee321

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

redhat/kernel.spec.template

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3242,7 +3242,7 @@ pushd tools/testing/selftests
32423242
%undefine _fortify_level
32433243
export CFLAGS="%{build_cflags}"
32443244

3245-
TARGETS="bpf cgroup mm net net/forwarding net/mptcp net/netfilter tc-testing memfd drivers/net/bonding iommu cachestat"
3245+
TARGETS="bpf cgroup mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net/bonding iommu cachestat"
32463246
%{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}"
32473247

32483248
# Restore the original level of source fortification
@@ -3624,6 +3624,12 @@ find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/net/netfilte
36243624
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/net/netfilter/{} \;
36253625
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/net/netfilter/{} \;
36263626
popd
3627+
# install net/packetdrill selftests
3628+
pushd tools/testing/selftests/net/packetdrill
3629+
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/net/packetdrill/{} \;
3630+
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/net/packetdrill/{} \;
3631+
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/net/packetdrill/{} \;
3632+
popd
36273633

36283634
# install memfd selftests
36293635
pushd tools/testing/selftests/memfd

0 commit comments

Comments
 (0)