Skip to content

Commit ce07a50

Browse files
committed
Merge: redhat/kernel.spec.template: add net packetdrill selftests
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/713 JIRA: https://issues.redhat.com/browse/RHEL-84659 Signed-off-by: Hangbin Liu <haliu@redhat.com> Approved-by: Jan Stancek <jstancek@redhat.com> Approved-by: Herton R. Krzesinski <herton@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Julio Faracco <jfaracco@redhat.com>
2 parents e034295 + 0eee321 commit ce07a50

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)