!21 [sync] PR-19: enable test

From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2022-03-29 02:15:12 +00:00 committed by Gitee
commit 3007afe5b1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <wangkerong@h-partners.com> - 1.21.1-3
- enable test
* Wed Jun 09 2021 wangkerong <wangkerong@huawei.com> - 1.21.1-2
- Type:bugfix
- Id:NA