tests: reproduce the signed BusyBox and Vinix identity upgrade
@@ -22,6 +22,34 @@ For a separate consumer, transfer the repository directory and obtain the expect
2222"$work/feed" install "$work/client-keys" "$work/repo" x86_64 "$work/client" musl busybox
2323```
2424
25+### Upgrade an installed root
26+
27+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.
28+
29+```sh
30+old="$work/upgrade-old"
31+new="$work/upgrade-new"
32+client="$work/upgrade-client"
33+"$work/feed" publish "$work/keys" "$old" x86_64 \
34+ "$archives"/musl-*.pkg.tar.zst "$archives"/busybox-1.38.0-3-x86_64.pkg.tar.zst
35+"$work/feed" install "$work/keys" "$old" x86_64 "$client" --fakeroot musl busybox
36+test -d "$client/db/local/busybox-1.38.0-3"
37+"$work/feed" publish "$work/keys" "$new" x86_64 \
38+ "$archives"/musl-*.pkg.tar.zst "$archives"/busybox-1.38.0-4-x86_64.pkg.tar.zst \
39+ "$archives"/vinix-release-0.1.0-1-any.pkg.tar.zst
40+sed 's|/upgrade-old/|/upgrade-new/|' "$client/config.vile" > "$client/upgrade.vile"
41+fakeroot -- vpac --config "$client/upgrade.vile" u --sync --noconfirm
42+fakeroot -- vpac --config "$client/upgrade.vile" i --noconfirm vinix-release
43+test -d "$client/db/local/busybox-1.38.0-4"
44+test ! -d "$client/db/local/busybox-1.38.0-3"
45+grep -Fx bin/uname "$client/db/local/busybox-1.38.0-4/files"
46+grep -Fx usr/bin/uname "$client/db/local/vinix-release-0.1.0-1/files"
47+test "$(readlink "$client/root/usr/bin/uname")" = ../../bin/uname
48+grep -Fx ID=vinix "$client/root/etc/os-release"
49+```
50+
51+### Reuse a signed SDK
52+
2553For 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.
2654
2755```sh