Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ccache for openSUSE:Factory checked 
in at 2024-10-11 17:01:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ccache (Old)
 and      /work/SRC/openSUSE:Factory/.ccache.new.19354 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ccache"

Fri Oct 11 17:01:23 2024 rev:82 rq:1206645 version:4.10.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/ccache/ccache.changes    2024-10-09 
22:03:43.231121086 +0200
+++ /work/SRC/openSUSE:Factory/.ccache.new.19354/ccache.changes 2024-10-11 
17:01:33.520772655 +0200
@@ -1,0 +2,5 @@
+Thu Oct 10 07:38:46 UTC 2024 - Guillaume GARDET <[email protected]>
+
+- Really run tests and Unit tests in %check
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ccache.spec ++++++
--- /var/tmp/diff_new_pack.WsmBq6/_old  2024-10-11 17:01:34.000792621 +0200
+++ /var/tmp/diff_new_pack.WsmBq6/_new  2024-10-11 17:01:34.004792787 +0200
@@ -22,6 +22,12 @@
 %else
 %bcond_with hiredis
 %endif
+# Run tests only on TW
+%if %{?suse_version} > 1600
+%bcond_without test
+%else
+%bcond_with test
+%endif
 Name:           ccache
 Version:        4.10.2
 Release:        0
@@ -33,9 +39,6 @@
 Source2:        %{name}.keyring
 BuildRequires:  cmake
 BuildRequires:  fmt-devel
-%if %{?suse_version} > 1600
-BuildRequires:  doctest-devel
-%endif
 %if %{?suse_version} > 1500
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
@@ -51,11 +54,12 @@
 BuildRequires:  pkgconfig(libzstd) >= 1.1.2
 BuildRequires:  rubygem(asciidoctor)
 Provides:       distcc:%{_bindir}/ccache
-%ifnarch %{ix86} %{arm}
-%endif
 %if %{with hiredis}
 BuildRequires:  pkgconfig(hiredis) >= 0.13.3
 %endif
+%if %{with test}
+BuildRequires:  doctest-devel
+%endif
 
 %description
 ccache is a compiler cache. It speeds up recompilation by caching the
@@ -72,7 +76,7 @@
 %endif
 %cmake \
   -DFETCHCONTENT_FULLY_DISCONNECTED=ON \
-%if 0%{?suse_version} && 0%{?suse_version} < 1600
+%if %{without test}
   -DENABLE_TESTING=OFF \
 %endif
 %if !%{with hiredis}
@@ -102,8 +106,14 @@
 ln -sf ../../bin/%{name} nvcc
 
 %check
-# running the test with multiple threads will make tests fail
-%{__ctest} --output-on-failure --force-new-ctest-process -j1
+%if %{with test}
+for dir in build/test build/unittest; do
+  pushd $dir
+  # running the test with multiple threads will make tests fail
+  %{__ctest} --output-on-failure --force-new-ctest-process -j1
+  popd
+done
+%endif
 
 %files
 %license LICENSE.* GPL-3.0.txt

Reply via email to