@@ -22,11 +22,6 @@ etc.) we will test the patterns under those numbers of threads.
test_perf_large_repo
test_checkout_worktree
-if test -n "$GIT_PERF_GREP_THREADS"
-then
- test_set_prereq PERF_GREP_ENGINES_THREADS
-fi
-
for pattern in \
'how.to' \
'^how to' \
@@ -47,7 +42,7 @@ do
else
prereq=""
fi
- if ! test_have_prereq PERF_GREP_ENGINES_THREADS
+ if test -z "$GIT_PERF_GREP_THREADS"
then
test_perf "$engine grep$GIT_PERF_7820_GREP_OPTS '$pattern'" \
--prereq "$prereq" "
@@ -64,7 +59,7 @@ do
fi
done
- if ! test_have_prereq PERF_GREP_ENGINES_THREADS
+ if test -z "$GIT_PERF_GREP_THREADS"
then
test_expect_success "assert that all engines found the same for$GIT_PERF_7820_GREP_OPTS '$pattern'" '
test_cmp out.basic out.extended &&
@@ -16,11 +16,6 @@ etc.) we will test the patterns under those numbers of threads.
test_perf_large_repo
test_checkout_worktree
-if test -n "$GIT_PERF_GREP_THREADS"
-then
- test_set_prereq PERF_GREP_ENGINES_THREADS
-fi
-
for pattern in 'int' 'uncommon' 'æ'
do
for engine in fixed basic extended perl
@@ -31,7 +26,7 @@ do
else
prereq=""
fi
- if ! test_have_prereq PERF_GREP_ENGINES_THREADS
+ if test -z "$GIT_PERF_GREP_THREADS"
then
test_perf "$engine grep$GIT_PERF_7821_GREP_OPTS $pattern" --prereq "$prereq" "
git -c grep.patternType=$engine grep$GIT_PERF_7821_GREP_OPTS $pattern >'out.$engine' || :
@@ -46,7 +41,7 @@ do
fi
done
- if ! test_have_prereq PERF_GREP_ENGINES_THREADS
+ if test -z "$GIT_PERF_GREP_THREADS"
then
test_expect_success "assert that all engines found the same for$GIT_PERF_7821_GREP_OPTS $pattern" '
test_cmp out.fixed out.basic &&
@@ -11,11 +11,6 @@ etc.) we will test the patterns under those numbers of threads.
test_perf_large_repo
test_checkout_worktree
-if test -n "$GIT_PERF_GREP_THREADS"
-then
- test_set_prereq PERF_GREP_ENGINES_THREADS
-fi
-
for pattern in \
'\\bhow' \
'\\bÆvar' \
@@ -24,7 +19,7 @@ for pattern in \
'\\w{12}\\b'
do
echo '$pattern' >pat
- if ! test_have_prereq PERF_GREP_ENGINES_THREADS
+ if test -z "$GIT_PERF_GREP_THREADS"
then
test_perf "grep -P '$pattern'" --prereq PCRE "
git -P grep -f pat || :
There is no point in setting PERF_GREP_ENGINES_THREADS if we are going to check it ourselves. Cc: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- t/perf/p7820-grep-engines.sh | 9 ++------- t/perf/p7821-grep-engines-fixed.sh | 9 ++------- t/perf/p7822-grep-perl-character.sh | 7 +------ 3 files changed, 5 insertions(+), 20 deletions(-)