Fix missing data for unit tests

side-tag: c9s-build-side-453

Resolves: bz#2061370
This commit is contained in:
Jan Grulich 2022-04-20 08:00:34 +02:00
parent e3c55b63ce
commit 93c5f6b838

View File

@ -196,7 +196,18 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%make_build %make_build
%if 0%{?build_tests} %if 0%{?build_tests}
%qt5_build_tests # FIXME: qttools is special case and we cannot use qt5_build_tests macro as this
# skips many files used by qttools unit tests
#qt5_build_tests
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
find ./tests -not -path '*/\.*' -type d | while read LINE
do
mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
done
find ./tests -not -path '*/\.*' -not -name 'uic_wrapper.sh' -not -name 'Makefile' -not -name 'target_wrapper.sh' -type f | while read LINE
do
cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
done
%endif %endif
%install %install