Divorcing varnishtest from varnish-cache

Willy Tarreau w at 1wt.eu
Tue Sep 25 21:49:10 UTC 2018


On Tue, Sep 25, 2018 at 08:57:00PM +0000, Poul-Henning Kamp wrote:
> --------
> 
> I have made a first export/import of VTest now:
> 
> 	https://github.com/vtest/VTest
> 
> The Makefile is very rudimentary and mostly so that I could see that
> the convert.sh script does something sensible.
> 
> Let the experiments start...

A very (too) quick check gives me this :

  python3 src/huffman_gen.py src/tbl/vhp_huffman.h > src/vtc_h2_dectbl.h
  /bin/sh: python3: command not found

I modified the makefile to directly execute "src/huffman_gen.py" which
apparently uses "usr/bin/env python" to find it and it went OK for this
part (copy-pasted below for illustration, tabs/spaces mangled) :

diff --git a/Makefile b/Makefile
index a51ea1f..e3a008e 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ vtest: \
                src/sequences src/gensequences \
                src/huffman_gen.py src/tbl/vhp_huffman.h
        awk -f src/gensequences src/sequences > src/teken_state.h
-       python3 src/huffman_gen.py src/tbl/vhp_huffman.h > src/vtc_h2_dectbl.h
+       src/huffman_gen.py src/tbl/vhp_huffman.h > src/vtc_h2_dectbl.h
        ${CC} \
                -o vtest \
                -I src \

But it failed slightly later :

  src/vtc_varnish.c:46:22: fatal error: vapi/vsc.h: No such file or directory

I indeed don't have this file at all in the repo. However that's
all for me for this evening.

Thanks!
Willy


More information about the varnish-dev mailing list