mattermost-desktop: add a simple package test
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
fetchurl,
|
||||
electron,
|
||||
makeWrapper,
|
||||
testers,
|
||||
mattermost-desktop,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -61,6 +63,14 @@ stdenv.mkDerivation {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion {
|
||||
package = mattermost-desktop;
|
||||
# Invoking with `--version` insists on being able to write to a log file.
|
||||
command = "env HOME=/tmp ${mattermost-desktop.meta.mainProgram} --version";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mattermost Desktop client";
|
||||
mainProgram = "mattermost-desktop";
|
||||
|
||||
Reference in New Issue
Block a user