Test the Nix package version

This commit is contained in:
Jean-Paul Calderone 2021-05-12 09:56:57 -04:00
parent a7153baff2
commit fb994d3200

View File

@ -114,6 +114,13 @@ EOF
];
checkPhase = ''
if ! $out/bin/tahoe --version | grep --fixed-strings "${version}"; then
echo "Package version:"
$out/bin/tahoe --version
echo "Did not contain expected:"
echo "${version}"
exit 1
fi
${python}/bin/python -m twisted.trial -j $NIX_BUILD_CORES allmydata
'';
}