CMake has builtin support for running code tests. These tests should be ported over to the CTest.
Not all platforms have checksec. However hardening-check works just as well on those platforms.
A fix should:
- determine if
checksec or hardening-check are available
- run that check against the binaries
- copy the other checks from
%check in the RPM Spec file
- use the existing
make tests target generated by CMake