Add missing includes and forward declarations
[gitweb.git] / t / perf / p0004-lazy-init-name-hash.sh
index 3c2135a18527b75e7cae69b827b6732a792fe7cd..1afc08fe7f1990cdf7143f0dfd3cfaa66628ca73 100755 (executable)
@@ -7,11 +7,14 @@ test_perf_large_repo
 test_checkout_worktree
 
 test_expect_success 'verify both methods build the same hashmaps' '
-       test-lazy-init-name-hash --dump --single >out.single &&
-       test-lazy-init-name-hash --dump --multi >out.multi &&
-       sort <out.single >sorted.single &&
-       sort <out.multi >sorted.multi &&
-       test_cmp sorted.single sorted.multi
+       test-tool lazy-init-name-hash --dump --single >out.single &&
+       if test-tool lazy-init-name-hash --dump --multi >out.multi
+       then
+               test_set_prereq REPO_BIG_ENOUGH_FOR_MULTI &&
+               sort <out.single >sorted.single &&
+               sort <out.multi >sorted.multi &&
+               test_cmp sorted.single sorted.multi
+       fi
 '
 
 test_expect_success 'calibrate' '
@@ -43,11 +46,11 @@ test_expect_success 'calibrate' '
 '
 
 test_perf "single-threaded, $desc" "
-       test-lazy-init-name-hash --single --count=$count
+       test-tool lazy-init-name-hash --single --count=$count
 "
 
-test_perf "multi-threaded, $desc" "
-       test-lazy-init-name-hash --multi --count=$count
+test_perf REPO_BIG_ENOUGH_FOR_MULTI "multi-threaded, $desc" "
+       test-tool lazy-init-name-hash --multi --count=$count
 "
 
 test_done