From ab8898cd55ec04a062464d038399a48a13238bc1 Mon Sep 17 00:00:00 2001 From: ExtinctFire Date: Sat, 27 Nov 2021 11:14:44 +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 3de8ee2..a757218 100644 --- a/nasm.spec +++ b/nasm.spec @@ -8,13 +8,14 @@ Name: nasm Version: 2.15.05 -Release: 1 +Release: 2 Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax License: BSD URL: http://www.nasm.us Source0: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.bz2 Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}-xdoc.tar.bz2 +Patch6000: enable-make-check.patch #https://bugzilla.nasm.us/attachment.cgi?id=411648 BuildRequires: perl(Env) autoconf asciidoc xmlto gcc make git @@ -59,6 +60,10 @@ make all %{?_smp_mflags} %install %make_install install_rdf +%check +make golden +make test + %files %doc CHANGES README.md %license AUTHORS @@ -84,6 +89,9 @@ make all %{?_smp_mflags} %{_mandir}/man1/ld* %changelog +* Sat Nov 27 2021 ExtinctFire - 2.15.05-2 +- enable make check + * Thu Jan 28 2021 liudabo - 2.15.05-1 - upgrade version to 2.15.05 -- Gitee