Skip to content

Commit

Permalink
tests: add Alpine Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Dec 30, 2024
1 parent 1f60953 commit 22bdc25
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ jobs:
env:
FORCE_COLOR: 1
PIP_DISABLE_PIP_VERSION_CHECK: 1
LOG_STDIO: '["debian-12", "fedora-41"]'

steps:
- name: Checkout
Expand Down Expand Up @@ -108,7 +107,7 @@ jobs:
--junitxml=junit.xml
--container ${{ matrix.service }}
--package ../*.shell-extension.zip
${{ !contains(fromJson(env.LOG_STDIO), matrix.service) && '--journald' || '' }}
${{ !contains(matrix.service, 'alpine') && '--journald' || '' }}
-n auto
-vv
working-directory: test
Expand Down
15 changes: 15 additions & 0 deletions test/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@
# Or 'tox -e images pull'.

services:
alpine-3.19:
image: ghcr.io/ddterm/gnome-shell-image/alpine-3.19:2024.12.29.0
profiles:
- esm

alpine-3.20:
image: ghcr.io/ddterm/gnome-shell-image/alpine-3.20:2024.12.29.0
profiles:
- esm

alpine-3.21:
image: ghcr.io/ddterm/gnome-shell-image/alpine-3.21:2024.12.29.0
profiles:
- esm

fedora-40:
image: ghcr.io/ddterm/gnome-shell-image/fedora-40:2024.12.29.0
profiles:
Expand Down
12 changes: 11 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,17 @@ def shutdown():
timeout=procutil.DEFAULT_TIMEOUT,
)

container_launcher.run('systemctl', 'is-system-running', '--wait')
container_launcher.run(
'gdbus',
'wait',
'--system',
f'--timeout={procutil.DEFAULT_TIMEOUT // 2}',
'org.freedesktop.login1',
timeout=procutil.DEFAULT_TIMEOUT,
)

# required for Alpine only
container_launcher.run('mkdir', '-p', '-m', '01777', '/tmp/.X11-unix')

yield cid

Expand Down
2 changes: 2 additions & 0 deletions test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def test_prefs_leak(

def test_dependencies(self, process_launcher):
process_launcher.run(
'gjs',
'-m',
str(SRC_DIR / 'ddterm' / 'app' / 'tools' / 'dependencies-update.js'),
'--dry-run',
timeout=60,
Expand Down

0 comments on commit 22bdc25

Please sign in to comment.