surelog: run unit tests

This commit is contained in:
Matt Huszagh 2022-08-21 16:25:32 -07:00
parent 5d0452a9ae
commit 6626bf243c

View File

@ -34,6 +34,14 @@ stdenv.mkDerivation rec {
]))
];
doCheck = true;
checkPhase = ''
runHook preCheck
make -j $NIX_BUILD_CORES UnitTests
ctest --output-on-failure
runHook postCheck
'';
postInstall = ''
mv $out/lib/surelog/* $out/lib/
rm -rf $out/lib/surelog