From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mImy4-0002jp-1m for mharc-grub-devel@gnu.org; Wed, 25 Aug 2021 03:05:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mImy0-0002f1-Kb for grub-devel@gnu.org; Wed, 25 Aug 2021 03:04:56 -0400 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:46656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mImxx-0002VF-9n for grub-devel@gnu.org; Wed, 25 Aug 2021 03:04:56 -0400 Received: by mail-qk1-x735.google.com with SMTP id m21so25962064qkm.13 for ; Wed, 25 Aug 2021 00:04:49 -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:mime-version :content-transfer-encoding; bh=lal7e7nbbhfWyL/u1YYH5Anlsx/R6Opd9NXedFJ0TWM=; b=LN2D/CneZfR9+BodsV6z5FedHd2k/sQ6v56fWFot97C32MuZ031/vFwPjoP05c+XpA 4kNShrrCR3BH65EVrVTI9gEi3Ips5WsNrURZlEF1ajhOYBscf7g/gD5Do1khD5Xgiuxv Ibmol1HMsY6nbAAjE/9rllnPFfu4IEkvuB3V9h2TAWopwl/dHUal11zDNk6ytczkjNc/ HZdkkLZKELWPzza8/fpwe4PlVzCRoqWJD6qMwOQQqKZ/3O6tvEN0xgFbIAVxGeFwUo4I hJOoiG2TFuVtJ9dRLBO+KcRff3L2Swkqq7c8IdNfDuTzi3kyE95/fTQwol/vt4olTpO3 BF4A== 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:mime-version :content-transfer-encoding; bh=lal7e7nbbhfWyL/u1YYH5Anlsx/R6Opd9NXedFJ0TWM=; b=TXJAI6687GgRCi0GqM5ljHCTP3nAvAzQ4Af8+RvLD2eQ2wyt29Q6TbSXsDZII2TCmE G+f3qOIK3G8bZ12OzrJ0+d/uJvSHYBYUqxSXyIpBxucrmzqO8QjV1Ta4/QMpQs9RXNvX QSddVHQBAUygk4U4gQfLMZhd1Cxb1mjQQfNLf90Zjry53duQd2RDNEjaRGe07XQNaSov UBcUcKoHNVNpQkW7+oXnL/zyOsWMgJLpmdf4/pmzxmkR3J7CvtUKSlfxx1NWBSl4wjPx QamtQ53pAznKL1/HtH3kvomBhe9toa+7zh9UHiJECk+XvbXWr9Wizju+FhulBvHA/+NQ LTcg== X-Gm-Message-State: AOAM532gXd1kvCqagl82MacQ9lSjEHVaenyTRbe9UQ6LI5a6fFLP4u4P LN6IlRSbh4tTkyAPAxeDX/668cBDHXnmWbGy X-Google-Smtp-Source: ABdhPJzcUv4nnBrldxy0oTRRAKDV4O8hq9rhMsT1/PyO7MqkY3z9/A88Bk1BjjVE5nT+/3cSztEh+g== X-Received: by 2002:a37:84c3:: with SMTP id g186mr29428106qkd.276.1629875088500; Wed, 25 Aug 2021 00:04:48 -0700 (PDT) Received: from localhost.localdomain ([199.58.83.11]) by smtp.gmail.com with ESMTPSA id g1sm12444585qkd.89.2021.08.25.00.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 00:04:48 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH v2 0/8] Various fixes/improvements for tests Date: Wed, 25 Aug 2021 02:03:54 -0500 Message-Id: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::735; envelope-from=development@efficientek.com; helo=mail-qk1-x735.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: Wed, 25 Aug 2021 07:04:56 -0000 This is an update to the first version of this patch series to account for changes in tests/ahci_test.in which cause a conflict in the previous patch series. Nothing of substance has changed which would invalidate the previous cover letter, to which I'll refer for comments on the patches. Glenn Glenn Washburn (8): tests: Make sure LANG is set properly for iso9660_test tests: Fix partmap_test for arm*-efi, disk numbering has changed tests: When checking squashfs fstime, use superblock last modified time tests: Fail immediately when grub-shell fails and do not occlude the error code tests: Make setup errors in grub-fs-tester hard errors tests: A failure of mktemp should cause the test script to exit with code 99 tests: Exit with skipped exit code when test not performed tests: Use @BUILD_SHEBANG@ autoconf var instead of literal shell tests/ahci_test.in | 18 +++++++++++------- tests/cdboot_test.in | 11 ++++++----- tests/core_compress_test.in | 8 +++++--- tests/ehci_test.in | 18 +++++++++++------- tests/f2fs_test.in | 2 +- tests/fddboot_test.in | 19 ++++++++++--------- tests/gettext_strings_test.in | 2 +- tests/grub_cmd_date.in | 5 +++-- tests/grub_cmd_set_date.in | 6 +++--- tests/grub_cmd_test.in | 7 ++++--- tests/grub_script_blockarg.in | 4 ++-- tests/grub_script_expansion.in | 3 ++- tests/gzcompress_test.in | 3 ++- tests/hddboot_test.in | 9 +++++---- tests/iso9660_test.in | 6 ++++++ tests/lzocompress_test.in | 3 ++- tests/netboot_test.in | 15 ++++++++------- tests/ohci_test.in | 18 +++++++++++------- tests/partmap_test.in | 18 +++++++++--------- tests/pata_test.in | 13 +++++++------ tests/pseries_test.in | 2 +- tests/syslinux_test.in | 2 +- tests/test_sha512sum.in | 7 ++++--- tests/uhci_test.in | 18 +++++++++++------- tests/util/grub-fs-tester.in | 17 ++++++++++++----- tests/xzcompress_test.in | 3 ++- 26 files changed, 140 insertions(+), 97 deletions(-) Range-diff against v1: 1: c1ff77eec = 1: 17ddccb2e tests: Make sure LANG is set properly for iso9660_test 2: eb4bf8cb6 = 2: 62ed781c8 tests: Fix partmap_test for arm*-efi, disk numbering has changed 3: b00c1df00 = 3: 066486e22 tests: When checking squashfs fstime, use superblock last modified time 4: 73f81a5b4 ! 4: 562d74a49 tests: Fail immediately when grub-shell fails and do not occlude the error code @@ tests/ahci_test.in: echo "hello" > "$outfile" tar cf "$imgfile" "$outfile" --if [ "$(echo "nativedisk; source '(ahci0)/$outfile';" | "${grubshell}" --qemu-opts="-drive id=disk,file=$imgfile,if=none -device ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0 " | tail -n 1)" != "Hello World" ]; then +-if [ "$(echo "nativedisk; source '(ahci0)/$outfile';" | "${grubshell}" --qemu-opts="-drive id=disk,file=$imgfile,if=none -device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0 " | tail -n 1)" != "Hello World" ]; then +echo "nativedisk; source '(ahci0)/$outfile';" | + "${grubshell}" --qemu-opts="-drive id=disk,file=$imgfile,if=none + -device ahci,id=ahci -+ -device ide-drive,drive=disk,bus=ahci.0" >$outfile ++ -device ide-hd,drive=disk,bus=ahci.0" >$outfile +if [ "$(cat "$outfile" | tail -n 1)" != "Hello World" ]; then rm "$imgfile" rm "$outfile" 5: 946730f71 = 5: af85ae97f tests: Make setup errors in grub-fs-tester hard errors 6: 0e49be59e = 6: fcb2b7a06 tests: A failure of mktemp should cause the test script to exit with code 99 7: f08c84e58 = 7: 47afc3569 tests: Exit with skipped exit code when test not performed 8: dca75ed56 = 8: 40f77d41b tests: Use @BUILD_SHEBANG@ autoconf var instead of literal shell -- 2.27.0