sta: enable tests
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user