depot/third_party/nixpkgs/pkgs/development/coq-modules/itauto/test.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

27 lines
558 B
Nix

{ stdenv, lib, coq, itauto }:
let excluded =
lib.optionals (lib.versions.isEq "8.16" itauto.version) [ "arith.v" "refl_bool.v" ]
; in
stdenv.mkDerivation {
pname = "coq${coq.coq-version}-itauto-test";
inherit (itauto) src version;
nativeCheckInputs = [ coq itauto ];
dontConfigure = true;
dontBuild = true;
doCheck = true;
checkPhase = ''
cd test-suite
for m in *.v
do
echo -n ${lib.concatStringsSep " " excluded} | grep --silent $m && continue
echo $m && coqc $m
done
'';
installPhase = "touch $out";
}