From 2a5147074e02783f665e23f7b969051f879a54df Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Tue, 14 Mar 2023 15:35:10 +0100 Subject: [PATCH] [RPM] Add %check stage to run unit tests during build --- packaging/rhel/xrootd.spec.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packaging/rhel/xrootd.spec.in b/packaging/rhel/xrootd.spec.in index 7843654d51c..3ddc5b01fe4 100644 --- a/packaging/rhel/xrootd.spec.in +++ b/packaging/rhel/xrootd.spec.in @@ -582,6 +582,14 @@ pushd build/bindings/python %endif popd +%check +cd xrootd/build +%if %{use_cmake3} +ctest3 --output-on-failure +%else +ctest --output-on-failure +%endif + #------------------------------------------------------------------------------- # Installation #-------------------------------------------------------------------------------