t/Makefile: teach `make test` and `make prove` to run chainlint.pl
commit69b9924b875079babb1d3f665bdc719c4871ba73
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 1 Sep 2022 00:29:55 +0000 (1 00:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Sep 2022 17:07:41 +0000 (1 10:07 -0700)
tree092c004f187f519e93f31e4fa8fbca425387a490
parent23a14f301662df6d003b5bf4dc598f02311c6b30
t/Makefile: teach `make test` and `make prove` to run chainlint.pl

Unlike chainlint.sed which "lints" a single test body at a time, thus is
invoked once per test, chainlint.pl can check all test bodies in all
test scripts with a single invocation. As such, it is akin to other bulk
"linters" run by the Makefile, such as `test-lint-shell-syntax`,
`test-lint-duplicates`, etc.

Therefore, teach `make test` and `make prove` to invoke chainlint.pl
along with the other bulk linters. Also, since the single chainlint.pl
invocation by `make test` or `make prove` has already checked all tests
in all scripts, instruct the individual test scripts not to run
chainlint.pl on themselves unnecessarily.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/Makefile