From f64848dc841ac569e6cfecf05969ce9d986d2ed6 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 22:01:48 +0100 Subject: [PATCH] Exercise release X11 tarballs with the guest BusyBox --- PROFILES.md | 2 +- tests/x11/README.md | 2 ++ tests/x11/graphics.sh | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/PROFILES.md b/PROFILES.md index d35bb62..6b78ea9 100644 --- a/PROFILES.md +++ b/PROFILES.md @@ -184,4 +184,4 @@ To survey the whole release initramfs, pass `--system-providers providers.tsv` t With `--dependencies needed.tsv` the same command records each ELF's library dependencies. Across both images and their X11 bundles, only `/sbin/apk` links to `libapk.so.2.14.0`. The native desktop still uses apk through two other interfaces. The first-run selector invokes `/sbin/apk search --exact`, and System Information reads `/lib/apk/db/installed`. Both images also ship a 49,083-byte `/usr/bin/pkg` shell frontend that runs apk transactions. The cutover needs a vpac repository query for the selector, vpac records for System Information, and a working native backend for the published `pkg` commands. Test all three interfaces in the guest alongside first-boot registration. See `foundation/release-dependency-edges-01` and `foundation/release-pkg-callers-01`, receipt manifests `b003d96cba8b6d0a6ca4461865241b2815657b309f1fac8844cdd5f0806b67c2` and `6ec3399d9c79ceb33cd4099c9fad7d22d270f04595227fb1ba472bb80cbead49`. -`vinix-pkg` owns `/usr/bin/pkg` in the vpac-installed desktop root. Its `search --exact` command returns the matching package name or empty output when the signed index has no exact match. It translates `x11` into the `vinix-release-x11` metapackage. The first-run selector and System Information still need to use the new package interfaces in the Vinix source tree. +`vinix-pkg` owns `/usr/bin/pkg` in the vpac-installed desktop root. Its `search --exact` command returns the matching package name or empty output when the signed index has no exact match. It translates `x11` into the `vinix-release-x11` metapackage. The candidate desktop's first-run helper uses the `pkg` command, and System Information reads installed vpac records. diff --git a/tests/x11/README.md b/tests/x11/README.md index 7db65f7..3191990 100644 --- a/tests/x11/README.md +++ b/tests/x11/README.md @@ -83,6 +83,8 @@ python3 tools/bundle-x11.py "$arch" "$desktop_client" "$x11_client" "$auditor" " The tool audits both clients and checks the package versions, modes, link targets and bytes shared with the desktop. It writes the new paths to a root-owned archive under the published name `vinix-x11-amd64.tar.gz` or `vinix-x11-arm64.tar.gz`, with a matching checksum file. The package manager installs from the signed feed. Run `python3 tests/x11/bundle.py` for the archive layout, link preservation and rejection checks. The worker fixture is in `foundation/x11-bundle-fixture-01`, receipt SHA-256 `0a9abdd8e27a93cc6bb6926b1a95b9c7a46e281274c9fd7015a343c8255781dc`. +For the published tarball smoke test, place the sidecar in a disposable copy of the desktop guest root at `/vinix-x11-sidecar.tar.gz` alongside the `egl.v` and `glx.v` probe executables. Prefix the `graphics.sh` fixture with `VINIX_X11_SIDECAR_SHA256` set to the archive's digest from the release manifest. Boot the matching release kernel with `tests/disk-root.py --desktop-init` and use `--space-for` with the full graphics root to reserve room for extraction. The guest verifies the archive, extracts it with packaged BusyBox, checks that `pkg` is unchanged and exercises the same EGL and GLX pixel reads. The worker verified extraction and the DRI hard link with both release BusyBox binaries on a small sidecar fixture. See `foundation/ports-sidecar-busybox-extract-proof-01`, receipt SHA-256 `2af23f5cf0fa836af61eeca8fef7bda77fbf9533a14c8de349d83b6c6fedd185`. + Both architectures passed the desktop PID 1 and framebuffer checks from a disposable ext2 image. Those runs used the five checksum-pinned native programs from the November 28 release. The x86_64 chained fixture also ran its second script after registration and verified the larger disk size. A separate test published a signed feed with `--publish-only`, then installed musl and netbase into a clean root using the pinned public key. See `foundation/native-desktop-disk-path-01`, `foundation/native-desktop-chained-fixture-01` and `foundation/combined-publish-only-01`, receipt SHA-256 `86c564cb9415859d2411343f74b8ad8926418c16bedb4a612aab85db46137ccd`, `cb2d6c6afbdf2733676080f49792aa11b10907d1778d2bc3d01ae3317874a7e0` and `afde40678739b96cf16db58803ef87447ae4499a9e70f3425814a244e12d6883`. The complete desktop and X11 transaction still needs both graphics feeds. Set `VINIX_MESA_NATIVE_FILE` to a Meson native machine file whose `pkg_config_path` includes a build-host `wayland-scanner.pc`. The worker reused the source-built x86_64 Wayland scanner from an audited signed root. Meson found the native scanner through that file, found the target Wayland client in the SDK, and generated a protocol header. Mako and Intel CLC run in the build environment. See `xorg/mesa-host-tools-03/generator-check`, receipt SHA-256 `8df63367710d4ead9e968d30fe97eb3c63b45b4eba0f444447f5bf75b0cd4229`. diff --git a/tests/x11/graphics.sh b/tests/x11/graphics.sh index 079694a..f1bd853 100644 --- a/tests/x11/graphics.sh +++ b/tests/x11/graphics.sh @@ -29,6 +29,20 @@ if [ "${VINIX_X11_INSTALL_FROM_PKG:-0}" = 1 ]; then echo 'Vinix installed the signed X11 packages' fi +if [ -n "${VINIX_X11_SIDECAR_SHA256:-}" ]; then + phase=sidecar-extract + test ! -e /usr/bin/Xvfb-glx + test "$(vpac o --quiet /usr/bin/pkg)" = vinix-pkg + pkg_checksum=$(sha256sum /usr/bin/pkg) + printf '%s /vinix-x11-sidecar.tar.gz\n' "$VINIX_X11_SIDECAR_SHA256" | sha256sum -c - + /bin/busybox tar -k -xzf /vinix-x11-sidecar.tar.gz -C / + printf '%s\n' "$pkg_checksum" | sha256sum -c - + test "$(vpac o --quiet /usr/bin/pkg)" = vinix-pkg + test -x /usr/bin/vinix-wine-host + test /usr/lib/xorg/modules/dri/swrast_dri.so -ef /usr/lib/xorg/modules/dri/libgallium_dri.so + echo 'Vinix extracted the checked X11 release sidecar' +fi + phase=egl LIBGL_DRIVERS_PATH=/usr/lib/mesa24/dri /vinix-egl-check -- 2.56.1