ocamlPackages.uucp: enable tests
This commit is contained in:
parent
4931abed9e
commit
35fbdb657f
@ -1,10 +1,11 @@
|
|||||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, uunf }:
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, uunf, uucd }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "uucp";
|
pname = "uucp";
|
||||||
version = "13.0.0";
|
version = "13.0.0";
|
||||||
webpage = "https://erratique.ch/software/${pname}";
|
webpage = "https://erratique.ch/software/${pname}";
|
||||||
minimumOCamlVersion = "4.03";
|
minimumOCamlVersion = "4.03";
|
||||||
|
doCheck = true;
|
||||||
in
|
in
|
||||||
|
|
||||||
assert lib.assertMsg (lib.versionAtLeast ocaml.version minimumOCamlVersion)
|
assert lib.assertMsg (lib.versionAtLeast ocaml.version minimumOCamlVersion)
|
||||||
@ -23,10 +24,22 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ uchar ];
|
propagatedBuildInputs = [ uchar ];
|
||||||
|
|
||||||
buildPhase = "${topkg.buildPhase} --with-cmdliner false";
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
${topkg.buildPhase} --with-cmdliner false --tests ${lib.boolToString doCheck}
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
inherit (topkg) installPhase;
|
inherit (topkg) installPhase;
|
||||||
|
|
||||||
|
inherit doCheck;
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
${topkg.run} test
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
checkInputs = [ uucd ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
|
description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
|
||||||
homepage = webpage;
|
homepage = webpage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user