Skip to content

Commit

Permalink
[RPM] Add %check stage to run unit tests during build
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Mar 20, 2023
1 parent bf26957 commit 2a51470
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packaging/rhel/xrootd.spec.in
Expand Up @@ -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
#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 2a51470

Please sign in to comment.