From 11a5eb84f1142f62c486d01f2b31ea47a0375964 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Thu, 12 Dec 2024 13:18:21 +0100 Subject: [PATCH] Run tests during package build Resolves: RHEL-71382 --- freerdp.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freerdp.spec b/freerdp.spec index 9ff8b88..b32bd26 100644 --- a/freerdp.spec +++ b/freerdp.spec @@ -178,7 +178,8 @@ find . -name "*.h" -exec chmod 664 {} \; find . -name "*.c" -exec chmod 664 {} \; %build -%cmake %{?_cmake_skip_rpath} \ +%cmake \ + -DBUILD_TESTING=ON \ -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ -DWITH_ALSA=ON \ -DWITH_AAD=ON \ @@ -255,6 +256,9 @@ find . -name "*.c" -exec chmod 664 {} \; %cmake_build +%check +%cmake_build --target test + %install %cmake_install