]> git.ekhem.eu.org Git - guix.git/commit
[test] Add a PC VM test and share the VM test harness. main
authorJakub Czajka <jakub@ekhem.eu.org>
Tue, 24 Nov 2026 23:21:43 +0000 (23:21 +0000)
committerJakub Czajka <jakub@ekhem.eu.org>
Thu, 26 Nov 2026 13:15:15 +0000 (13:15 +0000)
commit3bcbd419c787cf8f0ee4e41e0433f4813b9bfb43
tree003a25523f3058f4cdd605708692e90fd8d46354
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 logs in through GDM's greeter, runs the home activation as
the X session, and then execs Guix's xinitrc, so dwm and the home services
start through the real login path; one test case checks the login screen,
dwm ownership, and the paseo-daemon, status-bar, and xcompmgr services.
The test user gets a known password so GDM can authenticate it.

The harness now wraps every OS in marionette-operating-system, runs the
prelude before the tests, and aborts when it fails; it uses the qemu64 CPU
model so the tests also run without KVM.  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]