diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2021-12-24 15:54:42 +0100 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2021-12-24 15:54:42 +0100 |
commit | f7324ddff59ebfd2110f31dfaf6a30506a73fea6 (patch) | |
tree | 7303c4cba5438a6b3a3011421ab0eaa333055e5a /pkgs/games/warzone2100 | |
parent | b95b332c3d3a4a217b921aa9a04d79a9fa9fe471 (diff) |
warzone2100: add version test
Diffstat (limited to 'pkgs/games/warzone2100')
-rw-r--r-- | pkgs/games/warzone2100/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/games/warzone2100/default.nix b/pkgs/games/warzone2100/default.nix index 90edaa64b4fa5..e5656e50de3c6 100644 --- a/pkgs/games/warzone2100/default.nix +++ b/pkgs/games/warzone2100/default.nix @@ -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 = '' |