From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A60EC6FD18 for ; Tue, 18 Apr 2023 20:41:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232768AbjDRUlE (ORCPT ); Tue, 18 Apr 2023 16:41:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232613AbjDRUkz (ORCPT ); Tue, 18 Apr 2023 16:40:55 -0400 Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26288CC17 for ; Tue, 18 Apr 2023 13:40:52 -0700 (PDT) Received: by mail-ua1-x92c.google.com with SMTP id ch24so199007uab.3 for ; Tue, 18 Apr 2023 13:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ttaylorr-com.20221208.gappssmtp.com; s=20221208; t=1681850451; x=1684442451; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=uwLXTEsltaly6sNxrv22iYhcf/YerZr3+fP45JUpHhQ=; b=EtFNphYvH+L6+S/Z0BiXdDIT2dFBPDfOgwTgY2HbD8vHu3Q1lohifR/MzNGIFW9W3Y zRY2+3Jvo96kiwY8j4i5W+FPBOqf8aXbCX8HR6J3HaM3INmfLYt34+oyzDBY3bDmxvip 5rMyaBqz3gN9Qel6M1enp6U8p7zREnl6DlDUGog/Z0eMbUfsW3V2ZEfLXuU4fsTKJPJo ouWx5k37u3WnW2iXXX6Vciu83by2/m2uW3M8n8TDTE1hywTK/HHfLfA+2GY9R9v8jHpK e+/E6CuAjLJOpBa3HaZfY///1/ZEAngdxFpwFXaHR9dik0TxJuExxMIdipsxgfaavYHP sWSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681850451; x=1684442451; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uwLXTEsltaly6sNxrv22iYhcf/YerZr3+fP45JUpHhQ=; b=IFm8lOtEAOXeKmiRmldfVXX7r90qfxUlO65sa1pRY4o4SW0skKbqSqJPU7qIERhWc4 J911zx0TOyVgKDovQ+3zQbm6x2zAMAOdqWOIvyws+kesZhBoEoktTac5vd2nLkVgTiA0 8vP7BHnlRN1qTdU2FP0kXWzpVAF/e2psfr+RQXWs5Mw+cMDepGTuqVagbawl8qJ6W312 CKk1D6Sjcs8N2RRR+HPl4EsOr5Lb+LxKFqp0K+o9fVzCgKg0E4AcaXOfJstaC1bYTCBk K6u2P7+ETTO1VwkZlc6slNCJ3xDnOyms3lQPhMwxBgRW3y67/Xj+z0rsPnQs+2ACnMdc FXwQ== X-Gm-Message-State: AAQBX9fLOuzeSkeaOKBM8ZnJL8q00x/Ykzcw+qyThnNp3tdebdwbI3U0 qZIGvi01PCJvICmwPH81L0wXfQgyxljGzLdamfanRw== X-Google-Smtp-Source: AKy350YSEkxVrir6awQZH4jVjn3OQlyweUufGTLans6BV79GZM/ojE14YHwDw20WV0eOW658P4Wg1A== X-Received: by 2002:a1f:5c58:0:b0:440:499:7747 with SMTP id q85-20020a1f5c58000000b0044004997747mr5971620vkb.10.1681850450909; Tue, 18 Apr 2023 13:40:50 -0700 (PDT) Received: from localhost (104-178-186-189.lightspeed.milwwi.sbcglobal.net. [104.178.186.189]) by smtp.gmail.com with ESMTPSA id df5-20020a05690c0f8500b0054f9a3b60a1sm3281018ywb.33.2023.04.18.13.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 13:40:50 -0700 (PDT) Date: Tue, 18 Apr 2023 16:40:49 -0400 From: Taylor Blau To: git@vger.kernel.org Cc: Jeff King , Derrick Stolee , Junio C Hamano Subject: [PATCH v2 07/10] t/t6500-gc.sh: add additional test cases Message-ID: <9db3fa9e36dce3fc7819f7c93e2af7ac6afcb326.1681850424.git.me@ttaylorr.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org In the last commit, we refactored some of the tests in t6500 to make clearer when cruft packs will and won't be generated by `git gc`. Add the remaining cases not covered by the previous patch into this one, which enumerates all possible combinations of arguments that will produce (or not produce) a cruft pack. This prepares us for a future commit which will change the default value of `gc.cruftPacks` by ensuring that we understand which invocations do and do not change as a result. Signed-off-by: Taylor Blau --- t/t6500-gc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/t6500-gc.sh b/t/t6500-gc.sh index a2f988c5c2..3ba2ae5140 100755 --- a/t/t6500-gc.sh +++ b/t/t6500-gc.sh @@ -218,6 +218,7 @@ assert_no_cruft_packs () { for argv in \ "gc --cruft" \ "-c gc.cruftPacks=true gc" \ + "-c gc.cruftPacks=false gc --cruft" \ "-c feature.experimental=true gc" \ "-c gc.cruftPacks=true -c feature.experimental=false gc" do @@ -243,6 +244,9 @@ do done for argv in \ + "gc" \ + "-c gc.cruftPacks=false gc" \ + "-c gc.cruftPacks=true gc --no-cruft" \ "-c feature.expiremental=true -c gc.cruftPacks=false gc" \ "-c feature.experimental=false gc" do -- 2.40.0.362.gc67ee7c2ff