From ad19464d4da3e5119cbd589e5250075f13de4011 Mon Sep 17 00:00:00 2001 From: diviocity Date: Sun, 29 Nov 2026 23:59:49 +0100 Subject: [PATCH] tests: reproduce the signed BusyBox and Vinix identity upgrade --- tests/FEED.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/FEED.md b/tests/FEED.md index 0731c5c..cd4360e 100644 --- a/tests/FEED.md +++ b/tests/FEED.md @@ -22,6 +22,34 @@ For a separate consumer, transfer the repository directory and obtain the expect "$work/feed" install "$work/client-keys" "$work/repo" x86_64 "$work/client" musl busybox ``` +### Upgrade an installed root + +The worker tested BusyBox `1.38.0-3` upgrading to `1.38.0-4`, followed by the first install of `vinix-release`. The earlier recipe is at `cab3ed4:busybox/PKGBUILD.vile`. With these archives in `archives` and test keys from the first step, publish two snapshots and keep the same client directory for both transactions. + +```sh +old="$work/upgrade-old" +new="$work/upgrade-new" +client="$work/upgrade-client" +"$work/feed" publish "$work/keys" "$old" x86_64 \ + "$archives"/musl-*.pkg.tar.zst "$archives"/busybox-1.38.0-3-x86_64.pkg.tar.zst +"$work/feed" install "$work/keys" "$old" x86_64 "$client" --fakeroot musl busybox +test -d "$client/db/local/busybox-1.38.0-3" +"$work/feed" publish "$work/keys" "$new" x86_64 \ + "$archives"/musl-*.pkg.tar.zst "$archives"/busybox-1.38.0-4-x86_64.pkg.tar.zst \ + "$archives"/vinix-release-0.1.0-1-any.pkg.tar.zst +sed 's|/upgrade-old/|/upgrade-new/|' "$client/config.vile" > "$client/upgrade.vile" +fakeroot -- vpac --config "$client/upgrade.vile" u --sync --noconfirm +fakeroot -- vpac --config "$client/upgrade.vile" i --noconfirm vinix-release +test -d "$client/db/local/busybox-1.38.0-4" +test ! -d "$client/db/local/busybox-1.38.0-3" +grep -Fx bin/uname "$client/db/local/busybox-1.38.0-4/files" +grep -Fx usr/bin/uname "$client/db/local/vinix-release-0.1.0-1/files" +test "$(readlink "$client/root/usr/bin/uname")" = ../../bin/uname +grep -Fx ID=vinix "$client/root/etc/os-release" +``` + +### Reuse a signed SDK + For a later SDK, publish the cumulative archive set to a new repository directory and install the desired package names into a new SDK. A remote builder can unpack a relative snapshot and set `VPAC_MAKEPKG_ROOT` and `VPAC_MAKEPKG_DB` to its extracted `root` and `db` directories. ```sh -- 2.56.1