From: Hangbin Liu haliu@redhat.com
redhat/kernel.spec.template: add net packetdrill selftests
Add net packetdrill selftests to internal selftests rpm.
Signed-off-by: Hangbin Liu haliu@redhat.com
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100644 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -3186,7 +3186,7 @@ pushd tools/testing/selftests %endif
%{log_msg "main selftests compile"} -%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf cgroup mm net net/forwarding net/mptcp net/netfilter tc-testing memfd drivers/net/bonding iommu cachestat" SKIP_TARGETS="" $force_targets INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" install +%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf cgroup mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net/bonding iommu cachestat" SKIP_TARGETS="" $force_targets INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" install
%ifarch %{klptestarches} # kernel livepatching selftest test_modules will build against @@ -3557,6 +3557,12 @@ find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/net/netfilte find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/net/netfilter/{} ; find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/net/netfilter/{} ; popd +# install net/packetdrill selftests +pushd tools/testing/selftests/net/packetdrill +find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/net/packetdrill/{} ; +find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/net/packetdrill/{} ; +find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/net/packetdrill/{} ; +popd
# install memfd selftests pushd tools/testing/selftests/memfd
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3819
kernel@lists.fedoraproject.org