enable make check

Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
This commit is contained in:
Qiumiao Zhang 2023-03-09 21:14:33 +08:00
parent 0d0b6d2330
commit 03c69b4eb3

View File

@ -5,7 +5,7 @@
Name: ipxe
Version: 1.20.1
Release: 3
Release: 4
Summary: A network boot loader
Epoch: 1
License: GPLv2 with additional permissions and BSD
@ -85,7 +85,7 @@ 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
make_ipxe ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin \
bin/undionly.kpxe bin/ipxe.{dsk,iso,usb,lkrn} \
@ -143,6 +143,12 @@ for rom in %{qemuroms}; do
done
%endif
%check
%ifarch %{buildarches}
cd src/bin-x86_64-linux/
./tests.linux
%endif
%ifarch %{buildarches}
%files bootimgs
%defattr(-,root,root)
@ -169,7 +175,13 @@ done
%endif
%changelog
* Wed Jun 09 2021 wangkeorng <wangkerong@huawei.com> - 1:1.20.1-3
* Thu Mar 09 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:1.20.1-4
- Type:testcode
- ID:NA
- SUG:NA
- DESC:enable make check
* Wed Jun 09 2021 wangkerong <wangkerong@huawei.com> - 1:1.20.1-3
- Type:bugfix
- Id:NA
- SUG:NA