warzone2100: add version test

This commit is contained in:
Francesco Gazzetta 2021-12-24 15:54:42 +01:00
parent b95b332c3d
commit f7324ddff5

View File

@ -26,6 +26,9 @@
, vulkan-loader
, shaderc
, testVersion
, warzone2100
, withVideos ? false
}:
@ -100,6 +103,14 @@ stdenv.mkDerivation rec {
cp ${sequences_src} $out/share/warzone2100/sequences.wz
'';
passthru.tests = {
version = testVersion {
package = warzone2100;
# The command always exits with code 1
command = "(warzone2100 --version || [ $? -eq 1 ])";
};
};
meta = with lib; {
description = "A free RTS game, originally developed by Pumpkin Studios";
longDescription = ''