21 Commits

Author SHA1 Message Date
R1kaB3rN
a78ea7a12b
ulwgl_test: update test for PROTONPATH not set
- Remove the unnecessary statements and just simply assert the error in this case
2024-02-21 18:34:58 -08:00
R1kaB3rN
6469e62b46
ulwgl_test: update test for non-existent WINEPREFIX
- When the user sets a path to WINEPREFIX that doesn't exists, we should always create the directories and set the environment variable on their behalf.

- Related to 39b48b4c2c
2024-02-21 18:11:21 -08:00
Thomas Crider
429de35ee3
Merge pull request #36 from R1kaB3rN/username
Update tests for usernames with digits
2024-02-20 10:48:49 -07:00
R1kaB3rN
eea700e75b
ulwgl_test: account for usernames with digits 2024-02-20 07:34:17 -08:00
R1kaB3rN
4baebf2e17
Remove requirement for setting WINEPREFIX
- When $WINEPREFIX is not set, create a prefix directory in behalf of the user with the name being the ulwgl id. Currently, we create the directories as ~/Games/ULWGL/<ULWGL_ID>. In effect, the only required environment variable will be $GAMEID.
2024-02-19 17:51:38 -08:00
Thomas Crider
b034600a9d
Merge pull request #30 from R1kaB3rN/download
Add download functionality to ulwgl_run
2024-02-17 21:08:44 -07:00
R1kaB3rN
8f6d383c9f
ulwgl_test: add tests for when retrieving latest Proton release 2024-02-17 18:54:42 -08:00
R1kaB3rN
dfa8f975db
ulwgl_test: update test when interrupting cache extraction
- Removes assertions that check for state of variables when an error is raised and updates comments
2024-02-17 18:50:19 -08:00
R1kaB3rN
63fba6c892
ulwgl_test: add tests for cache 2024-02-17 17:35:16 -08:00
R1kaB3rN
15c483ed60
ulwgl_test: add tests for steam compat 2024-02-17 17:34:54 -08:00
R1kaB3rN
9a425dd784
ulwgl_test: update test when removing files
- Creates more test files within the compat/cache directories to verify that there wasn't any side effects after executing _cleanup
2024-02-17 15:13:23 -08:00
R1kaB3rN
ae6d5675d0
ulwgl_test: add test when removing files
- Arguably the most important test of this test suite as we do **not** want to remove files that isn't ours. We test both the positive and negative case. In the latter, the state of the cache or Steam compat should be left the same state as it was before executing the function when passed files that do not exist.
2024-02-17 15:02:45 -08:00
R1kaB3rN
3c0534edd2
ulwgl_test: add test when extracting files 2024-02-17 14:57:21 -08:00
R1kaB3rN
d457847920
ulwgl_test: update tests for new usage
- Update the check_env tests for new usage when PROTONPATH is not set by mocking the callout.
2024-02-16 12:12:00 -08:00
R1kaB3rN
f2ddf93d33
Add Github Action for ulwgl_*.py files (#26)
workflows: add Github Action for ulwgl_*.py files
2024-02-15 09:09:26 -08:00
R1kaB3rN
08f73c9fe1
ulwgl_test.py: add test for setup_prefix
- Test the case when the user runs the launcher again after moving the WINEPREFIX. An error should not be raised when creating a symbolic link.

- Related to https://github.com/Open-Wine-Components/ULWGL-launcher/issues/27
2024-02-13 22:07:40 -08:00
R1kaB3rN
14b323e3dc
Add ULWGL_ID to dict
- Also, update the test to check for expected environment variables in the dictionary. Notably, when a valid ULWGL_ID is set, the STEAM_COMPAT_ID and related env var should be the stripped ULWGL_ID.
2024-02-12 18:20:15 -08:00
R1kaB3rN
d5772c0eb3
ulwgl_test.py: update tests for set_env 2024-02-12 17:36:03 -08:00
R1kaB3rN
1dbcace209
ulwgl_test.py: add test for env usage
- Test that options and the game are distinct arguments when executing the script via the environment variable usage.
2024-02-12 17:34:39 -08:00
R1kaB3rN
6987fde6c3
Change parsing of arguments
- Before, the executable and its options were joined as a single string to be executed. Instead, prefer separating them as distinct arguments. As a result, the command as an Array becomes something like:

['/home/foo/.local/share/ULWGL/ULWGL', '--verb', 'waitforexitandrun', '--', '/home/foo/GE-Proton8-30/proton', 'waitforexitandrun', '/home/foo/foo.exe', '-foo', '-bar', '-baz']
2024-02-12 17:19:58 -08:00
R1kaB3rN
d6eb1c8484
Rename gamelauncher files 2024-02-12 00:12:29 -08:00