syncthingtray: test --help in installCheckPhase
To spare the need to test this package every time @r-ryantm updates it,
make sure it passes this sanity test.
commitd8fc7deb694c8d024a387f3352283e14ea0a85e6
authorDoron Behar <doron.behar@gmail.com>
dateWed 13 May 2020, 13:54 (7 years ago)
parent74bf0fa
pkgs/applications/misc/syncthingtray/default.nix+6
@@ -39,6 +39,12 @@ mkDerivation rec {
3939
4040 nativeBuildInputs = [ cmake qttools ];
4141
42+ # No tests are available by upstream, but we test --help anyway
43+ doInstallCheck = true;
44+ installCheckPhase = ''
45+ $out/bin/syncthingtray --help | grep ${version}
46+ '';
47+
4248 cmakeFlags = [
4349 # See https://github.com/Martchus/syncthingtray/issues/42
4450 "-DQT_PLUGIN_DIR:STRING=${placeholder "out"}/lib/qt-5"