The 3 GB GPT image without /source fails the same way under OVMF from USB (test-smoke-usb-uefi-2026-11-09.log), so the size was never the cause. make test installs fully from the GPT stick through its BIOS path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
75 lines
3.0 KiB
Bash
Executable File
75 lines
3.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# test.sh -- the tests of a release, in the order they cost.
|
|
#
|
|
# usage: test.sh [-q]
|
|
# -q the quick part only: no full installation
|
|
#
|
|
# What is tested, and why this is enough (Konrad, 2026-11-08):
|
|
# 1. mediacheck.sh the CDs carry the DVD's files, byte for byte
|
|
# 2. install-simple.sh -S the one full installation: the DVD with the sources
|
|
# 2b. install-simple.sh -U the second full installation: the GPT stick (BIOS path), with the
|
|
# sources (patch 0018, 2026-11-09)
|
|
# 3. install-simple.sh -B the smoke tests of the other media: they boot to the
|
|
# disk menu, which offers the target and not the
|
|
# medium itself (CD 1, the stick, BIOS and UEFI)
|
|
# The stick under UEFI is not smoke-tested: its loader takes the serial port only
|
|
# on a key (eficons.c) and the stick's boot.cfg sits in a FFS this host cannot
|
|
# edit; it came up to sysinst on the VGA screen (screendump, 2026-11-08).
|
|
# Not run here, only when sysinst, the loader or the cgd code changed:
|
|
# install-cgd.sh (BIOS and UEFI).
|
|
#
|
|
# Every step writes build/logs/test-<step>-<date>.log. Exit status: 0 if all
|
|
# steps passed, 1 otherwise. The steps run one after the other, never in
|
|
# parallel: the tests do not run beside a build.
|
|
|
|
set -u
|
|
|
|
TOP=${TOP:-$(cd "$(dirname "$0")/.." && pwd)}
|
|
DAY=$(date +%Y-%m-%d)
|
|
L=$TOP/build/logs
|
|
QUICK=no
|
|
[ "${1:-}" = -q ] && QUICK=yes
|
|
IMG=$TOP/build/obj/releasedir/images
|
|
USB=$IMG/Makronix-0.99.9-amd64-install.img
|
|
USBBIOS=$IMG/Makronix-0.99.9-amd64-bios-install.img
|
|
|
|
# The PIIX IDE controller of QEMU 11 loses interrupts under heavy writes and the
|
|
# guest freezes (the DVD installation copies all packages to the target; hangs
|
|
# 2026-11-07 and 2026-11-08, build/logs/hang-*). AHCI does not.
|
|
VMSH_AHCI=yes
|
|
export VMSH_AHCI
|
|
|
|
failed=
|
|
run()
|
|
{
|
|
name=$1; shift
|
|
echo "== $name"
|
|
"$@" > "$L/test-$name-$DAY.log" 2>&1
|
|
rc=$?
|
|
grep -a -E '^(PASS|FAIL)' "$L/test-$name-$DAY.log" | sort | uniq -c | sort -rn | head -4
|
|
if [ $rc -ne 0 ]; then
|
|
echo " FAILED (exit $rc): $L/test-$name-$DAY.log"
|
|
failed="$failed $name"
|
|
fi
|
|
}
|
|
|
|
run mediacheck "$TOP/tools/mediacheck.sh"
|
|
run smoke-cd1-bios "$TOP/tools/install-simple.sh" -B -f bios
|
|
run smoke-cd1-uefi "$TOP/tools/install-simple.sh" -B -f uefi
|
|
run smoke-usb-bios "$TOP/tools/install-simple.sh" -B -f bios -U "$USB"
|
|
run smoke-usbmbr-bios "$TOP/tools/install-simple.sh" -B -f bios -U "$USBBIOS"
|
|
# No UEFI test of a stick: NetBSD efiboot stops with ":-(" when OVMF boots it
|
|
# from a USB disk, with or without /source, 3 GB or 7 GB
|
|
# (build/logs/test-smoke-usb-uefi-2026-11-09.log); the same GPT image boots a
|
|
# MacBookPro8,1 via EFI (docs/PLATFORMS.md). The UEFI path is tested on the CD.
|
|
[ $QUICK = yes ] || run install-dvd "$TOP/tools/install-simple.sh" -S
|
|
# The GPT stick (the image a Mac boots) carries /source (patch 0018): one full
|
|
# installation from it, through its BIOS path, checks that sysinst installs them.
|
|
[ $QUICK = yes ] || run install-usb "$TOP/tools/install-simple.sh" -f bios -U "$USB"
|
|
|
|
if [ -n "$failed" ]; then
|
|
echo "FAILED:$failed"
|
|
exit 1
|
|
fi
|
|
echo "all steps passed"
|