t/t6500-gc.sh: add additional test cases
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 <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Taylor Blau committed
Apr 18, 2023 at 16:40 UTC
b9061bc628673c447996759821cecc399c908331
1 file changed
+4
t/t6500-gc.sh
+4
@@ -218,6 +218,7 @@ assert_no_cruft_packs () {
218
for argv in \
219
"gc --cruft" \
220
"-c gc.cruftPacks=true gc" \
221
+ "-c gc.cruftPacks=false gc --cruft" \
222
"-c feature.experimental=true gc" \
223
"-c gc.cruftPacks=true -c feature.experimental=false gc"
224
do
@@ -243,6 +244,9 @@ do
244
done
245
246
for argv in \
247
+ "gc" \
248
+ "-c gc.cruftPacks=false gc" \
249
+ "-c gc.cruftPacks=true gc --no-cruft" \
250
"-c feature.expiremental=true -c gc.cruftPacks=false gc" \
251
"-c feature.experimental=false gc"
252
do