[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 13/18] packages: images: tests: add Trisquel test with SeaBIOS
From: |
Denis 'GNUtoo' Carikli |
Subject: |
[PATCH v1 13/18] packages: images: tests: add Trisquel test with SeaBIOS. |
Date: |
Fri, 29 Nov 2024 20:14:27 +0100 |
This test is an easy way to make sure that at least QEMU's SeaBIOS
images work fine.
When designing the GRUB test my intent was mostly to test the grub.cfg
file and also enable further automatic testing to help catch issues
when improving the GRUB configuration.
However since the build system inherited from Libreboot 20220710 is
extremely fragile, and that GNU Boot also starts having the
infrastructure to build on more and more distributions with different
compiler versions (we now supports 2 Trisquel version and 1 PureOS
version), with setups variations (work is ongoing to add support for
building in chroots), it might be a good thing to check if SeaBIOS
works.
This would also catch bugs like bug #66487 ("RC4: All SeaBIOS images
are broken") [1] where the SeaBIOS payload was missing in all images,
however it would not catch situations where SeaBIOS is present in QEMU
images but missing in other images, so different tests must be done
for that situation. In addition it would be costly just to boot a VM
to check for missing files.
[1] https://savannah.gnu.org/bugs/?66487
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
resources/packages/roms/test | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/resources/packages/roms/test b/resources/packages/roms/test
index 01665fac..565e9f7e 100755
--- a/resources/packages/roms/test
+++ b/resources/packages/roms/test
@@ -61,11 +61,12 @@ run_qemu_x86_64()
${extra_qemu_args}
}
-test_grub_cfg_with_lvm()
+test_gnuboot_with_lvm()
{
source config.sh
- test_name="Test grub.cfg with Trisquel LVM install"
+ test_name="$1"
+ gnuboot_image_path="$2"
# TODO: Make the test also work with i686.
if [ "${build_cpu}" != "x86_64" ] ; then
@@ -82,7 +83,7 @@ test_grub_cfg_with_lvm()
fi
run_qemu_x86_64 \
- bin/qemu-pc_2mb/grub_qemu-pc_2mb_corebootfb_usqwerty.rom \
+ "${gnuboot_image_path}" \
"${rootfs_path}" \
"x86_64-linux" ; ret=$?
@@ -98,7 +99,17 @@ if [ $# -eq 1 ] && { [ "$1" = "-h" ] || [ "$1" == "--help" ]
;} ; then
usage "${progname}"
exit 0
elif [ $# -eq 0 ] ; then
- test_grub_cfg_with_lvm
+ # This test is mainly meant to verify if the grub configuration
+ # can boot a Trisquel rootfs with LVM.
+ test_gnuboot_with_lvm \
+ "Test GRUB images and its grub.cfg with a Trisquel LVM install" \
+ "bin/qemu-pc_2mb/grub_qemu-pc_2mb_corebootfb_usqwerty.rom"
+
+ # This test is mainly meant to verify if the SeaBIOS payload is
+ # broken or not.
+ test_gnuboot_with_lvm \
+ "Test SeaBIOS images with a Trisquel (LVM) install" \
+ "bin/qemu-pc_2mb/seabios_qemu-pc_2mb_txtmode_usqwerty.rom"
else
usage "${progname}"
exit ${EX_USAGE}
--
2.46.0
- [PATCH v1 00/18] Tests cbfs files, dependencies fixes, documentation., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 01/18] resources: dependencies: trisquel: skip fonts-unifont for Trisquel 10 (nabia)., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 02/18] dependencies: pureos: Fix copyright header., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 03/18] dependencies: trisquel: remove unused packagekit-tools., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 04/18] dependencies: pureos: remove unused packagekit., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 05/18] dependencies: trisquel: obtimize apt calls., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 08/18] resources: dependencies: unify PureOS and Trisquel., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 07/18] dependencies: trisquel: remove duplicated libusb-1.0-0-dev for flashrom., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 11/18] dependencies: pureos-trisquel: Add texlive for the website., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 13/18] packages: images: tests: add Trisquel test with SeaBIOS.,
Denis 'GNUtoo' Carikli <=
- [PATCH v1 18/18] website: status: mention reproducible builds status., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 17/18] packages: images: tests: require essential cbfs files., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 06/18] resources: dependencies: pureos: switch to install_packages., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 12/18] dependencies: pureos-trisquel: Add texlive-plain-generic for the website., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 10/18] dependencies: pureos-trisquel: Add texinfo for the website., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 09/18] dependencies: pureos-trisquel: Add graphicsmagick for the website., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 14/18] packages: images: tests: fix whitespace issue., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 15/18] packages: roms: release: unify whitespaces., Denis 'GNUtoo' Carikli, 2024/11/29
- [PATCH v1 16/18] packages: roms: release: fix line length., Denis 'GNUtoo' Carikli, 2024/11/29