sta: enable tests

This commit is contained in:
Winter
2025-05-11 21:37:55 -04:00
parent fa417a2bc0
commit c4f6f75afc
+19
View File
@@ -3,6 +3,7 @@
lib,
fetchFromGitHub,
autoreconfHook,
cxxtest,
}:
stdenv.mkDerivation {
@@ -18,6 +19,24 @@ stdenv.mkDerivation {
nativeBuildInputs = [ autoreconfHook ];
doCheck = true;
nativeCheckInputs = [ cxxtest ];
checkInputs = [ cxxtest ];
checkPhase = ''
runHook preCheck
pushd test
cxxtestgen --error-printer --have-std -o tests.cpp sta_test_1.h sta_test_2.h
${stdenv.cc.targetPrefix}c++ -o tester tests.cpp
./tester
popd
runHook postCheck
'';
meta = with lib; {
description = "Simple statistics from the command line interface (CLI), fast";
longDescription = ''