From unknown Wed Aug 20 01:20:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60339: tests/cp/proc-short-read.sh may fail due to architecture / case sensitivity assumption Resent-From: Zach van Rijn Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 26 Dec 2022 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60339 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 60339@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167206858022583 (code B ref -1); Mon, 26 Dec 2022 15:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Dec 2022 15:29:40 +0000 Received: from localhost ([127.0.0.1]:53944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9pQ3-0005sA-Pk for submit@debbugs.gnu.org; Mon, 26 Dec 2022 10:29:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:55386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9ocl-0003vH-IA for submit@debbugs.gnu.org; Mon, 26 Dec 2022 09:38:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9ocl-0003CI-8R for bug-coreutils@gnu.org; Mon, 26 Dec 2022 09:38:43 -0500 Received: from sender4-op-o11.zoho.com ([136.143.188.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9ocg-0003a6-9p for bug-coreutils@gnu.org; Mon, 26 Dec 2022 09:38:39 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1672065513; cv=none; d=zohomail.com; s=zohoarc; b=mLnDwLNVGdomULGKFZ/2gFt/rAk9sVOY/CH0LMsdjBOmusgrIIaCeYHkqFlQeMSIG6mfgvk+nHtNL/QBt+jLPlC9CXsMSVW3yn115kx6474muSEYRnF2a5q1Hhxckc4S5r06sQ29uRUp97br5hGZNGqKj/TB0V2CVB6qOjnaL8M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672065513; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=F3b+stBLChA2zSQMD97HYSrLRcICi/WqZXP++w284vE=; b=HQUqnvr9KE2XP3RNZe4LcaV/F8K0C1crK2TLaxi6hPgDK9VN2Iziu8NmvBmd6wazCts14FOMPycDCsQFZzUPWFhP/6aekApi0l4JhOTsIHbUy0BH1+bbhMAsUu9f9hCoZh8cd6YQ8FiJ4uDMR7z8YpR+r+zCCVgHrpym5jzMBtI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zv.io; spf=pass smtp.mailfrom=me@zv.io; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672065513; s=zoho; d=zv.io; i=me@zv.io; h=Message-ID:Subject:Subject:From:From:To:To:Date:Date:Content-Type:MIME-Version:Message-Id:Reply-To:Cc; bh=F3b+stBLChA2zSQMD97HYSrLRcICi/WqZXP++w284vE=; b=BTaf7XLLCRPRAh6Agy+VdhpneFvzSW16Wd6hSWiVgYi7FPHX9l0q4e5ZZoRGSA79 FAXjJWT5BI3HqaHXNajrrnoN94dlF5PmJilr4Da++PQN827xjcoBmH2JELkZvalqfVN zk46UW1B6ABEygaIDlg4KhUjqaVYuakzHs/DK7bU= Received: from powerhouse (cpe-70-114-214-212.austin.res.rr.com [70.114.214.212]) by mx.zohomail.com with SMTPS id 1672065512323343.12756212959664; Mon, 26 Dec 2022 06:38:32 -0800 (PST) Message-ID: From: Zach van Rijn Date: Mon, 26 Dec 2022 08:38:29 -0600 Content-Type: multipart/mixed; boundary="=-oVUnWKe3VvccvTJ60wk1" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 X-Zoho-Virus-Status: 1 X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.11; envelope-from=me@zv.io; helo=sender4-op-o11.zoho.com 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Mon, 26 Dec 2022 10:29:38 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-oVUnWKe3VvccvTJ60wk1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit The test tests/cp/proc-short-read.sh attempts to remove common differences in the output of /proc/cpuinfo: # adjust varying parts sed '/MHz/d; /bogomips/d;' 1 > proc.cp || framework_failure_ sed '/MHz/d; /bogomips/d;' 2 > proc.cat || framework_failure_ However the string "bogomips" may differ in capitalization across different architectures [1]. Testing on a big.LITTLE system uncovered this assumption. Linux DietPi 5.4.225-odroidxu4 #22.11.1 SMP PREEMPT Wed Nov 30 10:55:16 UTC 2022 armv7l GNU/Linux Still present as of 9581c4b59d2e11cd090613cd300a833b4441d2b5. Proposed patch attached, which aims to be minimally invasive. References: [1]: https://git.adelielinux.org/adelie/packages/-/issues/943 --=-oVUnWKe3VvccvTJ60wk1 Content-Disposition: attachment; filename="tests-cp-proc-short-read.patch" Content-Type: text/x-patch; name="tests-cp-proc-short-read.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3Rlc3RzL2NwL3Byb2Mtc2hvcnQtcmVhZC5zaCBiL3Rlc3RzL2NwL3Byb2Mt c2hvcnQtcmVhZC5zaAppbmRleCBiZWRiMDhlMDYuLjg5ZGJhOGQzZCAxMDA3NTUKLS0tIGEvdGVz dHMvY3AvcHJvYy1zaG9ydC1yZWFkLnNoCisrKyBiL3Rlc3RzL2NwL3Byb2Mtc2hvcnQtcmVhZC5z aApAQCAtMjgsOCArMjgsOCBAQCBjcCAkcHJvY19sYXJnZSAxICAgIHx8IGZhaWw9MQogY2F0ICRw cm9jX2xhcmdlID4gMiB8fCBmYWlsPTEKIAogIyBhZGp1c3QgdmFyeWluZyBwYXJ0cwotc2VkICcv TUh6L2Q7IC9ib2dvbWlwcy9kOycgMSA+IHByb2MuY3AgfHwgZnJhbWV3b3JrX2ZhaWx1cmVfCi1z ZWQgJy9NSHovZDsgL2JvZ29taXBzL2Q7JyAyID4gcHJvYy5jYXQgfHwgZnJhbWV3b3JrX2ZhaWx1 cmVfCitzZWQgJy9NSHovZDsgL1tCYl1bT29dW0dnXVtPb11bTW1dW0lpXVtQcF1bU3NdL2Q7JyAx ID4gcHJvYy5jcCB8fCBmcmFtZXdvcmtfZmFpbHVyZV8KK3NlZCAnL01Iei9kOyAvW0JiXVtPb11b R2ddW09vXVtNbV1bSWldW1BwXVtTc10vZDsnIDIgPiBwcm9jLmNhdCB8fCBmcmFtZXdvcmtfZmFp bHVyZV8KIAogY29tcGFyZSBwcm9jLmNwIHByb2MuY2F0IHx8IGZhaWw9MQogCg== --=-oVUnWKe3VvccvTJ60wk1-- From unknown Wed Aug 20 01:20:09 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Zach van Rijn Subject: bug#60339: closed (Re: bug#60339: tests/cp/proc-short-read.sh may fail due to architecture / case sensitivity assumption) Message-ID: References: X-Gnu-PR-Message: they-closed 60339 X-Gnu-PR-Package: coreutils Reply-To: 60339@debbugs.gnu.org Date: Mon, 26 Dec 2022 17:13:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1672074782-8949-1" This is a multi-part message in MIME format... ------------=_1672074782-8949-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #60339: tests/cp/proc-short-read.sh may fail due to architecture / case sen= sitivity assumption which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 60339@debbugs.gnu.org. --=20 60339: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60339 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1672074782-8949-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 60339-done) by debbugs.gnu.org; 26 Dec 2022 17:12:58 +0000 Received: from localhost ([127.0.0.1]:54027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9r22-0002K5-Gq for submit@debbugs.gnu.org; Mon, 26 Dec 2022 12:12:58 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9r20-0002Jr-8n for 60339-done@debbugs.gnu.org; Mon, 26 Dec 2022 12:12:57 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0D70C160043; Mon, 26 Dec 2022 09:12:50 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xBZ7HGxOBJNb; Mon, 26 Dec 2022 09:12:49 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 626ED160048; Mon, 26 Dec 2022 09:12:49 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 626ED160048 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1672074769; bh=uLMWSC4kX/wXe8qWO70VEMMMDCKee5TyQQ5RbkbFx0U=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type: Content-Transfer-Encoding; b=HRKlWqiHTIWWn1iUbiIVPKr7Dn0sdT6U8V2ZAvzQG1Cz+2VARsIYL5ZBTFDAWQ4rg o5xfKR+VAt/PBXDcsnEP/oXPhIbWd/yh7bgZWoD9LwIsbTsPLrKZdNIcZ6/sDv+qiB y+miwRrvbPOkPTkNN51LJ5haaW06kJFGcH45oRds= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KHaA79bcbqxX; Mon, 26 Dec 2022 09:12:49 -0800 (PST) Received: from [192.168.86.236] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 3A260160043; Mon, 26 Dec 2022 09:12:49 -0800 (PST) Message-ID: Date: Mon, 26 Dec 2022 09:12:48 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: bug#60339: tests/cp/proc-short-read.sh may fail due to architecture / case sensitivity assumption Content-Language: en-US To: Zach van Rijn References: From: Paul Eggert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: 60339-done Cc: 60339-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) I installed the fix. [Tt][Hh][Aa][Nn][Kk][Ss][.] ------------=_1672074782-8949-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Dec 2022 15:29:40 +0000 Received: from localhost ([127.0.0.1]:53944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9pQ3-0005sA-Pk for submit@debbugs.gnu.org; Mon, 26 Dec 2022 10:29:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:55386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9ocl-0003vH-IA for submit@debbugs.gnu.org; Mon, 26 Dec 2022 09:38:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9ocl-0003CI-8R for bug-coreutils@gnu.org; Mon, 26 Dec 2022 09:38:43 -0500 Received: from sender4-op-o11.zoho.com ([136.143.188.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9ocg-0003a6-9p for bug-coreutils@gnu.org; Mon, 26 Dec 2022 09:38:39 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1672065513; cv=none; d=zohomail.com; s=zohoarc; b=mLnDwLNVGdomULGKFZ/2gFt/rAk9sVOY/CH0LMsdjBOmusgrIIaCeYHkqFlQeMSIG6mfgvk+nHtNL/QBt+jLPlC9CXsMSVW3yn115kx6474muSEYRnF2a5q1Hhxckc4S5r06sQ29uRUp97br5hGZNGqKj/TB0V2CVB6qOjnaL8M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672065513; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=F3b+stBLChA2zSQMD97HYSrLRcICi/WqZXP++w284vE=; b=HQUqnvr9KE2XP3RNZe4LcaV/F8K0C1crK2TLaxi6hPgDK9VN2Iziu8NmvBmd6wazCts14FOMPycDCsQFZzUPWFhP/6aekApi0l4JhOTsIHbUy0BH1+bbhMAsUu9f9hCoZh8cd6YQ8FiJ4uDMR7z8YpR+r+zCCVgHrpym5jzMBtI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zv.io; spf=pass smtp.mailfrom=me@zv.io; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672065513; s=zoho; d=zv.io; i=me@zv.io; h=Message-ID:Subject:Subject:From:From:To:To:Date:Date:Content-Type:MIME-Version:Message-Id:Reply-To:Cc; bh=F3b+stBLChA2zSQMD97HYSrLRcICi/WqZXP++w284vE=; b=BTaf7XLLCRPRAh6Agy+VdhpneFvzSW16Wd6hSWiVgYi7FPHX9l0q4e5ZZoRGSA79 FAXjJWT5BI3HqaHXNajrrnoN94dlF5PmJilr4Da++PQN827xjcoBmH2JELkZvalqfVN zk46UW1B6ABEygaIDlg4KhUjqaVYuakzHs/DK7bU= Received: from powerhouse (cpe-70-114-214-212.austin.res.rr.com [70.114.214.212]) by mx.zohomail.com with SMTPS id 1672065512323343.12756212959664; Mon, 26 Dec 2022 06:38:32 -0800 (PST) Message-ID: Subject: tests/cp/proc-short-read.sh may fail due to architecture / case sensitivity assumption From: Zach van Rijn To: bug-coreutils@gnu.org Date: Mon, 26 Dec 2022 08:38:29 -0600 Content-Type: multipart/mixed; boundary="=-oVUnWKe3VvccvTJ60wk1" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 X-Zoho-Virus-Status: 1 X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.11; envelope-from=me@zv.io; helo=sender4-op-o11.zoho.com 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 26 Dec 2022 10:29:38 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-oVUnWKe3VvccvTJ60wk1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit The test tests/cp/proc-short-read.sh attempts to remove common differences in the output of /proc/cpuinfo: # adjust varying parts sed '/MHz/d; /bogomips/d;' 1 > proc.cp || framework_failure_ sed '/MHz/d; /bogomips/d;' 2 > proc.cat || framework_failure_ However the string "bogomips" may differ in capitalization across different architectures [1]. Testing on a big.LITTLE system uncovered this assumption. Linux DietPi 5.4.225-odroidxu4 #22.11.1 SMP PREEMPT Wed Nov 30 10:55:16 UTC 2022 armv7l GNU/Linux Still present as of 9581c4b59d2e11cd090613cd300a833b4441d2b5. Proposed patch attached, which aims to be minimally invasive. References: [1]: https://git.adelielinux.org/adelie/packages/-/issues/943 --=-oVUnWKe3VvccvTJ60wk1 Content-Disposition: attachment; filename="tests-cp-proc-short-read.patch" Content-Type: text/x-patch; name="tests-cp-proc-short-read.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3Rlc3RzL2NwL3Byb2Mtc2hvcnQtcmVhZC5zaCBiL3Rlc3RzL2NwL3Byb2Mt c2hvcnQtcmVhZC5zaAppbmRleCBiZWRiMDhlMDYuLjg5ZGJhOGQzZCAxMDA3NTUKLS0tIGEvdGVz dHMvY3AvcHJvYy1zaG9ydC1yZWFkLnNoCisrKyBiL3Rlc3RzL2NwL3Byb2Mtc2hvcnQtcmVhZC5z aApAQCAtMjgsOCArMjgsOCBAQCBjcCAkcHJvY19sYXJnZSAxICAgIHx8IGZhaWw9MQogY2F0ICRw cm9jX2xhcmdlID4gMiB8fCBmYWlsPTEKIAogIyBhZGp1c3QgdmFyeWluZyBwYXJ0cwotc2VkICcv TUh6L2Q7IC9ib2dvbWlwcy9kOycgMSA+IHByb2MuY3AgfHwgZnJhbWV3b3JrX2ZhaWx1cmVfCi1z ZWQgJy9NSHovZDsgL2JvZ29taXBzL2Q7JyAyID4gcHJvYy5jYXQgfHwgZnJhbWV3b3JrX2ZhaWx1 cmVfCitzZWQgJy9NSHovZDsgL1tCYl1bT29dW0dnXVtPb11bTW1dW0lpXVtQcF1bU3NdL2Q7JyAx ID4gcHJvYy5jcCB8fCBmcmFtZXdvcmtfZmFpbHVyZV8KK3NlZCAnL01Iei9kOyAvW0JiXVtPb11b R2ddW09vXVtNbV1bSWldW1BwXVtTc10vZDsnIDIgPiBwcm9jLmNhdCB8fCBmcmFtZXdvcmtfZmFp bHVyZV8KIAogY29tcGFyZSBwcm9jLmNwIHByb2MuY2F0IHx8IGZhaWw9MQogCg== --=-oVUnWKe3VvccvTJ60wk1-- ------------=_1672074782-8949-1--