redhat: Add cgroup kselftests to kernel-selftests-internal
JIRA: https://issues.redhat.com/browse/RHEL-43555 Upstream Status: RHEL only Add cgroup kselftests to kernel-selftests-internal. Signed-off-by: Waiman Long <longman@redhat.com>
This commit is contained in:
parent
d3f14e9a5f
commit
7ee4c20f20
|
@ -2757,7 +2757,7 @@ export BPFTOOL=$(pwd)/tools/bpf/bpftool/bpftool
|
||||||
pushd tools/testing/selftests
|
pushd tools/testing/selftests
|
||||||
# We need to install here because we need to call make with ARCH set which
|
# We need to install here because we need to call make with ARCH set which
|
||||||
# doesn't seem possible to do in the install section.
|
# doesn't seem possible to do in the install section.
|
||||||
%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf mm livepatch net net/forwarding net/mptcp netfilter tc-testing memfd drivers/net/bonding iommu" SKIP_TARGETS="" FORCE_TARGETS=1 INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" DEFAULT_INSTALL_HDR_PATH=0 install
|
%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf cgroup mm livepatch net net/forwarding net/mptcp netfilter tc-testing memfd drivers/net/bonding iommu" SKIP_TARGETS="" FORCE_TARGETS=1 INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" DEFAULT_INSTALL_HDR_PATH=0 install
|
||||||
|
|
||||||
# 'make install' for bpf is broken and upstream refuses to fix it.
|
# 'make install' for bpf is broken and upstream refuses to fix it.
|
||||||
# Install the needed files manually.
|
# Install the needed files manually.
|
||||||
|
@ -3084,6 +3084,12 @@ find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/mm/{} \;
|
||||||
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/mm/{} \;
|
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/mm/{} \;
|
||||||
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/mm/{} \;
|
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/mm/{} \;
|
||||||
popd
|
popd
|
||||||
|
# install cgroup selftests
|
||||||
|
pushd tools/testing/selftests/cgroup
|
||||||
|
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/cgroup/{} \;
|
||||||
|
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/cgroup/{} \;
|
||||||
|
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/cgroup/{} \;
|
||||||
|
popd
|
||||||
# install drivers/net/mlxsw selftests
|
# install drivers/net/mlxsw selftests
|
||||||
pushd tools/testing/selftests/drivers/net/mlxsw
|
pushd tools/testing/selftests/drivers/net/mlxsw
|
||||||
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/drivers/net/mlxsw/{} \;
|
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/drivers/net/mlxsw/{} \;
|
||||||
|
|
Loading…
Reference in New Issue