]> git.ipfire.org Git - thirdparty/haproxy.git/commit
SCRIPT: run-regtests: avoid calling awk to compute the version
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Nov 2021 14:32:16 +0000 (15:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Nov 2021 16:54:49 +0000 (17:54 +0100)
commitb7a28e7bc854ee1dc08db7c0b43c6fea576a7c46
tree98cb8c8189a780c78fc88780d4587c57720e1f45
parent0b3eb81c6b67ebca09a8ec01c8125b17d3745ede
SCRIPT: run-regtests: avoid calling awk to compute the version

For each test, the version number is evaluated using a call to awk,
which can be slow to start depending on the versions and OS. This is
only needed for a printf() call to keep only leading digits of each
component, multiply them by 1000 and pad them to 3 digits, something
that's clearly doable in plain shell in a portable way. This is what
this patch does, and it saves yet another 400 ms here on the full
test sequence.
scripts/run-regtests.sh