forked from pool/supermin
fool make check
OBS-URL: https://build.opensuse.org/package/show/Virtualization/supermin?expand=0&rev=52
This commit is contained in:
parent
c79838b1ea
commit
8ad4054d53
@ -88,11 +88,36 @@ find %{buildroot} -ls
|
|||||||
%check
|
%check
|
||||||
ls -alt /boot /lib/modules || :
|
ls -alt /boot /lib/modules || :
|
||||||
ls -altd /lib/modules/*/* || :
|
ls -altd /lib/modules/*/* || :
|
||||||
|
|
||||||
|
for i in /boot/Image* /boot/vmlinu*
|
||||||
|
do
|
||||||
|
test -f "$i" || continue
|
||||||
|
if get_kernel_version "${i}" > $$
|
||||||
|
then
|
||||||
|
if test -s $$
|
||||||
|
then
|
||||||
|
read SUPERMIN_KERNEL_VERSION < $$
|
||||||
|
export "SUPERMIN_KERNEL=$i"
|
||||||
|
export "SUPERMIN_KERNEL_VERSION=$SUPERMIN_KERNEL_VERSION"
|
||||||
|
export "SUPERMIN_MODULES=/lib/modules/${SUPERMIN_KERNEL_VERSION}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
rm -fv $$
|
||||||
|
test -n "${SUPERMIN_KERNEL}"
|
||||||
|
test -n "${SUPERMIN_KERNEL_VERSION}"
|
||||||
|
test -d "${SUPERMIN_MODULES}"
|
||||||
%ifnarch s390x
|
%ifnarch s390x
|
||||||
make check || {
|
if make check
|
||||||
cat tests/test-suite.log
|
then
|
||||||
exit 1
|
rc=0
|
||||||
}
|
else
|
||||||
|
: rc $?
|
||||||
|
rc=1
|
||||||
|
fi
|
||||||
|
cat tests/test-suite.log
|
||||||
|
exit ${rc}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user