Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mO5Ds-0004KQ-70 for mharc-grub-devel@gnu.org; Wed, 08 Sep 2021 17:35:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO5Dq-0004Hf-HB for grub-devel@gnu.org; Wed, 08 Sep 2021 17:35:10 -0400 Received: from mout.gmx.net ([212.227.17.20]:55135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO5Do-0000P4-MQ for grub-devel@gnu.org; Wed, 08 Sep 2021 17:35:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631136901; bh=tByEwcOy48+8QWOhUdqqjUo0Bu8UchLkeFcceNA5u+Q=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=QbjedQ5aqYkJhIwnJUApkigXuCFvvpNc0xq5h7XVd+JDHv8jgxq6O/Krt9pOarzX9 Xr02A3oyo8gJnf+3XDspXQ1xr6MDd3Ml5c0QqBH9mGE/yOMV+7Sc4ofD2tKS5bsR1W 3JOQwKTKUAbMEDvWMpc9osAS5P7Hr7YnY/0QDfAE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ts7.local ([79.222.32.79]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M7K3Y-1mIaVt1C84-007ok1; Wed, 08 Sep 2021 23:35:01 +0200 From: Thomas Schmitt To: grub-devel@gnu.org, daniel.kiper@oracle.com, development@efficientek.com Cc: Thomas Schmitt Subject: [PATCH v2] tests: Keep grub-fs-tester ziso9660 from failing for wrong reasons Date: Wed, 8 Sep 2021 23:34:52 +0200 Message-Id: <20210908213452.10254-1-scdbackup@gmx.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:neJl7d/9T4x7/g78Wg9lfcUxaHvOg053bsAVQ9V50u0SH1GEiH2 5RVQSrBvK+pJ9InvIndMxAOu7/vdSiXIWxx++dHJPlYsRRcCnfTfULzdaEwzNhdW8FM5ztq 1LVfwB0rdeAxG4LUuLt2H5R3hwTzjN35TW2+Xgz7Mp/sPU9h7X6299pbwiBjt2J8DwEmpVr c7Fj0xZb5v9gN8zJSC0kw== X-UI-Out-Filterresults: notjunk:1;V03:K0:ykJ+GzW4lSQ=:VWc2gGxLdljSO7CN05m/j8 Z/UaGP5As24IzkIWLS44EjxY61o8hNRC6P0CK3/bY0B1FsZ33XpTLVdj5z+QD1UMM9vPfCS1r FA3WDYkHl21h+0yohJY/KsTESrpgbgB6YlMMGOMu8T4h/AA4RY0l3Pt2+Khcbya9xNJnqU8hh tV0VOfHKsWdv4HG6s9u+rbjZbi6bcy7ox2sZ/qxOrD7eP+lw1crWgu8TQaL20IKds5SNvBctC Gs9/jWwdRB9E6kp/yECkxc8hiD0kvyA6bAdf+lF4dT88eqyAMCjHkfCagJF6U19yJo7XPBe74 nGfYgnhgzl9ZK06e29FQFeHaNBQc3e67o5fPz5EIWKcyU+89BKqlEf3O81gq/x4QyClMfUc+z 3Z3yOgJ/ZEN+N6hcXRzM4nCZuchf1OOhGRD+jYVLF3Gbh7f5USE7XxQBcwnB98bBJiy+vLpri +2+wmzHV+IGxJuIs5rEaD8ibvCBMLJY5lmSZpjo9mIwsMVKuT3p0vdI8QBMf9hioCVypRPePI usI8qnmzrZ1X4F8JYBsCLQF2lje7dNdKFFwn1FNyowGvizvk2VinYjqMUtdD0YaiD8tjJ2DyZ hEKQcSCbe5q3ji5yGYWWgZcbK4IEVOWQ3v8eEyltNn4QK6jeMZzDXeqQlfMqyQvQ5vdREAJoY d5+bNmUzK2WiSzvU4eeVn6zlREvom6HOq2s0bbtXvBcodOA6l6/TqCCaTBEWg5MURJ926Og2j 5rkhvUb+4SdLvR4kz+EqmGsEhhLa6p62ErKhg/YlDmXE2h385+56VG7Ru9KY9tn6zkuXBKcSe bqsAcrButiSeTvLdxrDVeyu9cOTeJuuJlYzKkADmeXZ267kYI4taKV7FhMZS0IuYwjdn9OhIR mjOW9JqqAPbw8dCjP4c2xiNvWKNqCYaUP+Y9NQoX8mmzyvXBF7P5hJHw5O5H8QFFDss+KnROx UuZfHHImDyjIE5we5kz/NqPnD1ZxVBkBx6wUrxeeq1OaHOqVluIgwUASr3tyv+2jmhH4MwimH 4Sg3MNYwmTfAOkqEFEPsIcM3CclFTByvMAol0euPGDyWXXWT+HxmQJCCOTT1Phu8c8bu/WLH1 n03XakFVC99+Uw= Received-SPF: pass client-ip=212.227.17.20; envelope-from=scdbackup@gmx.net; helo=mout.gmx.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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, 08 Sep 2021 21:35:10 -0000 The test for the ability to decompress zisofs encoded files is supposed to fail due to the lack of this ability in GRUB. But it fails early with xorriso : FAILURE : -volid: Text too long (1650 > 32) because "ziso9660" is not in the list of filesystems which accept at most 32 bytes in their FSLABEL. If this is fixed, the test returns false success because the xorriso run does not produce any zisofs compressed files. The problem is in the sequence of native xorriso commands used. The command -set_filter_r applies only to the files which are already inserted into the emerging ISO filesystem. In the current sequence no files have been inserted yet by command -add when the last of two -set_filter_r commands is executed. After this is corrected, xorriso refuses to work because the global settings of command -zisofs can be made only before command -set_filter_r has attached zisofs filters to the data files in the emerging ISO. Further: A bug in xorriso causes a false warning about FSLABEL being too long for Joliet. Shortcommings of Joliet cause warnings about symbolic links. Such warnings might distract from the actual reason why the test is expected to fail. So add "ziso9660" to the 32-byte FSLABEL list. Fix the xorriso run to produce compressed files which for now cause righteous failure of the test. Do this by removing a surplus group of -set_filter_r and -zisofs commands, by moving the other such group behind -add, and by swapping -set_filter_r and -zisofs. Remove the -as mkisofs options which produce a Joliet filesystem tree. Signed-off-by: Thomas Schmitt =2D-- tests/util/grub-fs-tester.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in index 4f581b638..a28e07295 100644 =2D-- a/tests/util/grub-fs-tester.in +++ b/tests/util/grub-fs-tester.in @@ -318,7 +318,8 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSEC= SIZE" 1); do FSLABEL=3D"grub_;/test=C3=A9=D1=82i u=F0=9F=98=81=F0=AF=A6=9D=F0=AF= =A6=99=D0=BA=D0=B8=D1=80=D0=B8rewfceniuewruevrewnuuireurevueurnievrewfne";= ; # FS LIMITATION: afs and iso9660 label is at most 32 UTF-8 = characters x"afs" | xiso9660 | xrockridge | xrockridge_joliet\ - | xiso9660_1999 | xrockridge_1999 | xrockridge_jolie= t_1999) + | xiso9660_1999 | xrockridge_1999\ + | xrockridge_joliet_1999 | xziso9660) FSLABEL=3D"gr_;/=C3=A9=F0=AF=A6=9B=F0=AF=A6=9D=F0=9F=98=81=D0=BA= =D0=B8=D1=80=D0=B8=D1=82 u";; # FS LIMITATION: bfs label is at most 32 UTF-8 characters # OS LIMITATION: bfs label can't contain ; or / @@ -1024,7 +1025,7 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGS= ECSIZE" 1); do (cd "$MASTER"; find . | cpio -o -H "$(echo ${fs} | sed 's@^cpio_@@'= )" > "${FSIMAGEP}0.img" ) ;; x"ziso9660") FSUUID=3D$(date -u +%Y-%m-%d-%H-%M-%S-00); - xorriso -compliance rec_mtime -set_filter_r --zisofs -- -zisofs def= ault -as mkisofs $XORRISOFS_CHARSET -iso-level 3 -graft-points -R -J -joli= et-long -V "$FSLABEL" --modification-date=3D$(echo ${FSUUID} | sed 's/-//g= ;') -o "${FSIMAGEP}0.img" -- -set_filter_r --zisofs -- -zisofs default -a= dd /=3D"$MASTER" ;; + xorriso -compliance rec_mtime -as mkisofs $XORRISOFS_CHARSET -iso-l= evel 3 -graft-points -R -V "$FSLABEL" --modification-date=3D$(echo ${FSUUI= D} | sed 's/-//g;') -o "${FSIMAGEP}0.img" -- -add /=3D"$MASTER" -- -zisofs= default -set_filter_r --zisofs / -- ;; x"iso9660") FSUUID=3D$(date -u +%Y-%m-%d-%H-%M-%S-00); xorriso --rockridge off -compliance rec_mtime -as mkisofs $XORRISOF= S_CHARSET -iso-level 3 -graft-points -V "$FSLABEL" --modification-date=3D$= (echo ${FSUUID} | sed 's/-//g;') -o "${FSIMAGEP}0.img" /=3D"$MASTER" ;; =2D- 2.20.1