3 test_description="Comparison of git-log's --grep regex engines with -F
5 Set GIT_PERF_4221_LOG_OPTS in the environment to pass options to
6 git-grep. Make sure to include a leading space,
7 e.g. GIT_PERF_4221_LOG_OPTS=' -i'. Some options to try:
17 test_checkout_worktree
19 for pattern in 'int' 'uncommon' 'æ'
21 for engine in fixed basic extended perl
23 if test $engine = "perl" && ! test_have_prereq PCRE
29 test_perf $prereq "$engine log$GIT_PERF_4221_LOG_OPTS --grep='$pattern'" "
30 git -c grep.patternType=$engine log --pretty=format:%h$GIT_PERF_4221_LOG_OPTS --grep='$pattern' >'out.$engine' || :
34 test_expect_success "assert that all engines found the same for$GIT_PERF_4221_LOG_OPTS '$pattern'" '
35 test_cmp out.fixed out.basic &&
36 test_cmp out.fixed out.extended &&
37 if test_have_prereq PCRE
39 test_cmp out.fixed out.perl