t/Makefile: add machinery to check correctness of chainlint.sed
commit803394459d40f8d07cef11d49900ba6f72887869
authorEric Sunshine <sunshine@sunshineco.com>
Wed, 11 Jul 2018 06:46:34 +0000 (11 02:46 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jul 2018 16:15:14 +0000 (17 09:15 -0700)
tree5380a4ffae9e89c88855e19aea320199854a75c3
parent878f9883507492fe1734561ea8ddc3c4e9de3c1d
t/Makefile: add machinery to check correctness of chainlint.sed

The --chain-lint option uses heuristics and knowledge of shell syntax to
detect broken &&-chains in subshells by pure textual inspection.
Although the heuristics work well, they are still best-guesses and
future changes could accidentally break assumptions upon which they are
based. To protect against this possibility, tests checking correctness
of the linter itself will be added. As preparation, add a new makefile
"check-chainlint" target and associated machinery.

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