From b8e73c9cd8f623a4abd3fc311b593797506e626a Mon Sep 17 00:00:00 2001 From: ExtinctFire Date: Sat, 27 Nov 2021 10:56:26 +0800 Subject: [PATCH] enable make check Signed-off-by: ExtinctFire --- enable-make-check.patch | 30 ++++++++++++++++++++++++++++++ nasm.spec | 10 +++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 enable-make-check.patch diff --git a/enable-make-check.patch b/enable-make-check.patch new file mode 100644 index 0000000..3988ffd --- /dev/null +++ b/enable-make-check.patch @@ -0,0 +1,30 @@ +From 4d663e5249f94b49d7af474c345f96a4b9ffd931 Mon Sep 17 00:00:00 2001 +From: ExtinctFire +Date: Sat, 27 Nov 2021 09:44:16 +0800 +Subject: [PATCH] add check summary + +Signed-off-by: ExtinctFire +--- + 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 + diff --git a/nasm.spec b/nasm.spec index 471bce7..7f6448b 100644 --- a/nasm.spec +++ b/nasm.spec @@ -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 - 2.15.03-3 +- enable make check + * Thu Jan 07 2020 shixuantong - 2.15.03-2 - fix CVE-2019-20352 CVE-2020-24241 -- Gitee