Run tests during package build

Resolves: RHEL-71382
This commit is contained in:
Ondrej Holy 2024-12-12 13:18:21 +01:00
parent 3700514507
commit 11a5eb84f1

View File

@ -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