summaryrefslogtreecommitdiff
path: root/t/perf/p2000-sparse-operations.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/perf/p2000-sparse-operations.sh')
-rwxr-xr-xt/perf/p2000-sparse-operations.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/t/perf/p2000-sparse-operations.sh b/t/perf/p2000-sparse-operations.sh
index dddd527..94513c9 100755
--- a/t/perf/p2000-sparse-operations.sh
+++ b/t/perf/p2000-sparse-operations.sh
@@ -59,12 +59,29 @@ test_expect_success 'setup repo and indexes' '
git sparse-checkout set $SPARSE_CONE &&
git config index.version 4 &&
git update-index --index-version=4
+ ) &&
+ git -c core.sparseCheckoutCone=true clone --branch=wide --sparse . sparse-index-v3 &&
+ (
+ cd sparse-index-v3 &&
+ git sparse-checkout init --cone --sparse-index &&
+ git sparse-checkout set $SPARSE_CONE &&
+ git config index.version 3 &&
+ git update-index --index-version=3
+ ) &&
+ git -c core.sparseCheckoutCone=true clone --branch=wide --sparse . sparse-index-v4 &&
+ (
+ cd sparse-index-v4 &&
+ git sparse-checkout init --cone --sparse-index &&
+ git sparse-checkout set $SPARSE_CONE &&
+ git config index.version 4 &&
+ git update-index --index-version=4
)
'
test_perf_on_all () {
command="$@"
- for repo in full-index-v3 full-index-v4
+ for repo in full-index-v3 full-index-v4 \
+ sparse-index-v3 sparse-index-v4
do
test_perf "$command ($repo)" "
(