enable make check

Signed-off-by: ExtinctFire <shenyining_00@126.com>
This commit is contained in:
ExtinctFire 2021-11-27 10:18:14 +08:00
parent 8f1a6a125b
commit 64ab4976f1
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,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 <shenyining_00@126.com> - 2.15.05-2
- enable make check
* Thu Jan 28 2021 liudabo <liudabo1@huawei.com> - 2.15.05-1
- upgrade version to 2.15.05