3 test_description
="git-grep's perl regex
5 If GIT_PERF_GREP_THREADS is set to a list of threads (e.g. '1 4 8'
6 etc.) we will test the patterns under those numbers of threads.
12 test_checkout_worktree
14 if test -n "$GIT_PERF_GREP_THREADS"
16 test_set_prereq PERF_GREP_ENGINES_THREADS
27 if ! test_have_prereq PERF_GREP_ENGINES_THREADS
29 test_perf
"grep -P '$pattern'" --prereq PCRE
"
30 git -P grep -f pat || :
33 for threads
in $GIT_PERF_GREP_THREADS
35 test_perf
"grep -P '$pattern' with $threads threads" --prereq PTHREADS
,PCRE
"
36 git -c grep.threads=$threads -P grep -f pat || :