]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST/MINOR: Add a new class of regression testing files.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 22 Aug 2018 08:41:33 +0000 (10:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Aug 2018 13:47:10 +0000 (15:47 +0200)
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.

Makefile
reg-tests/log/b00000.vtc [moved from reg-tests/log/h00000.vtc with 100% similarity]
reg-tests/lua/b00000.lua [moved from reg-tests/lua/h00000.lua with 100% similarity]
reg-tests/lua/b00000.vtc [moved from reg-tests/lua/h00000.vtc with 97% similarity]
reg-tests/seamless-reload/b00000.vtc [moved from reg-tests/seamless-reload/h00000.vtc with 100% similarity]
reg-tests/spoe/b00000.vtc [moved from reg-tests/spoe/h00000.vtc with 100% similarity]
reg-tests/ssl/b00000.vtc [moved from reg-tests/ssl/h00000.vtc with 100% similarity]
reg-tests/stick-table/b00000.vtc [moved from reg-tests/stick-table/h00000.vtc with 100% similarity]

index 817161f76a4cc500d7e4c35c4da167963fd39795..c49239958888b05ea2a4bcd3b6ced2be5da4bc22 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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 | \
similarity index 97%
rename from reg-tests/lua/h00000.vtc
rename to reg-tests/lua/b00000.vtc
index 2b2ffb0e7348614d89fd58c0d9aa83c60950907e..4229eeb06c3fa5a66d2ceb06eef1fc090535e5c0 100644 (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