]> git.ekhem.eu.org Git - guix.git/commit
[test] Add a PC VM test and share the VM test harness. vps
authorJakub Czajka <jakub@ekhem.eu.org>
Tue, 24 Nov 2026 23:21:43 +0000 (23:21 +0000)
committerJakub Czajka <jakub@ekhem.eu.org>
Wed, 25 Nov 2026 18:03:59 +0000 (18:03 +0000)
commita90bccf9125f47d1c3f52172098c212593362cf6
treebf06fe254efcdd4280309f49632e0d26c469fadd
parent28e44ca74a5e6183b421a64f469971c6f0575533
[test] Add a PC VM test and share the VM test harness.

Turn home.scm and system.scm into importable modules exporting
pc-home-environment and pc-operating-system, then split the tests into
tests/base.scm for the marionette harness, tests/home.scm for the shared
home activation prelude and checks, and tests/{pc,vps}/ for the suites.

The PC suite lets GDM auto-login run the home activation as its X
session and then exec Guix's xinitrc, so dwm and the home services start
through the real login path; one test case checks that dwm runs as the
test user and that paseo-daemon, status-bar, and xcompmgr are running.

The harness now wraps every OS in marionette-operating-system, runs the
prelude before the tests, and aborts when it fails.  The VPS suite keeps
the sshd, daemon, and claude-proxy checks and uses assert-vm-true for the
guest-side assertions.  Move the claude-proxy live test and fake upstream
under tests/vps, add a test-pc Makefile target, and let 20-env.sh keep
GDM's DISPLAY instead of always forcing :1.

Co-Authored-By: Claude <noreply@anthropic.com>
21 files changed:
Makefile
bash/.config/profile.d/20-env.sh
home.scm
system.scm
tests/base.scm
tests/claude-proxy-live.sh [deleted file]
tests/claude-proxy-test-cert.pem [deleted file]
tests/claude-proxy-test-key.pem [deleted file]
tests/fake-llm.scm [deleted file]
tests/home.scm [new file with mode: 0644]
tests/pc/base.scm [new file with mode: 0644]
tests/pc/home.scm [new file with mode: 0644]
tests/vps-home.scm [deleted file]
tests/vps-system.scm [deleted file]
tests/vps/base.scm [new file with mode: 0644]
tests/vps/claude-proxy-live.sh [new file with mode: 0755]
tests/vps/claude-proxy-test-cert.pem [new file with mode: 0644]
tests/vps/claude-proxy-test-key.pem [new file with mode: 0644]
tests/vps/fake-llm.scm [new file with mode: 0644]
tests/vps/home.scm [new file with mode: 0644]
tests/vps/system.scm [new file with mode: 0644]