From 03019687b7969eafb3ba34851fc5192b0b958e5f Mon Sep 17 00:00:00 2001 From: Carl George Date: Nov 09 2021 20:57:02 +0000 Subject: Disable test suite --- diff --git a/SPECS/ruby.spec b/SPECS/ruby.spec index 65a13e7..e338770 100644 --- a/SPECS/ruby.spec +++ b/SPECS/ruby.spec @@ -80,6 +80,8 @@ %bcond_without hardening_test %endif +%bcond_with tests + # LTO appears to cause some issue to SEGV handler. # https://bugs.ruby-lang.org/issues/17052 %define _lto_cflags %{nil} @@ -781,6 +783,7 @@ sed -i 's/^/%lang(ja) /' .ruby-doc.ja rm -rf %{buildroot}%{gem_dir}/gems/rake-%{rake_version}/.github %check +%if %{with tests} %if 0%{?with_hardening_test} # Check Ruby hardening. checksec --file=libruby.so.%{ruby_version} | \ @@ -872,6 +875,8 @@ MSPECOPTS="" %{?test_timeout_scale:RUBY_TEST_TIMEOUT_SCALE="%{test_timeout_scale}"} \ make check TESTS="-v $DISABLE_TESTS" MSPECOPT="-fs $MSPECOPTS" +%endif + %files %license BSDL %license COPYING