Reisegiganten / libvmod-abtest

A varnish vmod to get weighted random values for A/B testing, with a dynamic configuration.
Other
4 stars 3 forks source link

Remove test01.vtc #3

Open huguesalary opened 12 years ago

huguesalary commented 12 years ago

The test01.vtc file in src/test/ is related to the vmod_example vmod. Thus, make check fails (which is completely expected).

$make check
Making check in src
make[1]: Entering directory `/root/libvmod-abtest/src'
/root/varnish-3.0.3/bin/varnishtest/varnishtest -Dvarnishd=/root/varnish-3.0.3/bin/varnishd/varnishd -Dvmod_topbuild=/root/libvmod-abtest tests/test01.vtc
**** top   0.0 macro def varnishd=/root/varnish-3.0.3/bin/varnishd/varnishd
**** top   0.0 macro def vmod_topbuild=/root/libvmod-abtest
**** top   0.0 macro def pwd=/root/libvmod-abtest/src
**** top   0.0 macro def topbuild=/root/libvmod-abtest/src/../..
**** top   0.0 macro def bad_ip=10.255.255.255
**** top   0.0 macro def tmpdir=/tmp/vtc.28426.10581436
*    top   0.0 TEST tests/test01.vtc starting
***  top   0.0 varnishtest
*    top   0.0 TEST Test example vmod
***  top   0.0 server
**   s1    0.0 Starting server
**** s1    0.0 macro def s1_addr=127.0.0.1
**** s1    0.0 macro def s1_port=57536
**** s1    0.0 macro def s1_sock=127.0.0.1 57536
*    s1    0.0 Listen on 127.0.0.1 57536
***  top   0.0 varnish
**   s1    0.0 Started on 127.0.0.1 57536
**   v1    0.0 Launch
***  v1    0.0 CMD: cd ${pwd} && ${varnishd} -d -d -n /tmp/vtc.28426.10581436/v1 -l 10m,1m,- -p auto_restart=off -p syslog_cli_traffic=off -a '127.0.0.1:0' -S /tmp/vtc.28426.10581436/v1/_S -M '127.0.0.1 42031' -P /tmp/vtc.28426.10581436/v1/varnishd.pid -sfile,/tmp/vtc.28426.10581436/v1,10M 
***  v1    0.0 CMD: cd /root/libvmod-abtest/src && /root/varnish-3.0.3/bin/varnishd/varnishd -d -d -n /tmp/vtc.28426.10581436/v1 -l 10m,1m,- -p auto_restart=off -p syslog_cli_traffic=off -a '127.0.0.1:0' -S /tmp/vtc.28426.10581436/v1/_S -M '127.0.0.1 42031' -P /tmp/vtc.28426.10581436/v1/varnishd.pid -sfile,/tmp/vtc.28426.10581436/v1,10M 
***  v1    0.0 PID: 28450
***  v1    0.1 debug| Platform: Linux,2.6.32-5-amd64,x86_64,-sfile,-smalloc,-hcritbit\n
***  v1    0.1 debug| 200 240     \n
***  v1    0.1 debug| -----------------------------\n
***  v1    0.1 debug| Varnish Cache CLI 1.0\n
***  v1    0.1 debug| -----------------------------\n
***  v1    0.1 debug| Linux,2.6.32-5-amd64,x86_64,-sfile,-smalloc,-hcritbit\n
***  v1    0.1 debug| \n
***  v1    0.1 debug| Type 'help' for command list.\n
***  v1    0.1 debug| Type 'quit' to close CLI session.\n
***  v1    0.1 debug| Type 'start' to launch worker process.\n
***  v1    0.1 debug| \n
**** v1    0.2 CLIPOLL 1 0x1 0x0
***  v1    0.2 CLI connection fd = 9
***  v1    0.2 CLI RX  107
**** v1    0.2 CLI RX| ywmtmdicfnplbhhoaozjbfjexwbbjdxi\n
**** v1    0.2 CLI RX| \n
**** v1    0.2 CLI RX| Authentication required.\n
**** v1    0.2 CLI TX| auth 23270c1f1067e0f920b831abf8988139ed182f68d6ae24267d2ea915fb42b713\n
***  v1    0.2 CLI RX  200
**** v1    0.2 CLI RX| -----------------------------\n
**** v1    0.2 CLI RX| Varnish Cache CLI 1.0\n
**** v1    0.2 CLI RX| -----------------------------\n
**** v1    0.2 CLI RX| Linux,2.6.32-5-amd64,x86_64,-sfile,-smalloc,-hcritbit\n
**** v1    0.2 CLI RX| \n
**** v1    0.2 CLI RX| Type 'help' for command list.\n
**** v1    0.2 CLI RX| Type 'quit' to close CLI session.\n
**** v1    0.2 CLI RX| Type 'start' to launch worker process.\n
**** v1    0.2 CLI TX| vcl.inline vcl1 << %XJEIFLH|)Xspa8P\n
**** v1    0.2 CLI TX| backend s1 { .host = "127.0.0.1"; .port = "57536"; }\n
**** v1    0.2 CLI TX| \n
**** v1    0.2 CLI TX| \n
**** v1    0.2 CLI TX| \timport example from "/root/libvmod-abtest/src/.libs/libvmod_example.so";\n
**** v1    0.2 CLI TX| \n
**** v1    0.2 CLI TX| \tsub vcl_deliver {\n
**** v1    0.2 CLI TX| \t\tset resp.http.hello = example.hello("World");\n
**** v1    0.2 CLI TX| \t}\n
**** v1    0.2 CLI TX| \n
**** v1    0.2 CLI TX| %XJEIFLH|)Xspa8P\n
***  v1    0.2 CLI RX  106
**** v1    0.2 CLI RX| Message from VCC-compiler:\n
**** v1    0.2 CLI RX| Could not load module example\n
**** v1    0.2 CLI RX| \t/root/libvmod-abtest/src/.libs/libvmod_example.so\n
**** v1    0.2 CLI RX| \t/root/libvmod-abtest/src/.libs/libvmod_example.so: cannot open shared object file: No such file or directory\n
**** v1    0.2 CLI RX| ('input' Line 4 Pos 16)\n
**** v1    0.2 CLI RX|         import example from "/root/libvmod-abtest/src/.libs/libvmod_example.so";\n
**** v1    0.2 CLI RX| ---------------#######----------------------------------------------------------\n
**** v1    0.2 CLI RX| \n
**** v1    0.2 CLI RX| Running VCC-compiler failed, exit 1\n
**** v1    0.2 CLI RX| \n
**** v1    0.2 CLI RX| VCL compilation failed
---- v1    0.2 FAIL VCL does not compile
*    top   0.2 RESETTING after tests/test01.vtc
**   s1    0.2 Waiting for server
**** s1    0.2 macro undef s1_addr
**** s1    0.2 macro undef s1_port
**** s1    0.2 macro undef s1_sock
**   v1    1.2 Wait
**   v1    1.2 R 28450 Status: 0000
*    top   1.2 TEST tests/test01.vtc FAILED

#     top  TEST tests/test01.vtc FAILED (1.209) exit=1
make[1]: *** [tests/test01.vtc] Error 2
make[1]: Leaving directory `/root/libvmod-abtest/src'
make: *** [check-recursive] Error 1
xav commented 12 years ago

I hadn't really touched this file yet. But I cleaned it up a bit and it should work better now. However, I have troubles with varnishtest on my system right now, so there's a possibility that the test still fails...

/X