- Run tests in parallel

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/bison?expand=0&rev=106
This commit is contained in:
Martin Pluskal
2021-02-09 09:30:02 +00:00
committed by Git OBS Bridge
parent 64ae93eb54
commit c9e1877fb3
2 changed files with 7 additions and 4 deletions

View File

@@ -50,8 +50,7 @@ Bison is a parser generator similar to yacc(1).
gl_cv_func_printf_infinite_long_double=yes
%if 0%{?do_profiling}
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
# non-parallel profiling for reproducible results https://bugzilla.opensuse.org/show_bug.cgi?id=1040589
%make_build --jobs=1 CFLAGS="%{optflags}" check
%make_build CFLAGS="%{optflags}" check
%make_build clean
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else
@@ -59,8 +58,7 @@ Bison is a parser generator similar to yacc(1).
%endif
%check
# Tests dont work reliably in parallel
%make_build --jobs=1 check
%make_build check
%install
%make_install