diff --git a/ipxe.spec b/ipxe.spec index 2283ddd..f54fa50 100644 --- a/ipxe.spec +++ b/ipxe.spec @@ -6,7 +6,7 @@ Name: ipxe Version: 1.21.1 -Release: 2 +Release: 3 Summary: A network boot loader Epoch: 1 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 \ bin/undionly.kpxe bin/ipxe.{dsk,iso,usb,lkrn} \ @@ -148,6 +151,16 @@ for rom in %{qemuroms}; do done %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} %files bootimgs %defattr(-,root,root) @@ -174,6 +187,9 @@ done %endif %changelog +* Sat Mar 26 2022 wangkerong - 1.21.1-3 +- enable test + * Wed Jun 09 2021 wangkerong - 1.21.1-2 - Type:bugfix - Id:NA