From 50c1ca85002e39bcf6ab2a99bbe3456e9b5d0b97 Mon Sep 17 00:00:00 2001 From: Carl George Date: Sep 01 2021 18:58:57 +0000 Subject: Disable test suite --- diff --git a/SPECS/ruby.spec b/SPECS/ruby.spec index 301e474..632304f 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} @@ -775,6 +777,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} | \ @@ -866,6 +869,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