public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocrand] rawhide: bring check back
@ 2026-07-07 16:26 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-07-07 16:26 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rocrand
            Branch : rawhide
            Commit : 0882e0e7f22092b05d3f329cfc007d7902b0db27
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-07-07T09:25:30-07:00
            Stats  : +14/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocrand/c/0882e0e7f22092b05d3f329cfc007d7902b0db27?branch=rawhide

            Log:
            bring check back

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/rocrand.spec b/rocrand.spec
index 241d81b..6bdda4a 100644
--- a/rocrand.spec
+++ b/rocrand.spec
@@ -67,9 +67,10 @@
 
 # flags for testing, neither should be enabled for official builds in koji
 # relevant HW is required to run %check
+%bcond_with check
 %bcond_with test
 # enable building of tests if test is enabled
-%if %{with test}
+%if %{with test} || %{with check}
 %global build_test ON
 %else
 %global build_test OFF
@@ -129,7 +130,7 @@ Version:        %{rocm_version}
 %if %{with preview}
 Release:        0%{?dist}
 %else
-Release:        5%{?dist}
+Release:        6%{?dist}
 %endif
 Summary:        ROCm random number generator
 
@@ -224,6 +225,8 @@ The rocRAND development package.
 %package test
 Summary:        Tests for %{name}
 Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
+Requires:       python3dist(pyyaml)
+Requires:       rocminfo
 
 %description test
 %{summary}
@@ -247,6 +250,12 @@ rm -rf test/fortran/fruit
 
 %cmake_build
 
+%if %{with check}
+%check
+export LD_LIBRARY_PATH=${PWD}/%{_vpath_builddir}/lib:$LD_LIBRARY_PATH
+%ctest -j1 --output-on-failure
+%endif
+
 %install
 %cmake_install
 
@@ -278,6 +287,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/rocrand/LICENSE.md
 %endif
 
 %changelog
+* Tue Jul 7 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-6
+- bring check back
+
 * Tue Jun 2 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-5
 - merge compat changes
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-07 16:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 16:26 [rpms/rocrand] rawhide: bring check back Tom Rix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox