!9 gdisk添加make test

From: @lixiaokeng
Reviewed-by: @wubo009,@wubo009
Signed-off-by: @liuzhiqiang26
This commit is contained in:
openeuler-ci-bot 2020-11-06 09:44:32 +08:00 committed by Gitee
commit dd18d5af7b

View File

@ -1,6 +1,6 @@
Name: gdisk Name: gdisk
Version: 1.0.5 Version: 1.0.5
Release: 3 Release: 4
Summary: GPT fdisk(consisting of the gdisk,sgdisk,cgdisk) is a set of text-mode partitioning tools Summary: GPT fdisk(consisting of the gdisk,sgdisk,cgdisk) is a set of text-mode partitioning tools
License: GPLv2 License: GPLv2
URL: http://www.rodsbooks.com/gdisk URL: http://www.rodsbooks.com/gdisk
@ -24,11 +24,14 @@ This package contains the man page for GPT fdisk(consisting of the gdisk,sgdisk,
%prep %prep
%autosetup -n gptfdisk-%{version} -p1 -Sgit %autosetup -n gptfdisk-%{version} -p1 -Sgit
chmod 0644 gdisk_test.sh
%build %build
make CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" LDFLAGS="%{build_ldflags}" make CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" LDFLAGS="%{build_ldflags}"
%check
make test
chmod 0644 gdisk_test.sh
%install %install
install -Dp -m 0755 cgdisk %{buildroot}%{_sbindir}/cgdisk install -Dp -m 0755 cgdisk %{buildroot}%{_sbindir}/cgdisk
install -Dp -m 0644 cgdisk.8 %{buildroot}%{_mandir}/man8/cgdisk.8 install -Dp -m 0644 cgdisk.8 %{buildroot}%{_mandir}/man8/cgdisk.8
@ -48,6 +51,9 @@ install -Dp -m 0644 fixparts.8 %{buildroot}%{_mandir}/man8/fixparts.8
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Wed Nov 4 2020 lixiaokeng <lixiaokeng@huawei.com> - 1.0.5-4
- add make test
* Thu Oct 29 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.0.5-3 * Thu Oct 29 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.0.5-3
- backport one patch for solving potential segfault problem. - backport one patch for solving potential segfault problem.