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
|
||||
ls -alt /boot /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
|
||||
make check || {
|
||||
if make check
|
||||
then
|
||||
rc=0
|
||||
else
|
||||
: rc $?
|
||||
rc=1
|
||||
fi
|
||||
cat tests/test-suite.log
|
||||
exit 1
|
||||
}
|
||||
exit ${rc}
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
Loading…
Reference in New Issue
Block a user