From patchwork Sat Feb 9 18:59:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10804563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F99F13BF for ; Sat, 9 Feb 2019 18:59:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25A482A5AA for ; Sat, 9 Feb 2019 18:59:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01A662A5B5; Sat, 9 Feb 2019 18:59:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C93B92A5AA for ; Sat, 9 Feb 2019 18:59:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727265AbfBIS7p (ORCPT ); Sat, 9 Feb 2019 13:59:45 -0500 Received: from sonic301-7.consmr.mail.bf2.yahoo.com ([74.6.129.46]:43030 "EHLO sonic301-7.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbfBIS7p (ORCPT ); Sat, 9 Feb 2019 13:59:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1549738783; bh=USmud1e/0W9OrSa2RZy71j8gNEDYOvDBIAM8wbwRosk=; h=From:To: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qCb1jztMlmW3eKg6afUwVH2OfRz1xVE2xPFcQ6H9XsUDX9 Ycu5iXwaQIjpzmtJb4jD17r1nqjN6cpADPPAB4TVp_27hvevJzyRUdR2eav4PtybxYq9U4AWvdZk 4zUBy.5cXbauetIdAhbw5q4BkQtxKosM77ngMETJM11K7b.N1XPO_l833qEqKMf3VNyF5178lbul 79bC.TcgSHwUGd8ZCJRfssZ4N0bFdR.uhkO0Hi2awZBg_KDAbW_Ud.7HYZbEGYY8a.WsIV_PB6NL jTASgcBUYyKwgxGbLtzHvXP2nrrIFTQ10Ewd7YgExwwTCY2uvOSvKXIVP_b50gaK0O3tAu6qszEe vcPGlV5iZyaAvs.LD8Rvs1jCOQsVP_l27f79psveG38zh4rSS84Cue8J6gSyfSPRd Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.bf2.yahoo.com with HTTP; Sat, 9 Feb 2019 18:59:43 +0000 Received: from CPE00fc8d49d843-CM00fc8d49d840.cpe.net.cable.rogers.com (EHLO localhost.localdomain) ([99.229.179.249]) by smtp423.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 84a16d171cb60baba1591047a4493b27; Sat, 09 Feb 2019 18:59:43 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [Patch v1 1/3] test-lib-functions.sh: add generate_zero_bytes function Date: Sat, 9 Feb 2019 13:59:28 -0500 Message-Id: <20190209185930.5256-2-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20190209185930.5256-1-randall.s.becker@rogers.com> References: <20190209185930.5256-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" t5318 and t5562 used /dev/zero, which is not portable. This function provides both a fixed block of NUL bytes and an infinite stream of NULs. Signed-off-by: Randall S. Becker --- t/test-lib-functions.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 92cf8f812..bbf68712c 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -116,6 +116,19 @@ remove_cr () { tr '\015' Q | sed -e 's/Q$//' } +# Generate an output of $1 bytes of all zeroes (NULs, not ASCII zeroes). +# If $1 is 'infinity', output forever or until the receiving pipe stops reading, +# whichever comes first. +generate_zero_bytes () { + perl -e 'if ($ARGV[0] == "infinity") { + while (-1) { + print "\0" + } + } else { + print "\0" x $ARGV[0] + }' "$@" +} + # In some bourne shell implementations, the "unset" builtin returns # nonzero status when a variable to be unset was not set in the first # place. From patchwork Sat Feb 9 18:59:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10804569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6CC1F1575 for ; Sat, 9 Feb 2019 18:59:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DFFB2A5AA for ; Sat, 9 Feb 2019 18:59:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 529EB2A5AF; Sat, 9 Feb 2019 18:59:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3B8F2A5B5 for ; Sat, 9 Feb 2019 18:59:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727392AbfBIS7u (ORCPT ); Sat, 9 Feb 2019 13:59:50 -0500 Received: from sonic304-14.consmr.mail.bf2.yahoo.com ([74.6.128.37]:43263 "EHLO sonic304-14.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfBIS7s (ORCPT ); Sat, 9 Feb 2019 13:59:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1549738787; bh=q2MF1sUV83CYJ7dMdT7TSDEmhoB0cILrbwOT39Wgm0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject; b=lkcNaOI1SxiP8heWxjGlyEHpdN9TEVIIe29SljdB0WqaEcd54ngg13VXE5dFHOV8zxnF37uoqwmUFYO2rb41ZNcz/oRbJtqJ/nytj7XxG2WzsH2pJVyEX/agtyj8Col8XbhVK6Mb+1cgUhaplb6WzsVXyhJns9lc+9mCsi9q5GLIziSOaivcIyBbYqPD2lK16Aq0ofGKXZs9spIwZuNTgdY2rDzSoXrQVMnEI2anR4NCsFJ2XF7ykA6Z5o5H+imoeg9mZGcnUhU59kEKFvfg/+bFTm2sOF7WTvtQfbRkH6oz2XRqdFZZD7XWz3n1NZVH30x0xIac7eavbt6avpHlNg== X-YMail-OSG: 195yj1MVM1lPKF_yvAtwdUttDzjPxawB_C6deIB3xSXqt0HoEeB8Q5Ke4U2Dsvt XVgMgtLGRcKih.xR6mbTtshYGDmzK1lk.BxLksngXnhmkRDwWX4Bo05Gyyl_CqY6YB9F13gwWxpu lSkin0kGx.TmVTxzW_jkWtbDfC1YUHbimiVIWzSyMz7tNRDMLn9gZQE3_2FGno_suud4Xv.lLG_q elU.6DdxjaZwBPEG_aKu3qLrr9BqpVsId7xT8_ynidTubLfHCBfqlvLOGshTUTFaKjN7vpSevJ3D KHv2ZI.tnfVZ1GrvUFoqvvUsOLcjsec5TzEK9dY2i8nCU.ZBm1ch2OwI2Jyzh6rWASbk1ON_vZtb sUW0CCBCVazlsxT4NLd8kVPjVTgqdkiEOT2bBAMaYNSFc33NMayaUzQOuvTl1bnpaPr_1hryHNI8 tIeAxN9e6LlPe2bN.jN9H6O8mHu7q6MdVLnS0JH71oHlAumxiUez6Ny6l32iuSpKEGMbmpTd7rWT Ee7BDargrc_..QmuDyTpjcQOmBC8FNXuGyHUbsQaLiSu2HTqOpHd3UY6OfHNItbn8QSYu4iv7AV8 vFSIAPUSm7MqBZWoFV.bzr_ZsaBSemfAx58Oza4UhQ2JpbH2Js.WAEUx.vrfZ2qhNuA_FroXsvKB oiVBPQwCRunbnNRHetSbW5qop_obwvAmWw.QQitQlGmleQ68XQwbDePpICxh9NsEEAa6wUdw0jnl TdJekzkGtTzwaiPMzfP41BIyao7ETywAfS2w82wRpTBeLRYdXifpWDUzQE0e2b7Dan_MpeVR.hnT oP9A.KE8QnudGFfipJ0Lm1ZV_gN6YUad5BaZs9WlTMU8X88M6Ey7fqnIoEtejTJf5Rm258icfo8d GIuXjqx.E_nzrlii4ABCFGolcClvgUA0K5YbX5MWvQy8yAD2IioJRUMbUWfDJvmfnRuiLuxZrsBq _re4O9KKXOsshoB4Onq3xWV37qubq.PdxqbYF47jcfcKThaayGKhIo0vtufcURmK0c2Lg3cTS1hm hf166iw2mAVn.AFDLNP_9kNvFJVC48T7JmlDk5iDCkc2BoVopIrgtdaa9TAdRWvP6KtLvhncWaQR NZKjWW99Gkdl8PYzVEkSsDkYQVA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Sat, 9 Feb 2019 18:59:47 +0000 Received: from CPE00fc8d49d843-CM00fc8d49d840.cpe.net.cable.rogers.com (EHLO localhost.localdomain) ([99.229.179.249]) by smtp423.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 84a16d171cb60baba1591047a4493b27; Sat, 09 Feb 2019 18:59:43 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [Patch v1 2/3] t5318: replace use of /dev/zero with generate_zero_bytes Date: Sat, 9 Feb 2019 13:59:29 -0500 Message-Id: <20190209185930.5256-3-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20190209185930.5256-1-randall.s.becker@rogers.com> References: <20190209185930.5256-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" This change removes the dependency on /dev/zero with generate_zero_bytes appending NUL values to blocks generating wrong signatures for test cases. Signed-off-by: Randall S. Becker Signed-off-by: Randall S. Becker Signed-off-by: Junio C Hamano --- t/t5318-commit-graph.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh index 16d10ebce..65c1f45b0 100755 --- a/t/t5318-commit-graph.sh +++ b/t/t5318-commit-graph.sh @@ -383,7 +383,7 @@ corrupt_graph_and_verify() { cp $objdir/info/commit-graph commit-graph-backup && printf "$data" | dd of="$objdir/info/commit-graph" bs=1 seek="$pos" conv=notrunc && dd of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" count=0 && - dd if=/dev/zero of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" count=$(($orig_size - $zero_pos)) && + generate_zero_bytes $(($orig_size - $zero_pos)) >> "$objdir/info/commit-graph" && test_must_fail git commit-graph verify 2>test_err && grep -v "^+" test_err >err && test_i18ngrep "$grepstr" err From patchwork Sat Feb 9 18:59:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10804565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1B07213BF for ; Sat, 9 Feb 2019 18:59:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C3D32A5AA for ; Sat, 9 Feb 2019 18:59:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3F4E2A5AF; Sat, 9 Feb 2019 18:59:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E98DE2A5B4 for ; Sat, 9 Feb 2019 18:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727374AbfBIS7s (ORCPT ); Sat, 9 Feb 2019 13:59:48 -0500 Received: from sonic309.consmr.mail.bf2.yahoo.com ([74.6.129.253]:35776 "EHLO sonic309-17.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727013AbfBIS7q (ORCPT ); Sat, 9 Feb 2019 13:59:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1549738785; bh=Qjz8hZhOVxSUV9F563Yo1KVIMkhGKCFT8zd5e5USt5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject; b=D07U/UjYSmaRBmZm5y1VlRfqJtN6xi2FtA7jO6OEXF1PKnmWgnDo9WUejNuTkgYK2HEon2KsjZ9eWKIhnmoyU3yLDPxQsNeLiLe9aih4+5h6vQVf5Ah6Yhmuq6Lu4Yf8f0afeKYyUqGKjNMQ3kCw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ARREejFrVmX o82t05U6qhBz3kJUkf90jByzq4QrcjsW8Cs0ca41z6p1SNy4JGRsY0BB6t_Rm0iTXLYJjxWNSrTN TzXnkat0PeXvq1XuKlWHnE9zgKs823q70Dwm3XbKY5XE0l6Uo_PYa2HOCvBaQ1Fyw1ZKV7Sgn.y8 ZoQxeKzdsa30slTW3onc3XuK7tYS7iwk.W85zsVEQnLk9RuA7UFmhAznMEfeJxZbbZnA4caBC200 kB_IDv0uabgHILvMDX3LX_ModgC0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Sat, 9 Feb 2019 18:59:45 +0000 Received: from CPE00fc8d49d843-CM00fc8d49d840.cpe.net.cable.rogers.com (EHLO localhost.localdomain) ([99.229.179.249]) by smtp423.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 84a16d171cb60baba1591047a4493b27; Sat, 09 Feb 2019 18:59:43 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [Patch v1 3/3] t5562: replace /dev/zero with a pipe from generate_zero_bytes Date: Sat, 9 Feb 2019 13:59:30 -0500 Message-Id: <20190209185930.5256-4-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20190209185930.5256-1-randall.s.becker@rogers.com> References: <20190209185930.5256-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" This change removes the dependency on /dev/zero with an equivalent pipe of deliberately NUL bytes. This allows tests to proceed where /dev/zero does not exist. Signed-off-by: Randall S. Becker --- t/t5562-http-backend-content-length.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t5562-http-backend-content-length.sh b/t/t5562-http-backend-content-length.sh index 90d890d02..bbadde2c6 100755 --- a/t/t5562-http-backend-content-length.sh +++ b/t/t5562-http-backend-content-length.sh @@ -143,14 +143,14 @@ test_expect_success GZIP 'push gzipped empty' ' test_expect_success 'CONTENT_LENGTH overflow ssite_t' ' NOT_FIT_IN_SSIZE=$(ssize_b100dots) && - env \ + generate_zero_bytes infinity | env \ CONTENT_TYPE=application/x-git-upload-pack-request \ QUERY_STRING=/repo.git/git-upload-pack \ PATH_TRANSLATED="$PWD"/.git/git-upload-pack \ GIT_HTTP_EXPORT_ALL=TRUE \ REQUEST_METHOD=POST \ CONTENT_LENGTH="$NOT_FIT_IN_SSIZE" \ - git http-backend /dev/null 2>err && + git http-backend >/dev/null 2>err && grep "fatal:.*CONTENT_LENGTH" err '