Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lLcqb-0004YO-K7 for mharc-grub-devel@gnu.org; Sun, 14 Mar 2021 22:20:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLcqZ-0004Te-GO for grub-devel@gnu.org; Sun, 14 Mar 2021 22:20:43 -0400 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]:39375) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLcqX-00046g-3y for grub-devel@gnu.org; Sun, 14 Mar 2021 22:20:43 -0400 Received: by mail-ot1-x32a.google.com with SMTP id x28so6353755otr.6 for ; Sun, 14 Mar 2021 19:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KU2UBzb09ChIwu3gjiyrCvtPvv8cMZMvbGakTMw0vVo=; b=zrkf3GloC8+zMmJ5H3gQb53jUYvoe0HFxfvGrxnCoM6+p5dRibfzzcyLYKuAAlzd/a 4pB1VVOdSEv/HY9pYIQ6Gohe60+CWz7ZNSvqWZP/svNrdHibnfU0HS69f3Vr29ffdsUc riN/YW1ErZp+bIwPAdom5gjXePAmH0dHLhIOiZZZ8uu/DOF1s8qfhYpVoXIkKxcjPY5i 2i8Ti6s2RE9phaViKGRgDQIysY13H7Y+eTu3XlwfCgbn1yV3wR463LIVIx8Fs2Y4G105 DHuhTa0oXMt7E/QWN/iesJJ+UHGB+4MpZAu2cc++N16bTMJRG4q475Y9MSOyLVEgb8ya xu3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KU2UBzb09ChIwu3gjiyrCvtPvv8cMZMvbGakTMw0vVo=; b=N+SBvt8bMty4SqjVCbLMjoOoH8XV3LnrRFObfQNNn8CCONAWEF6LsRFSio3XLyKR0I gjVhCKP5xDVWYoRZUU11nR2VcAxQyykrILNrvcc+ydgdrPoYri36niC1FGdPugT2/9jg z5pxRiGfEo2z9BX3C4Uj8SH730GdgYtFiAZTIwg5n4ylb10LVzndv7Fh+HFYZTHW5Xaq Um7xN1IXzWWmv+ndwEsr6d0frwCf7DyOmctcTRzza305IgQsN80OFdtbUJa6w5ihbH4/ bQDamt6QFJxR0or2aETk/FDAo9czt+sSRS/yKHhOq9wyL3P8AM8hDIJphMKPngSN81dD s0AA== X-Gm-Message-State: AOAM530doJ3axQ1JO0rUwBlUfjL/phIamVqEGrbarHBHHzh5ydbU16uC XrbBjDVI8nxdwDcbDQgm/EyijUoTOuYHXg== X-Google-Smtp-Source: ABdhPJx8TQIbHpOJwuXJplnb2LBrZZp07XP2STvz2ApiE1YR0p3G+9S6eeuE5CjBQttt4NHn0OXGvQ== X-Received: by 2002:a05:6830:4d:: with SMTP id d13mr12335037otp.295.1615774839825; Sun, 14 Mar 2021 19:20:39 -0700 (PDT) Received: from localhost.localdomain ([2605:a601:aac5:3700:b5e5:83e3:99ae:e6e8]) by smtp.gmail.com with ESMTPSA id t22sm6733206otl.49.2021.03.14.19.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 19:20:39 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH 7/8] tests: Exit with skipped exit code when test not performed Date: Sun, 14 Mar 2021 21:20:22 -0500 Message-Id: <999c7ab81e323456e01afce401cad5e71021c1a4.1615773047.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::32a; envelope-from=development@efficientek.com; helo=mail-ot1-x32a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2021 02:20:43 -0000 These tests were not performed and therefore did not pass, nor fail. This fixes misleading test exit code where, for instance, the pseries_test will pass on i386-pc, which is not a pseries architecture. Signed-off-by: Glenn Washburn --- tests/ahci_test.in | 8 ++++---- tests/cdboot_test.in | 8 ++++---- tests/core_compress_test.in | 2 +- tests/ehci_test.in | 8 ++++---- tests/fddboot_test.in | 16 ++++++++-------- tests/grub_cmd_date.in | 2 +- tests/grub_cmd_set_date.in | 6 +++--- tests/hddboot_test.in | 6 +++--- tests/netboot_test.in | 12 ++++++------ tests/ohci_test.in | 8 ++++---- tests/partmap_test.in | 8 ++++---- tests/pata_test.in | 6 +++--- tests/pseries_test.in | 2 +- tests/uhci_test.in | 8 ++++---- 14 files changed, 50 insertions(+), 50 deletions(-) diff --git a/tests/ahci_test.in b/tests/ahci_test.in index eb83bebf8..683405b01 100644 --- a/tests/ahci_test.in +++ b/tests/ahci_test.in @@ -22,16 +22,16 @@ grubshell=@builddir@/grub-shell case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: Don't mess with real devices when OS is active *-emu) - exit 0;; + exit 77;; # FIXME: qemu gets bonito DMA wrong mipsel-loongson) - exit 0;; + exit 77;; # PLATFORM: no AHCI on ARC and qemu-mips platforms mips*-arc | mips*-qemu_mips) - exit 0;; + exit 77;; # FIXME: No native drivers are available for those powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi) - exit 0;; + exit 77;; esac imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99 diff --git a/tests/cdboot_test.in b/tests/cdboot_test.in index 7229f79fb..c0a5212ff 100644 --- a/tests/cdboot_test.in +++ b/tests/cdboot_test.in @@ -22,16 +22,16 @@ grubshell=@builddir@/grub-shell case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: emu is different *-emu) - exit 0;; + exit 77;; # PLATFORM: Flash targets i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) - exit 0;; + exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson) - exit 0;; + exit 77;; # FIXME: OFW fails to open CD-ROM i386-ieee1275) - exit 0;; + exit 77;; esac v=`echo hello | "${grubshell}" --boot=cd` diff --git a/tests/core_compress_test.in b/tests/core_compress_test.in index 90dd00607..72d2eca7d 100644 --- a/tests/core_compress_test.in +++ b/tests/core_compress_test.in @@ -22,7 +22,7 @@ grubshell=@builddir@/grub-shell case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # FIXME: Only mips currently supports configurable core compression *-emu | i386-* | x86_64-* | sparc64-* | ia64-*) - exit 0 + exit 77 ;; esac diff --git a/tests/ehci_test.in b/tests/ehci_test.in index da7652bd3..bd80f93d4 100644 --- a/tests/ehci_test.in +++ b/tests/ehci_test.in @@ -22,16 +22,16 @@ grubshell=@builddir@/grub-shell case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: Don't mess with real devices when OS is active *-emu) - exit 0;; + exit 77;; # FIXME: qemu gets bonito DMA wrong mipsel-loongson) - exit 0;; + exit 77;; # PLATFORM: no USB on ARC and qemu-mips platforms mips*-arc | mips*-qemu_mips) - exit 0;; + exit 77;; # FIXME: No native drivers are available for those powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi) - exit 0;; + exit 77;; esac imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99 diff --git a/tests/fddboot_test.in b/tests/fddboot_test.in index 1bbe60ee5..5348ac56b 100644 --- a/tests/fddboot_test.in +++ b/tests/fddboot_test.in @@ -22,28 +22,28 @@ grubshell=@builddir@/grub-shell case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: emu is different *-emu) - exit 0;; + exit 77;; # PLATFORM: Flash targets i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) - exit 0;; + exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson) - exit 0;; + exit 77;; # FIXME: We don't support EFI floppy boot in grub-mkrescue *-efi) - exit 0;; + exit 77;; # FIXME: no floppy support i386-multiboot) - exit 0;; + exit 77;; # FIXME: QEMU firmware crashes when trying to boot from floppy sparc64-ieee1275) - exit 0;; + exit 77;; # FIXME: QEMU doesn't emulate SCSI floppies mipsel-arc | mips-arc) - exit 0;; + exit 77;; # PLATFORM: powerpc doesn't boot from floppy except OldWorld Macs which we don't support anyway powerpc-ieee1275) - exit 0;; + exit 77;; esac v=`echo hello | "${grubshell}" --boot=fd --mkrescue-arg="--compress=xz --fonts= --locales= --themes= -no-pad"` diff --git a/tests/grub_cmd_date.in b/tests/grub_cmd_date.in index f9156691e..409cb684a 100644 --- a/tests/grub_cmd_date.in +++ b/tests/grub_cmd_date.in @@ -5,7 +5,7 @@ set -e # FIXME: OpenBIOS on sparc64 doesn't implement RTC if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = sparc64-ieee1275 ]; then - exit 0 + exit 77 fi pdt="$(date -u +%s)" diff --git a/tests/grub_cmd_set_date.in b/tests/grub_cmd_set_date.in index aac120a6c..17673cd8a 100644 --- a/tests/grub_cmd_set_date.in +++ b/tests/grub_cmd_set_date.in @@ -6,15 +6,15 @@ set -e case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # FIXME: OpenBIOS on sparc64 doesn't implement RTC sparc64-ieee1275) - exit 0;; + exit 77;; # PLATFORM: ARC doesn't provide any way to set time *-arc) - exit 0;; + exit 77;; # PLATFORM: EMU doesn't provide any way to set time # Even if it did we'd need some kind of sandbox to avoid # modifying real system time. *-emu) - exit 0;; + exit 77;; esac out=$(cat <