git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-grep: Update tests (mainly for -P)

From
Junio C Hamano <gitster@pobox.com>
Date
May 23, 2011, 18:57 UTC
Message-ID
<7vei3pt3yj.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1306064248-23092-1-git-send-email-michal.kiedrowicz@gmail.com>
Michał Kiedrowicz <michal.kiedrowicz@gmail.com> writes:
Show 11 quoted lines
> This patch adds few more tests to git-grep concerning the
> -P/--perl-regexp option.
>
> While at it, add some generic tests for grep.extendedRegexp config
> option, for detecting invalid regexep and check if "last one wins" rule
> works for selecting regexp type.
>
> Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
> ---
> This is the promised update to tests and is meant to be applied on top of
> mk/grep-pcre.
Thanks, will queue.
Show 16 quoted lines
>  t/t7810-grep.sh |   85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 85 insertions(+), 0 deletions(-)
>
> diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh
> index e845218..e061108 100755
> --- a/t/t7810-grep.sh
> +++ b/t/t7810-grep.sh
> @@ -32,6 +32,11 @@ test_expect_success setup '
>  		echo Hello_world
>  		echo HeLLo_world
>  	} >hello_world &&
> +	{
> +		echo aab
> +		echo a+b
> +		echo a\\+b
> +	} >ab &&

At some point it would be a good idea to clean these up to use either cascading && or

	cat >ab <<\-EOF &&
        ...
        EOF
everywhere.
Previous: Michał Kiedrowicz
Message 2 of 2 in “git-grep: Update tests (mainly for -P)”
  1. git-grep: Update tests (mainly for -P)Michał Kiedrowicz, May 22, 2011
  2. Junio C HamanoMay 23, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.