[master] dd84d50 Introduce the macro 'testdir' which is an absolute path to the directory where the .vtc file lives.

Dridi Boukelmoune dridi at varni.sh
Mon Mar 26 20:43:56 UTC 2018


> +       if (VSB_len == 0)
> +               VSB_putc(vsb, '/');

This check is lacking an actual function call, but what I'm wondering
is rather how to properly test that. Probably by running varnishtest
from within a VTC as we do in a few cases.

Do I understand correctly that the absolute path may look like this?

    /path/to/build/dir/../../path/to/vtc/dir

The ".." components should be interpreted as the distcheck scenario
where the $(top_builddir) is nested under the $(top_srcdir).

I'm rather skeptical we need this since we can already define macros
via the command line.

Dridi


More information about the varnish-commit mailing list