REGTEST/MINOR: Add a new class of regression testing files.

Add LEVEL #4 regression testing files which is dedicated to
VTC files in relation with bugs they help to reproduce.
At the date of this commit, all VTC files are LEVEL 4 VTC files.
This commit is contained in:
Frdric Lcaille 2018-08-22 10:41:33 +02:00 committed by Willy Tarreau
parent fe5463ebf2
commit 9931634e71
8 changed files with 8 additions and 1 deletions

View File

@ -999,6 +999,11 @@ update-version:
echo "$(SUBVERS)" > SUBVERS
echo "$(VERDATE)" > VERDATE
# Target to run the regression testing script files.
# LEVEL 1 scripts are dedicated to pure haproxy compliance tests (prefixed with 'h' letter).
# LEVEL 2 scripts are slow scripts (prefixed with 's' letter).
# LEVEL 3 scripts are low interest scripts (prefixed with 'l' letter).
# LEVEL 4 scripts are in relation with bugs they help to reproduce (prefixed with 'b' letter).
reg-tests:
@if [ ! -x "$(VARNISHTEST_PROGRAM)" ]; then \
echo "Please make the VARNISHTEST_PROGRAM variable point to the location of the varnishtest program."; \
@ -1011,6 +1016,8 @@ reg-tests:
EXPR='s*.vtc'; \
elif [ $$LEVEL = 3 ] ; then \
EXPR='l*.vtc'; \
elif [ $$LEVEL = 4 ] ; then \
EXPR='b*.vtc'; \
fi ; \
if [ -n "$$EXPR" ] ; then \
find reg-tests -type f -name "$$EXPR" -print0 | \

View File

@ -40,7 +40,7 @@ server s1 -repeat 2 {
haproxy h1 -conf {
global
lua-load ${testdir}/h00000.lua
lua-load ${testdir}/b00000.lua
frontend fe1
mode http