mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
fix(desktop): address KDE feedback and keep local builds in sync with CI (#488)
This commit is contained in:
1 parent
c761b83112
commit
d99ed8e00b
41 files changed
+1252
-191
No files matched your search
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# Session helpers and ELF preload tests need Linux (/proc, inotify and glibc), as in CI.
|
||||
set -euo pipefail
|
||||
repo_root=$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
cd "$repo_root"
|
||||
if [[ $(uname -s) == Linux ]]; then
|
||||
exec python3 -m unittest discover -s tools/tests "$@"
|
||||
fi
|
||||
image=${DROIDDECK_BUILD_IMAGE:-droiddeck-local-cross:24.04-v3}
|
||||
python3 tools/docker_preflight.py "$image"
|
||||
exec docker run --rm --platform linux/amd64 --user "$(id -u):$(id -g)" \
|
||||
-v "$repo_root:/src:ro" -w /src "$image" python3 -m unittest discover -s tools/tests "$@"
|
||||
Reference in new issue
Block a user