Skip to content

Commit 28d75e8

Browse files
committed
umu-launcher-unwrapped: add a check phase
1 parent 30d987a commit 28d75e8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pkgs/by-name/um/umu-launcher-unwrapped/package.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
python3Packages,
88
rustPlatform,
99
scdoc,
10+
writableTmpDirAsHomeHook,
1011
withTruststore ? true,
1112
withDeltaUpdates ? true,
1213
}:
@@ -26,6 +27,11 @@ python3Packages.buildPythonPackage rec {
2627
hash = "sha256-nU4xZn9NPd7NgexiaNYLdo4BCbH98duZ07XYeUiceP0=";
2728
};
2829

30+
nativeCheckInputs = [
31+
writableTmpDirAsHomeHook
32+
python3Packages.pytestCheckHook
33+
];
34+
2935
nativeBuildInputs = [
3036
cargo
3137
hatch
@@ -66,6 +72,17 @@ python3Packages.buildPythonPackage rec {
6672
"SHELL_INTERPRETER=${lib.getExe bash}"
6773
];
6874

75+
disabledTests = [
76+
# Broken? Asserts that $STEAM_RUNTIME_LIBRARY_PATH is non-empty
77+
# Fails with AssertionError: '' is not true : Expected two elements in STEAM_RUNTIME_LIBRARY_PATHS
78+
"test_game_drive_empty"
79+
"test_game_drive_libpath_empty"
80+
81+
# Broken? Tests parse_args with no options (./umu_run.py)
82+
# Fails with AssertionError: SystemExit not raised
83+
"test_parse_args_noopts"
84+
];
85+
6986
meta = {
7087
description = "Unified launcher for Windows games on Linux using the Steam Linux Runtime and Tools";
7188
changelog = "https://github.com/Open-Wine-Components/umu-launcher/releases/tag/${version}";

0 commit comments

Comments
 (0)