3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.fiat-p256: fix tests with alcotest 1.4.0

This commit is contained in:
Vincent Laporte 2021-07-06 21:50:57 +02:00 committed by Vincent Laporte
parent 11c24ba9b3
commit 2d1f4d4dab

View file

@ -12,6 +12,12 @@ buildDunePackage rec {
sha256 = "0086h9qkvnqfm8acrxqbki54z619nj73x7f0d01v5vg2naznx7w9";
};
# Make tests compatible with alcotest 1.4.0
postPatch = ''
substituteInPlace test/wycheproof/test.ml --replace \
'Printf.ksprintf Alcotest.fail' 'Printf.ksprintf (fun s -> Alcotest.fail s)'
'';
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ bigarray-compat cstruct eqaf hex ];
checkInputs = [ alcotest asn1-combinators benchmark