]> git.ipfire.org Git - thirdparty/git.git/commit
chainlint.pl: add parser to validate tests
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 1 Sep 2022 00:29:42 +0000 (00:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Sep 2022 17:07:40 +0000 (10:07 -0700)
commit6d932e92fcb49b59b780bc018fe550d867bb3d84
tree8362d17f744bbbc3fae5077f94c7aba25bfb9418
parent6594554119811a01888b44112a7daec6fa0312b2
chainlint.pl: add parser to validate tests

Continue fleshing out chainlint.pl by adding TestParser, a parser with
special knowledge about how Git tests should be written; for instance,
it knows that commands within a test body should be chained together
with `&&`. An upcoming parser which plucks test definitions from test
scripts will invoke TestParser for each test body it encounters.

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