Hi List,

I was wondering how to best run the reg-tests that are 'valid' for FreeBSD.

There are a 2 tests that use abns@ sockets, which seem not available on FreeBSD. Also 1 test is failing for a reason i'm not totally sure if its totally expected to or not..

- /connection/b00000.vtc
probably does not 'really' need abns@ sockets, so changing to unix@ would make it testable on more platforms?

- /log/b00000.vtc
Not exactly sure why this fails/why it was supposed to work.
It either produces a timeout, or the s1 server fails to read the request which the tcp-healthcheck does not send..

    ***  s1    0.0 accepted fd 5 127.0.0.1 23986
    **   s1    0.0 === rxreq
    ---- s1    0.0 HTTP rx failed (fd:5 read: Connection reset by peer)

- /seamless-reload/b00000.vtc
This one specifically mentions testing a abns@ socket functionality. so changing it to a unix@ socket likely changes the test in such a way its no longer testing what it was meant for..
What would be the best way to skip this test on FreeBSD?

With a few small changes (attached) i can run all tests like this, get the following result:

varnishtest -l ./work/haproxy-ss-20180901/reg-tests/*/*.vtc
#    top  TEST ./work/haproxy-ss-20180901/reg-tests/connection/b00000.vtc passed (0.142) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/log/b00000.vtc passed (0.136) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/lua/b00000.vtc passed (0.121) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/lua/b00001.vtc passed (0.133) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/lua/b00002.vtc passed (0.186) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/lua/b00003.vtc passed (0.133) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/lua/h00001.vtc passed (0.120) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/seamless-reload/b00000.vtc passed (0.143) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/spoe/b00000.vtc passed (0.011) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/ssl/b00000.vtc passed (0.146) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/stick-table/b00000.vtc passed (0.120) #    top  TEST ./work/haproxy-ss-20180901/reg-tests/stick-table/b00001.vtc passed (0.122)

Above would be good :).. But well.. needs changing or skipping some tests..

I would like to know next time that 'all' testable reg-tests are working properly when making a new build to take into my production system. If some tests fail by design (on this platform), it takes more administration to figure out if that was okay or not.

Please advice :)

Regards,

PiBa-NL (Pieter)

From 89a5fd48c11dba6a30f468e86e5a7d4bdab6b986 Mon Sep 17 00:00:00 2001
From: PiBa-NL <[email protected]>
Date: Tue, 11 Sep 2018 16:19:21 +0200
Subject: [PATCH] fix freebsd reg-tests it has no abns@ socket ability.. also
 the log/b00000.vtc test fails on the health-check either timing out, or
 failing to read the request from the client when its only perfoming a tcp
 connection check.

---
 reg-tests/connection/b00000.vtc      | 4 ++--
 reg-tests/log/b00000.vtc             | 3 ++-
 reg-tests/seamless-reload/b00000.vtc | 4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/reg-tests/connection/b00000.vtc b/reg-tests/connection/b00000.vtc
index 3a873848..a2b74f73 100644
--- a/reg-tests/connection/b00000.vtc
+++ b/reg-tests/connection/b00000.vtc
@@ -36,14 +36,14 @@ haproxy h1 -conf {
 
     listen http
         bind-process 1
-        bind abns@http accept-proxy name ssl-offload-http
+        bind /tmp/http accept-proxy name ssl-offload-http
         option forwardfor
 
     listen ssl-offload-http
         option httplog
         bind-process 2-4
         bind "fd@${ssl}" ssl crt ${testdir}/common.pem ssl no-sslv3 alpn 
h2,http/1.1
-        server http abns@http send-proxy
+        server http /tmp/http send-proxy
 } -start
 
 
diff --git a/reg-tests/log/b00000.vtc b/reg-tests/log/b00000.vtc
index f0ab7ea1..423c7e7f 100644
--- a/reg-tests/log/b00000.vtc
+++ b/reg-tests/log/b00000.vtc
@@ -24,7 +24,7 @@ feature ignore_unknown_macro
 server s1 {
     rxreq
     txresp
-} -start
+} -repeat 2 -start
 
 syslog Slg_1 -level notice {
     recv
@@ -50,6 +50,7 @@ frontend fe1
     default_backend    be_app
 
 backend be_app
+    option httpchk
     server app1 ${s1_addr}:${s1_port} check
 } -start
 
diff --git a/reg-tests/seamless-reload/b00000.vtc 
b/reg-tests/seamless-reload/b00000.vtc
index 498e0c61..e8507523 100644
--- a/reg-tests/seamless-reload/b00000.vtc
+++ b/reg-tests/seamless-reload/b00000.vtc
@@ -25,10 +25,10 @@ haproxy h1 -W -conf {
 
   listen testme
     bind "fd@${testme}"
-    server test_abns_server abns@wpproc1 send-proxy-v2
+    server test_abns_server /tmp/wpproc1 send-proxy-v2
 
   frontend test_abns
-    bind abns@wpproc1 accept-proxy
+    bind /tmp/wpproc1 accept-proxy
     http-request deny deny_status 200
 } -start
 
-- 
2.18.0.windows.1

Reply via email to