Files
nixpkgs/pkgs/development/coq-modules/wasmcert/test.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
492 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
stdenv,
coq,
wasmcert,
}:
stdenv.mkDerivation {
pname = "wasmcert-interpreter-test";
inherit (wasmcert) src version;
nativeCheckInputs = [
wasmcert
coq
];
dontConfigure = true;
dontBuild = true;
doCheck = true;
checkPhase = ''
coqc .ci/import_test.v
wasm_coq_interpreter tests/add.wasm -r main
if [ $? -ne 0 ]; then
echo "Wasm_coq_interpreter failed to run hello world program"
exit 1
fi
'';
installPhase = "touch $out";
}