haproxy/scripts
Willy Tarreau 969e7afa0d SCRIPTS: run-regtests: reduce the number of processes needed to check options
run-tegtests is starting to take a lot of time to spot which tests are
eligible, because for each test file a lot of "sed" sub-processes are
launched. This commit eliminates calls to sed by using the shell's
internal processing and parsing the VTC file only once. Instead of
extracting each option one by one from the file, all entries that look
like a valid option are passed to a single case/esac statement and their
value is extracted. Splitting into lists is simply done by adjusting the
IFS depending on the list's delimiter, which, contrary to the // pattern
modifier, is supported on every shell.

This was tested on both bash and dash, and the tests' execution time
dropped by 31% from 8.7 seconds to 6.0 seconds.
2021-11-18 17:54:49 +01:00
..
announce-release SCRIPTS: announce-release: fix typo in help message 2021-01-08 14:58:22 +01:00
backport CLEANUP: assorted typo fixes in the code and comments 2020-04-17 09:37:36 +02:00
build-ot.sh SCRIPTS: opentracing: enable parallel builds in build-ot.sh 2021-06-10 07:35:15 +02:00
build-ssl.sh BUILD: adopt script/build-ssl.sh for OpenSSL-3.0.0beta2 2021-08-25 05:16:00 +02:00
build-vtest.sh CI: introduce scripts/build-vtest.sh for installing VTest 2021-05-18 10:48:30 +02:00
create-release REORG: include: move version.h to haproxy/ 2020-06-11 10:18:56 +02:00
git-show-backports SCRIPTS: git-show-backports: re-enable file-based filtering 2021-11-03 08:41:01 +01:00
publish-release SCRIPTS: publish-release: pass -n to gzip to remove timestamp 2020-05-30 06:59:07 +02:00
run-regtests.sh SCRIPTS: run-regtests: reduce the number of processes needed to check options 2021-11-18 17:54:49 +01:00