]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: Replace REQUIRE_BINARIES with 'command -v'
authorTim Duesterhus <tim@bastelstu.be>
Fri, 11 Jun 2021 17:56:17 +0000 (19:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 12:59:55 +0000 (14:59 +0200)
This migrates the tests to the native `feature cmd` functionality of VTest.

reg-tests/mcli/mcli_start_progs.vtc
reg-tests/ssl/add_ssl_crt-list.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_cert.vtc
reg-tests/ssl/set_ssl_cert_bundle.vtc
reg-tests/ssl/set_ssl_cert_noext.vtc
reg-tests/ssl/set_ssl_crlfile.vtc
reg-tests/ssl/set_ssl_server_cert.vtc
reg-tests/ssl/show_ssl_ocspresponse.vtc

index 08de157f1854302381217d2c74702dbe95002da4..eb6f635020fb831c05a1472b52a6a01ebbcc7ec8 100644 (file)
@@ -1,7 +1,7 @@
 varnishtest "Try to start a master CLI with 2 programs"
 #REGTEST_TYPE=bug
 #REQUIRE_VERSION=2.0
-#REQUIRE_BINARIES=sleep
+feature cmd "command -v sleep"
 
 feature ignore_unknown_macro
 
index ca52285011c27a39a259abd0b9627e0650ac442e..7aae2338af55b0eec790835adf19c0ab9fb88a6f 100644 (file)
@@ -13,7 +13,7 @@
 varnishtest "Test the 'add ssl crt-list' feature of the CLI"
 #REQUIRE_VERSION=2.2
 #REQUIRE_OPTIONS=OPENSSL
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 2 {
index 536db5007c07cab4215fd981ff4ac4c640edc2be..1b5bef1a40299083eb283090e9eff6c54874dbec 100644 (file)
@@ -11,7 +11,7 @@
 varnishtest "Test the 'new ssl ca-file' and 'del ssl ca-file' commands of the CLI"
 feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 feature cmd "$HAPROXY_PROGRAM -cc 'feature(OPENSSL)'"
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 2 {
index eeed09cafc5cf5c16a0500785e44d8ee17b1050e..54bbdc23946ebc4a6a7f46cbb118acf3c158d938 100644 (file)
@@ -11,7 +11,7 @@
 varnishtest "Test the 'new ssl crl-file' and 'del ssl crl-file' commands of the CLI"
 feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 feature cmd "$HAPROXY_PROGRAM -cc 'feature(OPENSSL)'"
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 3 {
index 5dcfaf9892c07162a8e6123e61cc93845b2a5452..72ce3e6dc1034eeae9cd4983330018988a46b570 100644 (file)
@@ -17,7 +17,7 @@
 varnishtest "Test the 'set ssl ca-file' feature of the CLI"
 feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 feature cmd "$HAPROXY_PROGRAM -cc 'feature(OPENSSL)'"
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 4 {
index c4d0883064805b1772f0184b7c55178be467e36d..85684bc3e5ecd9341e0eca277249752253437314 100644 (file)
@@ -22,7 +22,7 @@
 varnishtest "Test the 'set ssl cert' feature of the CLI"
 #REQUIRE_VERSION=2.2
 #REQUIRE_OPTIONS=OPENSSL
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 9 {
index aaec89ddae710ad62ad8317e9a5e538dd0d7bc84..218f7bfb45f665d9cc633642f0dddd45d770ecbc 100644 (file)
@@ -17,7 +17,7 @@
 varnishtest "Test the 'set ssl cert' feature of the CLI with bundles"
 #REQUIRE_VERSION=2.3
 #REQUIRE_OPTIONS=OPENSSL
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 9 {
index f1c42ff84c779dd540211b69b8e704a2587efc35..b7bafa8a3cb7fe3e3e3da93d2005ea438ffdc864 100644 (file)
@@ -14,7 +14,7 @@
 varnishtest "Test the 'set ssl cert' feature of the CLI with separate key and crt"
 #REQUIRE_VERSION=2.2
 #REQUIRE_OPTIONS=OPENSSL
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 3 {
index 4ee7c12257169c91e62250d59bb7bcf76ff0afe7..f6d97ce6be710743d59e0c8f84c280b5b530c754 100644 (file)
@@ -20,7 +20,7 @@
 varnishtest "Test the 'set ssl crl-file' feature of the CLI"
 feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 feature cmd "$HAPROXY_PROGRAM -cc 'feature(OPENSSL)'"
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 4 {
index 0dbef7228db491fc08d9345125b3fca2eb94e986..3fccaa65c1ef89c4eab0d7e8efc16fe6adba3783 100644 (file)
@@ -6,7 +6,7 @@
 varnishtest "Test the 'set ssl cert' feature of the CLI"
 #REQUIRE_VERSION=2.4
 #REQUIRE_OPTIONS=OPENSSL
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 server s1 -repeat 4 {
index 29673a5255a555d6a862d67e817bfe2612a8be64..387f36a2fb300cb4ebf02223f33ee13cc5bf2182 100644 (file)
@@ -21,7 +21,7 @@
 varnishtest "Test the 'show ssl ocsp-response' and 'show ssl cert foo.pem.ocsp' features of the CLI"
 feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
 feature cmd "$HAPROXY_PROGRAM -cc 'feature(OPENSSL)'"
-#REQUIRE_BINARIES=socat
+feature cmd "command -v socat"
 feature ignore_unknown_macro
 
 haproxy h1 -conf {