diff --git a/resources/packages/roms/test b/resources/packages/roms/test index 01665fa..565e9f7 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}