As of 1fc7ddf35b (test-lib: unconditionally enable leak checking,
2024-11-20), both the `GIT_TEST_PASSING_SANITIZE_LEAK` and
`TEST_PASSES_SANITIZE_LEAK` variables no longer have any meaning, the
leak checks are enabled by default. However, some newly added tests
include them by mistake. Let's clean this up.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Acked-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
29 lines
566 B
Bash
Executable File
29 lines
566 B
Bash
Executable File
#!/bin/sh
|
|
|
|
test_description='Tests pack performance using bitmaps'
|
|
. ./perf-lib.sh
|
|
|
|
test_perf_large_repo
|
|
|
|
test_size 'paths at head' '
|
|
git ls-tree -r --name-only HEAD >path-list &&
|
|
wc -l <path-list &&
|
|
test-tool name-hash <path-list >name-hashes
|
|
'
|
|
|
|
for version in 1 2
|
|
do
|
|
test_size "distinct hash value: v$version" '
|
|
awk "{ print \$$version; }" <name-hashes | sort | \
|
|
uniq -c >name-hash-count &&
|
|
wc -l <name-hash-count
|
|
'
|
|
|
|
test_size "maximum multiplicity: v$version" '
|
|
sort -nr <name-hash-count | head -n 1 | \
|
|
awk "{ print \$1; }"
|
|
'
|
|
done
|
|
|
|
test_done
|