Re: [PATCH V2] get_maintainer: Add more --self-test options

From: Tom Saeger
Date: Tue Nov 07 2017 - 14:09:10 EST


Looks good, spits out ~200 issues in current MAINTAINERS file.

On Tue, Nov 07, 2017 at 09:26:41AM -0800, Joe Perches wrote:
> Add tests for duplicate section headers, missing section content,
> link and scm reachability.
>
> Miscellanea:
>
> o Add --self-test=<foo> options
> (a comma separated list of any of sections, patterns, links or scm)
> where the default without options is all tests
> o Rename check_maintainers_patterns to self_test
> o Rename self_test_pattern_info to self_test_info
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> Improved-by: Tom Saeger <tom.saeger@xxxxxxxxxx>

Reviewed-by: Tom Saeger <tom.saeger@xxxxxxxxxx>

> ---
>
> V2:
>
> o Add scm tests
> o Move $is_bad test out one level (Tom)
> o Improve git test for specific branches (Tom)
>
> scripts/get_maintainer.pl | 149 ++++++++++++++++++++++++++++++++++++++++------
> 1 file changed, 132 insertions(+), 17 deletions(-)