mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
Merge pull request #91675 from MetaDark/cxxtest
cxxtest: package includes and run tests
This commit is contained in:
commit
8eea6fcf0d
@ -1,10 +1,8 @@
|
||||
{ stdenv, fetchFromGitHub, python2Packages}:
|
||||
{ stdenv, buildPythonApplication, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
buildPythonApplication rec {
|
||||
pname = "cxxtest";
|
||||
version = "4.4";
|
||||
in python2Packages.buildPythonApplication {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CxxTest";
|
||||
@ -13,16 +11,26 @@ in python2Packages.buildPythonApplication {
|
||||
sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
|
||||
};
|
||||
|
||||
setSourceRoot = ''
|
||||
sourceRoot=$(echo */python)
|
||||
sourceRoot = "source/python";
|
||||
|
||||
postCheck = ''
|
||||
python scripts/cxxtestgen --error-printer -o build/GoodSuite.cpp ../test/GoodSuite.h
|
||||
$CXX -I.. -o build/GoodSuite build/GoodSuite.cpp
|
||||
build/GoodSuite
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out/include"
|
||||
cp -r ../cxxtest "$out/include"
|
||||
'';
|
||||
|
||||
dontWrapPythonPrograms = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://cxxtest.com";
|
||||
description = "Unit testing framework for C++";
|
||||
platforms = platforms.unix ;
|
||||
platforms = platforms.unix;
|
||||
license = licenses.lgpl3;
|
||||
maintainers = [ maintainers.juliendehos ];
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -12351,7 +12351,7 @@ in
|
||||
|
||||
cxx-prettyprint = callPackage ../development/libraries/cxx-prettyprint { };
|
||||
|
||||
cxxtest = callPackage ../development/libraries/cxxtest { };
|
||||
cxxtest = python2Packages.callPackage ../development/libraries/cxxtest { };
|
||||
|
||||
cypress = callPackage ../development/web/cypress { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user