public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/miopen] rawhide: Testing is broken on preview
Date: Wed, 02 Sep 2026 14:33:50 GMT [thread overview]
Message-ID: <178835963070.1.15550301797952266626.rpms-miopen-a3a9b62e5185@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/miopen
Branch : rawhide
Commit : a3a9b62e51854a3f1de027043166bd462f67b671
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-09-02T07:33:18-07:00
Stats : +10/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/miopen/c/a3a9b62e51854a3f1de027043166bd462f67b671?branch=rawhide
Log:
Testing is broken on preview
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/miopen.spec b/miopen.spec
index 122812f..96ae982 100644
--- a/miopen.spec
+++ b/miopen.spec
@@ -73,7 +73,10 @@
# For testing
# hardcoded use of gtest and dirs is not suitable for mock building
# Testsuite is not in great shape, fails instead of skips ck tests
+%if %{without preview}
+# testing broken in preview
%bcond_with test
+%endif
%if %{with test}
%global build_test ON
%else
@@ -115,7 +118,7 @@ Version: %{rocm_version}
%if %{with preview}
Release: 0%{?dist}
%else
-Release: 1%{?dist}
+Release: 2%{?dist}
%endif
Summary: AMD's Machine Intelligence Library
License: MIT AND BSD-2-Clause AND Apache-2.0 AND %{?fedora:LicenseRef-Fedora-Public-Domain}%{?suse_version:SUSE-Public-Domain}
@@ -130,7 +133,6 @@ License: MIT AND BSD-2-Clause AND Apache-2.0 AND %{?fedora:LicenseRef-Fed
# src/md5.cpp
URL: https://github.com/ROCm/rocm-libraries
Source0: %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
-
# New source needed for testing
# Request a real ctest project here
# https://github.com/ROCm/rocm-libraries/issues/6500
@@ -246,6 +248,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%prep
%autosetup -p1 -n %{upstreamname}
tar xf %{SOURCE1}
+
+%if %{with preview}
+sed -i -e 's@set(MIOPEN_TEST_CATEGORIES_CMAKE ${ROCM_LIBRARIES_ROOT}/shared/ctest/TestCategories.cmake)@set(MIOPEN_TEST_CATEGORIES_CMAKE ${CMAKE_CURRENT_SOURCE_DIR}/../../ctest/TestCategories.cmake)@' test/gtest/CMakeLists.txt
+
+%endif
+
sed -i -e 's@include(${ROCM_LIBRARIES_ROOT}/shared/ctest/TestCategories.cmake)@include(${CMAKE_CURRENT_SOURCE_DIR}/../../ctest/TestCategories.cmake)@' test/gtest/CMakeLists.txt
# problem with trying to use ck for tests even when disabled
reply other threads:[~2026-09-02 14:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178835963070.1.15550301797952266626.rpms-miopen-a3a9b62e5185@fedoraproject.org \
--to=tom.rix@amd.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox