warzone2100: add version test
This commit is contained in:
parent
b95b332c3d
commit
f7324ddff5
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue