]> git.ipfire.org Git - thirdparty/git.git/commit
chainlint.pl: validate test scripts in parallel
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 1 Sep 2022 00:29:44 +0000 (00:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Sep 2022 17:07:40 +0000 (10:07 -0700)
commit29fb2ec384a867ca577335a12f4b45c184e7b642
tree613a9f278f36b8f06b2a205aebcdd77879d6caee
parentd99ebd6d2e57baa3ec45b939d40cf939b85301a3
chainlint.pl: validate test scripts in parallel

Although chainlint.pl has undergone a good deal of optimization during
its development -- increasing in speed significantly -- parsing and
validating 1050+ scripts and 16500+ tests via Perl is not exactly
instantaneous. However, perceived performance can be improved by taking
advantage of the fact that there is no interdependence between test
scripts or test definitions, thus parsing and validating can be done in
parallel. The number of available cores is determined automatically but
can be overridden via the --jobs option.

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