Skip to content

Commit 0568128

Browse files
committed
redhat: add namespace selftests to kernel-modules-internal package
Upstream Status: RHEL-only JIRA: https://issues.redhat.com/browse/RHEL-88630 As the time of this commit there is no targeted testing in CKI for the namespace subsystem. The addition of the two extant namespace kselftests to CKI will pave the way for us to trigger these tests when the underlying tested files are modified. ARK commit: 7b0f1413963a9ecf7c46a9989cd86e12497d8767 Signed-off-by: Joel Savitz <jsavitz@redhat.com>
1 parent 1fdd04a commit 0568128

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
@@ -3254,7 +3254,7 @@ pushd tools/testing/selftests
32543254
%undefine _fortify_level
32553255
export CFLAGS="%{build_cflags}"
32563256

3257-
TARGETS="bpf cgroup mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net/bonding iommu cachestat"
3257+
TARGETS="bpf cgroup mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net/bonding iommu cachestat pid_namespace rlimits"
32583258
%{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}"
32593259

32603260
# Restore the original level of source fortification
@@ -3655,6 +3655,18 @@ find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/iommu/{} \;
36553655
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/iommu/{} \;
36563656
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/iommu/{} \;
36573657
popd
3658+
# install rlimits selftests
3659+
pushd tools/testing/selftests/rlimits
3660+
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/rlimits/{} \;
3661+
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/rlimits/{} \;
3662+
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/rlimits/{} \;
3663+
popd
3664+
# install pid_namespace selftests
3665+
pushd tools/testing/selftests/pid_namespace
3666+
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/pid_namespace/{} \;
3667+
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/pid_namespace/{} \;
3668+
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/pid_namespace/{} \;
3669+
popd
36583670
%endif
36593671

36603672
###

0 commit comments

Comments
 (0)