enable make check

Signed-off-by: ExtinctFire <shenyining_00@126.com>
This commit is contained in:
ExtinctFire 2021-11-27 10:48:07 +08:00
parent c1b42bcfec
commit 75ba445770
2 changed files with 39 additions and 1 deletions

30
enable-make-check.patch Normal file
View File

@ -0,0 +1,30 @@
From 4d663e5249f94b49d7af474c345f96a4b9ffd931 Mon Sep 17 00:00:00 2001
From: ExtinctFire <shenyining_00@126.com>
Date: Sat, 27 Nov 2021 09:44:16 +0800
Subject: [PATCH] add check summary
Signed-off-by: ExtinctFire <shenyining_00@126.com>
---
Makefile.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 5725ed3..9282215 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -497,10 +497,10 @@ splint:
splint -weak *.c
test: nasm$(X)
- cd test && $(RUNPERL) performtest.pl --nasm=../nasm *.asm
+ cd test && $(RUNPERL) performtest.pl --nasm=../nasm *.asm --verbose
golden: nasm$(X)
- cd test && $(RUNPERL) performtest.pl --golden --nasm=../nasm *.asm
+ cd test && $(RUNPERL) performtest.pl --golden --nasm=../nasm *.asm --verbose
travis: nasm$(X)
$(PYTHON3) travis/nasm-t.py run
--
2.23.0

View File

@ -8,7 +8,7 @@
Name: nasm
Version: 2.15.03
Release: 2
Release: 3
Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
License: BSD
URL: http://www.nasm.us
@ -18,6 +18,7 @@ Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version
Patch6000: backport-CVE-2019-20352.patch
Patch6001: backport-CVE-2020-24241-1.patch
Patch6002: backport-CVE-2020-24241-2.patch
Patch6003: enable-make-check.patch
#https://bugzilla.nasm.us/attachment.cgi?id=411648
BuildRequires: perl(Env) autoconf asciidoc xmlto gcc make git
@ -62,6 +63,10 @@ make all %{?_smp_mflags}
%install
%make_install install_rdf
%check
make golden
make test
%files
%doc CHANGES README.md
%license AUTHORS
@ -87,6 +92,9 @@ make all %{?_smp_mflags}
%{_mandir}/man1/ld*
%changelog
* Sat Nov 27 2021 ExtinctFire <shenyining_00@126.com> - 2.15.03-3
- enable make check
* Thu Jan 07 2020 shixuantong <shixuantong@huawei.com> - 2.15.03-2
- fix CVE-2019-20352 CVE-2020-24241