dino: simplify checkPhase

This commit is contained in:
bezmuth 2022-08-15 13:37:55 +01:00
parent e9a27ca6f6
commit 3dc237306e

View file

@ -77,20 +77,11 @@ stdenv.mkDerivation rec {
doCheck = true;
checkPhase = ''
echo "================= Running built tests ================="
set -x
./xmpp-vala-test
TEST1=$?
./signal-protocol-vala-test
TEST2=$?
set +x
if [ $TEST1 != 0 ] || [ $TEST2 != 0 ]; then
echo "tests failed"
exit 1;
else
echo "tests succeeded"
fi
echo "================= /Running built tests ================="
runHook preCheck
set -e
./xmpp-vala-test
./signal-protocol-vala-test
runHook postCheck
'';
# Dino looks for plugins with a .so filename extension, even on macOS where