From: Frédéric Lécaille <flecai...@haproxy.com>

With this patch when the test fails it may be useful to collect additional 
information
coming from varnishtes especially when this latter aborts.

For instance without this patch reg-tests/mailers/k_healthcheckmail.vtc does not
produce relevant information.

    $ VARNISHTEST_PROGRAM=<...> make reg-tests 
reg-tests/mailers/k_healthcheckmail.vtc

    ## test results in: ...
  

With this patch these following lines are added to the test results output:

    *    diag  0.0 Assert error in vtc_log_emit(), vtc_log.c line 157:
    *    diag  0.0   Condition(vtclog_left > l) not true. (errno=0 Success)


In this case varnishtest aborts because its logging buffer is full.
We can make it use a 32MB buffer as follows:

    $ VARNISHTEST_PROGRAM=<...> make reg-tests 
reg-tests/mailers/k_healthcheckmail.vtc -- \
           --varnishtestparams "-b$((32<<20))"

with more relevant results:

    ## test results in: ...
    ---- c2    7.1 EXPECT resp.http.mailsreceived (11858) == "16" failed

Frédéric Lécaille (1):
  REGTEST: Add some informatoin to test results.

 scripts/run-regtests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.11.0

Reply via email to