Merge branch 'nd/combined-test-helper'
Small test-helper programs have been consolidated into a single binary. * nd/combined-test-helper: (36 commits) t/helper: merge test-write-cache into test-tool t/helper: merge test-wildmatch into test-tool t/helper: merge test-urlmatch-normalization into test-tool t/helper: merge test-subprocess into test-tool t/helper: merge test-submodule-config into test-tool t/helper: merge test-string-list into test-tool t/helper: merge test-strcmp-offset into test-tool t/helper: merge test-sigchain into test-tool t/helper: merge test-sha1-array into test-tool t/helper: merge test-scrap-cache-tree into test-tool t/helper: merge test-run-command into test-tool t/helper: merge test-revision-walking into test-tool t/helper: merge test-regex into test-tool t/helper: merge test-ref-store into test-tool t/helper: merge test-read-cache into test-tool t/helper: merge test-prio-queue into test-tool t/helper: merge test-path-utils into test-tool t/helper: merge test-online-cpus into test-tool t/helper: merge test-mktemp into test-tool t/helper: merge (unused) test-mergesort into test-tool ...
This commit is contained in:
@ -8,7 +8,7 @@ test_perf_default_repo
|
||||
|
||||
count=1000
|
||||
test_perf "read_cache/discard_cache $count times" "
|
||||
test-read-cache $count
|
||||
test-tool read-cache $count
|
||||
"
|
||||
|
||||
test_done
|
||||
|
@ -7,8 +7,8 @@ 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 &&
|
||||
if test-lazy-init-name-hash --dump --multi >out.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 &&
|
||||
@ -46,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 REPO_BIG_ENOUGH_FOR_MULTI "multi-threaded, $desc" "
|
||||
test-lazy-init-name-hash --multi --count=$count
|
||||
test-tool lazy-init-name-hash --multi --count=$count
|
||||
"
|
||||
|
||||
test_done
|
||||
|
@ -23,7 +23,7 @@ test_expect_success "setup repo" '
|
||||
|
||||
count=3
|
||||
test_perf "write_locked_index $count times ($nr_files files)" "
|
||||
test-write-cache $count
|
||||
test-tool write-cache $count
|
||||
"
|
||||
|
||||
test_done
|
||||
|
@ -16,7 +16,7 @@ test_perf 'sort(1)' '
|
||||
'
|
||||
|
||||
test_perf 'string_list_sort()' '
|
||||
test-string-list sort <unsorted >actual
|
||||
test-tool string-list sort <unsorted >actual
|
||||
'
|
||||
|
||||
test_expect_success 'string_list_sort() sorts like sort(1)' '
|
||||
|
@ -118,7 +118,7 @@ test_expect_success "setup for fsmonitor" '
|
||||
'
|
||||
|
||||
if test -n "$GIT_PERF_7519_DROP_CACHE"; then
|
||||
test-drop-caches
|
||||
test-tool drop-caches
|
||||
fi
|
||||
|
||||
test_perf "status (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
@ -126,7 +126,7 @@ test_perf "status (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
'
|
||||
|
||||
if test -n "$GIT_PERF_7519_DROP_CACHE"; then
|
||||
test-drop-caches
|
||||
test-tool drop-caches
|
||||
fi
|
||||
|
||||
test_perf "status -uno (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
@ -134,7 +134,7 @@ test_perf "status -uno (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
'
|
||||
|
||||
if test -n "$GIT_PERF_7519_DROP_CACHE"; then
|
||||
test-drop-caches
|
||||
test-tool drop-caches
|
||||
fi
|
||||
|
||||
test_perf "status -uall (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
@ -148,7 +148,7 @@ test_expect_success "setup without fsmonitor" '
|
||||
'
|
||||
|
||||
if test -n "$GIT_PERF_7519_DROP_CACHE"; then
|
||||
test-drop-caches
|
||||
test-tool drop-caches
|
||||
fi
|
||||
|
||||
test_perf "status (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
@ -156,7 +156,7 @@ test_perf "status (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
'
|
||||
|
||||
if test -n "$GIT_PERF_7519_DROP_CACHE"; then
|
||||
test-drop-caches
|
||||
test-tool drop-caches
|
||||
fi
|
||||
|
||||
test_perf "status -uno (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
@ -164,7 +164,7 @@ test_perf "status -uno (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
'
|
||||
|
||||
if test -n "$GIT_PERF_7519_DROP_CACHE"; then
|
||||
test-drop-caches
|
||||
test-tool drop-caches
|
||||
fi
|
||||
|
||||
test_perf "status -uall (fsmonitor=$INTEGRATION_SCRIPT)" '
|
||||
|
Reference in New Issue
Block a user