Exercise AArch64 OpenSSH with a resolvable build-test UID
@@ -99,6 +99,8 @@ Source plans record the recipe directory for each output package. The queue invo
9999
100100The published x86_64 Vinix kernel booted 32 signed network packages. It refreshed the trust store with a local CA, established loopback HTTPS, rejected the wrong hostname, committed and read a Git file, signed and verified that file with the installed SSH tools, then installed and queried a local XBPS package. The fixture and logs are `tests/userland/network.sh` and `foundation/network-guest-03`, receipt SHA-256 `4e9afac33947b999911a4ff35f218b49f3356b345e47e7b90e7ffce644d0c7b4`.
101101
102+OpenSSH 9.9p2-1 passed its AArch64 recipe checks in QEMU user mode with six packages in the signed SDK. The recipe wraps the emulated commands in fakeroot so the musl process can resolve its test UID in the worker's passwd file. The check lists ciphers, generates and fingerprints an Ed25519 key, and signs a file. The archive and ELF page report are in `arm/abi16/openssh-recheck-01`, receipt SHA-256 `227a4e471322b1c5ada06ed342145bb05b08020e371ab293fb4194500ff97918`. The network guest remains the installed-system check.
103+
102104An eight-package x86_64 guest tested the BusyBox wget applet and its separately packaged TLS helper. It rejected an unknown certificate, retrieved the expected bytes after installing the local CA, and rejected the same certificate for a different hostname. The guest fixture is `tests/userland/wget.sh`. The worker keeps the install, audit and serial hashes in `foundation/wget-guest-x86_64-01/receipts.sha256`, SHA-256 `5872d1467ee2594b9305bed5fa1ceb084c8c3fde4ebccb0539db25d02b3849f9`.
103105
104106For package roots too large for a test initramfs, use `python3 tests/disk-root.py "$arch" "$root" "$fixture" "$iso" "$boot" "$output"` on the worker. The root must supply BusyBox init, and the fixture prints `VPAC FIXTURE GUEST PASS` after its checks. The helper creates a fresh ext2 image file from a private copy and runs QEMU in snapshot mode. The x86_64 release kernel read the matching disk identity and relocated all 109 dynamic executable paths from a 106-package root with 512 MiB of guest RAM. The test retains its ext2 and serial hashes under `foundation/disk-exec-x86-02/test`, receipt SHA-256 `6f600855744d04fa71d916f545e746ed36ba2686a56937c2b4c3cb02e3ec6a58`.
@@ -23,11 +23,17 @@ defpkgbuild(openssh-client,
2323 run("make", "ssh", "scp", "sftp", "ssh-keygen", "ssh-agent", "ssh-add", "ssh-keyscan", "ssh-pkcs11-helper")
2424 },
2525 #:check, fn() {
26- run("vinix-run", "./ssh", "-V")
27- run("vinix-run", "./ssh", "-Q", "cipher")
28- run("vinix-run", "./ssh-keygen", "-q", "-t", "ed25519", "-N", "", "-f", "test-key")
29- run("vinix-run", "./ssh-keygen", "-lf", "test-key.pub")
30- run("vinix-run", "./ssh-keygen", "-Y", "sign", "-f", "test-key", "-n", "vinix", "openssh-9.9p2/LICENCE")
26+ target := get-environment-variable("VPAC_TARGET_ARCH")
27+ arm := if string?(target) { string=?("aarch64", target) } else { false }
28+ ; The emulated musl process resolves its UID through /etc/passwd, which
29+ ; lacks the build worker's systemd-managed account. Give the check an
30+ ; existing account without changing the package or the worker's users.
31+ runner := if arm { list("fakeroot", "--", "vinix-run") } else { list("vinix-run") }
32+ apply(run, append(runner, list("./ssh", "-V")))
33+ apply(run, append(runner, list("./ssh", "-Q", "cipher")))
34+ apply(run, append(runner, list("./ssh-keygen", "-q", "-t", "ed25519", "-N", "", "-f", "test-key")))
35+ apply(run, append(runner, list("./ssh-keygen", "-lf", "test-key.pub")))
36+ apply(run, append(runner, list("./ssh-keygen", "-Y", "sign", "-f", "test-key", "-n", "vinix", "openssh-9.9p2/LICENCE")))
3137 run("test", "-s", "openssh-9.9p2/LICENCE.sig")
3238 },
3339 #:package, fn() {