Fix missing data for unit tests
side-tag: c9s-build-side-453 Resolves: bz#2061370
This commit is contained in:
parent
e3c55b63ce
commit
93c5f6b838
@ -196,7 +196,18 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%make_build
|
||||
|
||||
%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
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user