From cb356c9f5905cb931af55c684ebc8abd25d8319b Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 03:37:37 +0100 Subject: [PATCH] Exercise release tool, completion, font and terminfo paths on Vinix --- PROFILES.md | 2 ++ tests/userland/paths.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 tests/userland/paths.sh diff --git a/PROFILES.md b/PROFILES.md index ae73e3f..fc9bd23 100644 --- a/PROFILES.md +++ b/PROFILES.md @@ -101,3 +101,5 @@ On both architectures the published X11 sidecar retains one matching GLU develop Both targets also passed a fresh signed install of musl, `vinix-accounts`, `vinix-filesystem` and `netbase`. Each root had 252 owned files and links and six target ELFs. Run `python3 tests/layout.py "$client/root"` after the installed-root audit to check the modes on shadow, root and the temporary directories, the runtime symlinks and the account and network defaults. The worker retains both runs in `foundation/layout-03` with receipt manifest SHA-256 `d5c1cba079ab9cb1f04f2de7f17ab9d270e9066fc2472ac486fd079fa1139a1e`. The next clean x86_64 install resolved 129 signed packages in ten dependency stages. The auditor counted 18,170 owned files and links and 334 target ELFs. BusyBox 1.38.0-5 owned the shell, and `vinix-desktop-init` owned a byte-identical copy of the published x86_64 PID 1. The X11 bitmap font hook populated the index during installation. Of 3,899 matching release observations, 1,608 had their expected owner at the published path, and 1,360 more had documented relocations. The remaining work includes the native GCC and Mesa stacks, vpac and guest checks. See `foundation/desktop-owners-04`, receipt SHA-256 `819fd43ec280e519dbfa41e1628a5822faedf7f5059c03fd4bdf3e8d6bc24e9b`. + +The x86_64 path fixture booted the published kernel with a 19-package signed root. It loaded Zsh's attribute, line-editor and completion modules, initialized completion, read the linux, alacritty and xterm-256color terminfo entries, found the indexed Misc Fixed bitmap font, and executed the target-prefixed GNU assembler and linker. The serial transcript is in `foundation/relocated-guest-x86-01`, receipt SHA-256 `c6b8615194003d7ee9490682127a0b2d477b35bac8d37282f97ac94e8bb4eeab`. A separate audit of the 129-package root ran the installed musl loader over all 158 dynamic executable paths on the x86_64 build worker. See `foundation/abi-desktop-129-01`, receipt SHA-256 `9b07bc02aa03c6c5a30411ec760865648f39297d6c270cd8f0e973165a37337b`. diff --git a/tests/userland/paths.sh b/tests/userland/paths.sh new file mode 100644 index 0000000..83f636e --- /dev/null +++ b/tests/userland/paths.sh @@ -0,0 +1,36 @@ +#!/bin/sh +set -eu +export PATH=/bin:/usr/bin:/sbin:/usr/sbin HOME=/tmp TERM=xterm-256color +phase=shell +finish() { + status=$? + if [ "$status" -ne 0 ]; then echo "VPAC package path check failed at $phase"; fi + /sbin/poweroff -f +} +trap finish EXIT +mkdir -p /tmp +cd /tmp +/bin/zsh -fc ' + zmodload zsh/attr && zmodload zsh/zle && zmodload zsh/complete || exit 1 + autoload -Uz compinit && compinit -i -D || exit 1 + (( $+functions[_main_complete] )) || exit 1 + print -r -- "Zsh $ZSH_VERSION loaded modules and completions" +' +phase=terminfo +for term in linux alacritty xterm-256color; do + infocmp "$term" >"/tmp/$term" + grep -q "$term" "/tmp/$term" +done +phase=fonts +font=/usr/share/fonts/X11/misc/10x20.pcf.gz +index=/usr/share/fonts/X11/misc/fonts.dir +grep -q '^10x20.pcf.gz ' "$index" +family=$(fc-scan --format '%{family}' "$font") +test -n "$family" +printf 'Packaged bitmap font family: %s\n' "$family" +phase=binutils +target=$(/bin/busybox uname -m)-linux-musl +"/usr/$target/bin/as" --version +"/usr/$target/bin/ld" --verbose >/tmp/linker-script +grep -q 'SECTIONS' /tmp/linker-script +echo 'VPAC FIXTURE GUEST PASS' -- 2.56.1