enable test

(cherry picked from commit 554f7f5f1fcb04fd4b978d888dcfaac8e7d117df)
This commit is contained in:
wangkerong 2022-03-26 10:35:08 +08:00 committed by openeuler-sync-bot
parent 85a975acd5
commit 0ac8b2193e

View File

@ -6,7 +6,7 @@
Name: ipxe Name: ipxe
Version: 1.21.1 Version: 1.21.1
Release: 2 Release: 3
Summary: A network boot loader Summary: A network boot loader
Epoch: 1 Epoch: 1
License: GPLv2 with additional permissions and BSD License: GPLv2 with additional permissions and BSD
@ -86,7 +86,10 @@ make_ipxe() {
"$@" "$@"
} }
make_ipxe bin-i386-efi/ipxe.efi bin-x86_64-efi/ipxe.efi make_ipxe bin-i386-efi/ipxe.efi bin-x86_64-efi/ipxe.efi bin-x86_64-linux/tests.linux \
%if 0%{?enable i386}
bin-i386-linux/tests.linux
%endif
make_ipxe ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin \ make_ipxe ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin \
bin/undionly.kpxe bin/ipxe.{dsk,iso,usb,lkrn} \ bin/undionly.kpxe bin/ipxe.{dsk,iso,usb,lkrn} \
@ -148,6 +151,16 @@ for rom in %{qemuroms}; do
done done
%endif %endif
%check
%ifarch %{buildarches}
cd ~/rpmbuild/BUILD/%{name}-%{version}/src/bin-x86_64-linux/
./tests.linux
%if 0%{?enable_i386}
cd ~/rpmbuild/BUILD/%{name}-%{version}/src/bin-i386-linux/
./tests.linux
%endif
%endif
%ifarch %{buildarches} %ifarch %{buildarches}
%files bootimgs %files bootimgs
%defattr(-,root,root) %defattr(-,root,root)
@ -174,6 +187,9 @@ done
%endif %endif
%changelog %changelog
* Sat Mar 26 2022 wangkerong <wangkerong@h-partners.com> - 1.21.1-3
- enable test
* Wed Jun 09 2021 wangkerong <wangkerong@huawei.com> - 1.21.1-2 * Wed Jun 09 2021 wangkerong <wangkerong@huawei.com> - 1.21.1-2
- Type:bugfix - Type:bugfix
- Id:NA - Id:NA