]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTEST/MINOR: script: add run-regtests.sh script
authorPiBa-NL <PiBa.NL.dev@gmail.com>
Tue, 27 Nov 2018 21:26:38 +0000 (22:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 29 Nov 2018 03:54:45 +0000 (04:54 +0100)
commit7250404b71bc44982e23b62031dfc28262a90452
tree95b2caea13991f16a2d8a48293abdb12238199ad
parent0024a98640d07fa184624aea1e66a5390268ab8b
REGTEST/MINOR: script: add run-regtests.sh script

Some tests require a minimal haproxy version or compilation options to be
able to run successfully. This script allows to add 'requirements' to tests
to check so they will automatically be skipped if a requirement is not met.
The script supports several parameters to slightly modify its behavior
including the directories to search for tests.

Also some features are not available for certain OS's these can also
be 'excluded', this should allow for the complete set of test cases to be
run on any OS against any haproxy release without 'expected failures'.

The test .vtc files will need to be modified to include their 'requirements'
by listing including text options as shown below:
    #EXCLUDE_TARGETS=dos,freebsd,windows
    #REQUIRE_OPTIONS=ZLIB,OPENSSL,LUA
    #REQUIRE_VERSION=0.0
    #REQUIRE_VERSION_BELOW=99.9,
When excluding a OS by its TARGET, please do make a comment why the test
can not succeed on that TARGET.
Makefile
scripts/run-regtests.sh [new file with mode: 0755]