]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: Replace REQUIRE_VERSION=2.5 with 'haproxy -cc'
authorTim Duesterhus <tim@bastelstu.be>
Fri, 11 Jun 2021 17:56:15 +0000 (19:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 12:59:55 +0000 (14:59 +0200)
This is safe, because running `haproxy -cc 'version_atleast(2.5-dev0)'` on
HAProxy 2.4 will also result in an exit code of 1.

reg-tests/http-messaging/http_abortonclose.vtc
reg-tests/ssl/new_del_ssl_cafile.vtc
reg-tests/ssl/new_del_ssl_crlfile.vtc
reg-tests/ssl/set_ssl_cafile.vtc
reg-tests/ssl/set_ssl_crlfile.vtc
reg-tests/ssl/show_ssl_ocspresponse.vtc
reg-tests/startup/check_condition.vtc

index 49cdaeadd1c24822a25f6968940ce7ba6890417e..c083f29f1a50db45b5f37f93513aa32f097a4432 100644 (file)
@@ -4,7 +4,7 @@ feature ignore_unknown_macro
 # NOTE : This test may fail if too many vtest are running in parallel because
 #        the port reserved for closed s1 server may be reused by another vtest
 
-#REQUIRE_VERSION=2.5
+feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 #REGTEST_TYPE=slow
 
 # b1 : Don't send /c4 before /c3 was received by s2 server
index 613e128665286410d8ee7c6b24ff70b964e62b9e..f943a6632e39479c0091a4abce81903440566379 100644 (file)
@@ -9,7 +9,7 @@
 # - Check that you have socat
 
 varnishtest "Test the 'new ssl ca-file' and 'del ssl ca-file' commands of the CLI"
-#REQUIRE_VERSION=2.5
+feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 #REQUIRE_OPTIONS=OPENSSL
 #REQUIRE_BINARIES=socat
 feature ignore_unknown_macro
index 0d82200e7f7c29fa21d0fa1a129387f9739b2dc9..027f00096f26391a597859c0739d90d77f7f4727 100644 (file)
@@ -9,7 +9,7 @@
 # - Check that you have socat
 
 varnishtest "Test the 'new ssl crl-file' and 'del ssl crl-file' commands of the CLI"
-#REQUIRE_VERSION=2.5
+feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 #REQUIRE_OPTIONS=OPENSSL
 #REQUIRE_BINARIES=socat
 feature ignore_unknown_macro
index eb625639bf50a96693254adc047bd414b16ba750..2f4ef2e8a8422b314bc5dca92379b5e6245bbc23 100644 (file)
@@ -15,7 +15,7 @@
 # - Check that you have socat
 
 varnishtest "Test the 'set ssl ca-file' feature of the CLI"
-#REQUIRE_VERSION=2.5
+feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 #REQUIRE_OPTIONS=OPENSSL
 #REQUIRE_BINARIES=socat
 feature ignore_unknown_macro
index 7060a1477c02ed1b0f0fbbaf786e4b83b62d78df..d3aad9065ce430d345c8df43e5ac1c753ca37041 100644 (file)
@@ -18,7 +18,7 @@
 # - Check that you have socat
 
 varnishtest "Test the 'set ssl crl-file' feature of the CLI"
-#REQUIRE_VERSION=2.5
+feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 #REQUIRE_OPTIONS=OPENSSL
 #REQUIRE_BINARIES=socat
 feature ignore_unknown_macro
index b7a2d51051f39f738ea4cb00ff5431be62edba7b..a942f2c4781061f59bf638122b907ebf2be6450a 100644 (file)
@@ -19,7 +19,7 @@
 # - Check that you have socat
 
 varnishtest "Test the 'show ssl ocsp-response' and 'show ssl cert foo.pem.ocsp' features of the CLI"
-#REQUIRE_VERSION=2.5
+feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 #REQUIRE_OPTIONS=OPENSSL
 #REQUIRE_BINARIES=socat
 feature ignore_unknown_macro
index 7d3324bfee9c1f5f7051a32830040fcbd3cceb97..d56d73fde9c36ebca05fae6766888dbeb792cb12 100644 (file)
@@ -1,6 +1,5 @@
 varnishtest "Tests the -cc argument"
 
-#REQUIRE_VERSION=2.5
 feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 
 shell {