]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: Increase verbosity in *_test.in checks
authorLeo Sandoval <lsandova@redhat.com>
Fri, 19 Sep 2025 21:45:04 +0000 (15:45 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 6 Nov 2025 19:50:54 +0000 (20:50 +0100)
In this case it does not hurt to increase bash execution verbosity so
we can get more insight in case of issues.

Signed-off-by: Leo Sandoval <lsandova@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
57 files changed:
tests/ahci_test.in
tests/asn1_test.in
tests/btrfs_test.in
tests/cdboot_test.in
tests/core_compress_test.in
tests/cpio_test.in
tests/ehci_test.in
tests/erofs_test.in
tests/example_scripted_test.in
tests/exfat_test.in
tests/ext234_test.in
tests/f2fs_test.in
tests/fat_test.in
tests/fddboot_test.in
tests/file_filter_test.in
tests/grub_cmd_date.in
tests/grub_cmd_regexp.in
tests/grub_cmd_set_date.in
tests/grub_cmd_sleep.in
tests/grub_cmd_test.in
tests/grub_func_test.in
tests/grub_script_blanklines.in
tests/grub_script_blockarg.in
tests/grub_script_dollar.in
tests/grub_script_expansion.in
tests/grub_script_final_semicolon.in
tests/grub_script_no_commands.in
tests/gzcompress_test.in
tests/hddboot_test.in
tests/help_test.in
tests/hfs_test.in
tests/hfsplus_test.in
tests/iso9660_test.in
tests/jfs_test.in
tests/luks1_test.in
tests/luks2_test.in
tests/lzocompress_test.in
tests/minixfs_test.in
tests/netboot_test.in
tests/nilfs2_test.in
tests/ntfs_test.in
tests/ohci_test.in
tests/partmap_test.in
tests/pata_test.in
tests/pseries_test.in
tests/reiserfs_test.in
tests/romfs_test.in
tests/serial_test.in
tests/squashfs_test.in
tests/syslinux_test.in
tests/tar_test.in
tests/test_sha512sum.in
tests/udf_test.in
tests/uhci_test.in
tests/xfs_test.in
tests/xzcompress_test.in
tests/zfs_test.in

index 70646a24ece4d63f3bd6e7525b861432df8c4db3..ffb7cf48d615240cd9b6885c67dd60b099086510 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 8f18ee6bb6a9d7fc7052b8989991c6e9a0f71b57..a9b82dd0e4617ad06290d6c053b49cff2e17ce71 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 . "@builddir@/grub-core/modinfo.sh"
 
index a07d2e5d18cd2a22bcebaa80579cdbe1ec250f54..84cfd95d8e4673caf93423a957a737a58f45d9cd 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index f00cdec587bfa9bb7102d31e0ecab455521c7873..ec8943b16f30aa6d44bf2e5486afdf24a0d98ac2 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 24a811418aad8dfae9395991913ec15ac9edf1bb..0b97c9557c08aa141f838c3b65126fd5ce0dee8a 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 5742cf17b9d8f587d00590d481f0a00aaf6cada8..fb468564a900e4fa5fc01ed7087caacda1582165 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if ! which cpio >/dev/null 2>&1; then
    echo "cpio not installed; cannot test cpio."
index bf823a5de7c8883574e3c4dcb7c959c3a079c01d..7aff6df9414dc669f3a1c3d77b7b036761f77421 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 436468dac6f51016962a511b956b05689795631e..e3f3ea5eb409d33e5d591f15c419cc2d96ddd65c 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index 783b7f13853f39f9ec63b8da1da6e8a1b3a887a5..0f32c79fad5d6603cc73db56d72edc6f56702e26 100644 (file)
@@ -1,4 +1,4 @@
 #!@BUILD_SHEBANG@
-set -e
+set -ex
 
 true
index 7acde1977eba0fb708537186f7ea002150cecb97..ae2b209a1e8e51550ef5a3173629e005a76244b8 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index c9a8c1056a1056fc4a90c6885762e2f37d885991..2f8aafc9c6e7080f21027a141ca3e3283e7ae1d8 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index a020a0f96d80d1d537529de9ef1ca9a650c6b2a5..4d16c2fabef1aa398f8c5ec3e4b597a4bd061fc1 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
  EUID=`id -u`
index 77e3f16c67396974200ff0166e28816dba946881..0e4b1ebaed44d8c2853659966814b6721af07644 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index 6ef49efcb21b9b8ac2986e5b6a9efb3c96c5bf15..74d2bcd874b9778cb84f551911f58aa8ee180caa 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 18324f1a0933cf0c9189f10ed44a9323dc2db493..54fcf8e8844e54f2dac25e11c17ceb616a10f28c 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 4903ad6cc325645d76a7dedd262845cbd301ce6d..359c624fce703bf242137aa618ccd4af9f3dc78e 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 . "@builddir@/grub-core/modinfo.sh"
 
index 6520bd6d79acc0c8f5bfddc443912d74e826a0c8..13633bb052e7fbed047f102058277b594cbf8935 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 # Run GRUB script in a Qemu instance
 # Copyright (C) 2010  Free Software Foundation, Inc.
index 17673cd8aabbad67d6af1e948e2042c08e1ee78b..5572535fa46018ba37b8c4b4f13ba93540a14465 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 . "@builddir@/grub-core/modinfo.sh"
 
index 1a57fb388cf4ba3ec34b147f7aee4e946707e6a3..2da9d722ec42f9702b2ef2dfc8d9776372941f06 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 . "@builddir@/grub-core/modinfo.sh"
 
index 043c3a634b3167219a1b0e5a94e368e93069a11a..a78a5d6ee3b5722540d001743341389ce769e086 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 # create a randome file
 empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
index 1fa3c435276e74206c4d4b3371ae9016163e573a..6065ff6df1cd2a4f15b73f79af9af0df1b68a08f 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 . "@builddir@/grub-core/modinfo.sh"
 
index bd8735491be3b947c72fffbf5767d7ab6bcf91ae..9b84782c382fa266f82b7e8b1bc3752c9ff7e328 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 @builddir@/grub-script-check <<EOF
 # comment 1
index a91c7ca82a0628c3208f0bb75932b5b32d4d8598..1cc7c1a327cbf05d16afaa2304895983162f92dd 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 # Run GRUB script in a Qemu instance
 # Copyright (C) 2010  Free Software Foundation, Inc.
index 392fe2e7ab0f773ef3ba04366386d799cda3f83c..fd8e5d8a4200c2b2d442e34f1b32892189309ced 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 @builddir@/grub-script-check << EOF
 echo "\\\$"
index 98d5a9068a2852127e4ee0c242f11f761ac8084c..452f8334ae321f6f7684cc80c99d4f6a5f9e2d0b 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 # Run GRUB script in a Qemu instance
 # Copyright (C) 2010  Free Software Foundation, Inc.
index f17a9bf95e6db3d710d683fdbdc749fdab7e3a0a..6e15b95de6a1f3af777befbc46f63b84ae76f2f1 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 @builddir@/grub-script-check <<EOF
 echo one;
index 996bb181043dcbddd95ab98c8cbcc57b0fe91f4d..b401f8feb4fbe8f585604a7b0db5b09f853a29f8 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 # grub-script-check refuses to pass a file with no commands; this usually
 # indicates a bug in the code generating that file.
index d7a594bb2c3b8c3608a4502cb54300c051e5a89c..471b6537edcfb2c28c6b1c40e705f460ac2034a3 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 764e0da1c17aad8f59e9c3cb297ff8c83e7be461..76704c379fce72ae1707c36141d864e1eb4cbe69 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 9c8ca52c860b5b2282a092784c7ab6e03c1d3bc5..ca3d7f31b9f6cb03e08e939dc7e6798986f7da11 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 . "@builddir@/grub-core/modinfo.sh"
 
index c916b9bac955e7e19f5f58e1627898433dda90c6..fc0e0e75c6dce76d1d7f41bee291ea4e12c28a00 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index cb36a3661c4fb3ba5f61965c30fe5787c3447704..7918a68bbd2f8b52e06488b640ff10fc0960ab42 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index 793664c87426ae0dc4e3bfe40f493868ed24743f..7a6816f94a4d9c85697fdae860670c38ac0cfed9 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if ! which xorriso >/dev/null 2>&1; then
    echo "xorriso not installed; cannot test iso9660."
index 86f9ebeaa048d3f2ea2956ea2426103e92207341..b1c18e9b16d074b6e3024fb482106b5ddd029fd7 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index 0bfb53c98c654cb73e8d180862b0ca05e21c47a5..3344746c108f93df90256fa0dd7b7f61a397bf85 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index 49db47380eb6037462f77c9a56d03051e9527111..5368698f8274ab4c8a97d5f2f0fbb74c3ebf7dd7 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index 42e270df02643c8ecc2e0217ed621c4203a6185b..50145dd0cdd12b4cfa49e05caba202322d3c9c9a 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 78577fec8c5ea8272733abcb2836145a4f6d7590..0d28a72261758be3c959196b05db8db47387e8f7 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index 510c9c34ba42a6a52a0c7de41305bc77ddf023a1..b8a5f9abb8934bee85b70983b27575888ec9c493 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 719972f53f1aeb63bddb0b9540967737418fff62..84b8b1a0b6fb76350e922e77b03b869d7e0556e4 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index da73c59f9e179f71e709fd8d05a3a376e33058fb..5b1bebe16c921356a80cb510a58fdfb1b81ec740 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index a40d3bc0a05f9c62055eda25fdf926a092b3c0e6..1652b7efc26b005d3f3b7d24d803bb1b40eac169 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 9810cc1accae48acec523fb5e2aac948cae0dcc1..8e12cf7ec4b6be31a4e1fcf316d76ef90de1cf00 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 # Copyright (C) 2010  Free Software Foundation, Inc.
 #
index 4d0e7d5731a6963f8cdf43e5e68ce27685d07dcb..6c2fa43ddbdc0326874fbd9e20fd5014c414182b 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 9b4090cf50fc8c408fa176cbdf618be2b0e2140b..a1dd1670a0d627c1636b3f5b59d498b709783687 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 36e34c3050cb82e464b6df25f91f222cbc57dd42..48d3ab4cc6cf11fee5ca5f4ebf3e2079daaa0489 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index 98bb50c324b6e8cd1163c772a78271b64768ae57..2c66cde3451cb3f78f2908baa0c3d65e441edd0c 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if ! which genromfs >/dev/null 2>&1; then
    echo "genromfs not installed; cannot test romfs."
index 48655d4b975d30f09037e73dcfbac74003842674..331c3c3ad8d333f98896cea90439c72e69e55117 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 2f044f95d99b2ee7a6ddf1d2b2e54be3944f235f..b973f7bac0a8ee28119786821c70003eb42e5b18 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if ! which mksquashfs >/dev/null 2>&1; then
    echo "mksquashfs not installed; cannot test squashfs."
index 44d3cdf7a57ceae898e2a82838806e7027594ae5..e81c1531077429f3e58c6f0792c62be499c521a8 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 outfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
 
index 6e2f2de8b7ff78ca84401213dadd011a0b65f281..eafb6649ddd2e78ec7d03d1ecad6474e8f4f019b 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if ! which tar >/dev/null 2>&1; then
    echo "tar not installed; cannot test tar."
index b2bd89609cd3175da6bdba0d0aa5bcb6d7442c6f..3866f40c8dfa6f4043dea7a60a060e2d1bacddcb 100644 (file)
@@ -1,5 +1,5 @@
 #! @BUILD_SHEBANG@
-set -e
+set -ex
 
 # create a randome file
 file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
index 8968fb1033c5d6c33475b4723f830d1177aad388..b84d0b674617e547d37d45a8adce86c30a19f0a3 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index de199a28106cafc568dc80630b5c544cd8deea2e..46de98d921f266e7d259b08240e9dd534fb10b13 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index 8a648aa4a757080ebeb9e2aacb5ba49cfcd056f2..d6b3ab908a28dbbf8544c9c6b811435a4a5ee503 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
index cfc6ccba66352c5c37d026f0f354b7902a14db17..f0ac52e2d02c1fcd78ce637e22b0d69c4bcaebe7 100644 (file)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-set -e
+set -ex
 grubshell=@builddir@/grub-shell
 
 . "@builddir@/grub-core/modinfo.sh"
index c8bb7937fe8caea50458afdb58eaa4dcb480743e..e1cb766a5d99e5ec2c448e8b260ecde93deaee18 100644 (file)
@@ -1,6 +1,6 @@
 #!@BUILD_SHEBANG@
 
-set -e
+set -ex
 
 if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`