From: Hangbin Liu <ha...@redhat.com>

redhat/kernel.spec.template: add net packetdrill selftests

Add net packetdrill selftests to internal selftests rpm.

Signed-off-by: Hangbin Liu <ha...@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 mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to