public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libavif] epel9-next: enable tests
@ 2026-07-20 16:37 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-07-20 16:37 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libavif
Branch : epel9-next
Commit : 0a18fc4c00f50bf9a077ffe5b4e12ff1051c7df0
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date   : 2023-03-18T00:06:34+01:00
Stats  : +9/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libavif/c/0a18fc4c00f50bf9a077ffe5b4e12ff1051c7df0?branch=epel9-next

Log:
enable tests

---
diff --git a/libavif.spec b/libavif.spec
index 2488285..16191ea 100644
--- a/libavif.spec
+++ b/libavif.spec
@@ -7,6 +7,7 @@
 %else
 %bcond_without rav1e
 %endif
+%bcond_without check
 
 Name:           libavif
 Version:        0.11.1
@@ -19,6 +20,7 @@ Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
 
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
+%{?with_check:BuildRequires:  gtest-devel}
 BuildRequires:  nasm
 %if %{with aom}
 BuildRequires:  pkgconfig(aom)
@@ -73,12 +75,18 @@ Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
     %{?with_rav1e:-DAVIF_CODEC_RAV1E=1} \
     %{?with_svt:-DAVIF_CODEC_SVT=1} \
     -DAVIF_BUILD_APPS=1 \
-    -DAVIF_BUILD_GDK_PIXBUF=1
+    -DAVIF_BUILD_GDK_PIXBUF=1 \
+    %{?with_check:-DAVIF_BUILD_TESTS=1 -DAVIF_ENABLE_GTEST=1}
 %cmake_build
 
 %install
 %cmake_install
 
+%if %{with check}
+%check
+%ctest
+%endif
+
 %files
 %license LICENSE
 # Do not glob the soname

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 16:37 [rpms/libavif] epel9-next: enable tests Dominik 'Rathann' Mierzejewski

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