mirror of
https://github.com/theupriser/steamify-cachyos-dev.git
synced 2026-10-05 12:45:56 +02:00
test: unit tests of steam-shortcuts.py and steamify-notifier.py
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ss5gKj7XG5JPi27XwGBGTs
This commit is contained in:
1 parent
8ef8fa3ba2
commit
d041d452ca
2 files changed
+173
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Unit tests of the Python helpers in steamify-cachyos/patches (steam-shortcuts.py,
|
||||
# steamify-notifier.py). No root, VM or hardware needed: bash tests/python-test.sh
|
||||
# The Steamify checkout (REPO, default: the steamify-cachyos next to this repo)
|
||||
REPO="${REPO:-$(cd "$(dirname "$0")/../../steamify-cachyos" && pwd)}"
|
||||
export REPO
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
if python3 -B -m unittest tests/patches_test.py 2>&1 | tail -n 25 | tee /dev/stderr | grep -q '^OK'; then
|
||||
echo "ok Python helpers"
|
||||
else
|
||||
echo "FAIL Python helpers"; exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user