diff options
author | bezmuth <benkel97@protonmail.com> | 2022-08-05 04:03:24 +0100 |
---|---|---|
committer | bezmuth <benkel97@protonmail.com> | 2022-08-05 04:03:24 +0100 |
commit | 2bc2b175600b6e153b8185e7677caec6135cb066 (patch) | |
tree | e4da4ba77d533c8608719e454ce94c07e85406fc /pkgs/applications/networking/instant-messengers/dino | |
parent | e0c9afb6e852466109609947ca76e3ed9f911b9a (diff) |
dino: add tests
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/dino')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/dino/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/dino/default.nix b/pkgs/applications/networking/instant-messengers/dino/default.nix index fff08699fa82..6db81e442976 100644 --- a/pkgs/applications/networking/instant-messengers/dino/default.nix +++ b/pkgs/applications/networking/instant-messengers/dino/default.nix @@ -73,6 +73,26 @@ stdenv.mkDerivation rec { libxkbcommon ]; + cmakeFlags = ["-DBUILD_TESTS=yes"]; + + 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 =================" + ''; + # Dino looks for plugins with a .so filename extension, even on macOS where # .dylib is appropriate, and despite the fact that it builds said plugins with # that as their filename extension |