**** dT 0.001 * top TEST ../../../../bin/varnishtest/tests/u00000.vtc starting **** top extmacro def pkg_version=trunk **** top extmacro def pkg_branch=trunk **** top extmacro def pwd=/root/VT/varnish-cache/varnish-trunk/_build/sub/bin/varnishtest **** top extmacro def date(...) **** top extmacro def string(...) **** top extmacro def localhost=127.0.0.1 **** top extmacro def bad_backend=127.0.0.1:51377 **** top extmacro def listen_addr=127.0.0.1:0 **** top extmacro def bad_ip=192.0.2.255 **** top extmacro def topbuild=/root/VT/varnish-cache/varnish-trunk/_build/sub **** top extmacro def topsrc=/root/VT/varnish-cache/varnish-trunk/_build/sub/../.. **** dT 0.002 **** top macro def testdir=/root/VT/varnish-cache/varnish-trunk/_build/sub/bin/varnishtest/../../../../bin/varnishtest/tests **** top macro def tmpdir=/root/VT/_vtest_tmp/vtc.1874.1ac15eb1 **** top macro def vtcid=vtc.1874.1ac15eb1 **** dT 0.003 ** top === varnishtest "Code coverage of mgt_main, (VCL compiler and RS... **** dT 0.004 * top VTEST Code coverage of mgt_main, (VCL compiler and RSTdump etc) ** top === shell "varnishd -b None -C 2> ${tmpdir}/_.c" **** top shell_cmd|exec 2>&1 ; varnishd -b None -C 2> /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/_.c **** dT 4.933 **** top shell_status = 0x0000 ** top === shell { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/no_keep -C -b None 2> no_keep.c **** top shell_cmd|\ttest -s no_keep.c && ! test -d no_keep || test -d no_keep/*/vgc.so.dSYM **** dT 9.849 **** top shell_status = 0x0000 ** top === shell { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/keep -p debug=+vcl_keep -C -b None 2> keep.c **** top shell_cmd|\ttest -s keep.c && test -d keep **** dT 14.771 **** top shell_status = 0x0000 ** top === shell -err -expect {VCL version declaration missing} { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\techo 'bad vcl' > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/bad.vcl **** top shell_cmd|\tvarnishd -f /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/bad.vcl -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1 **** dT 14.890 **** top shell_out|Error: **** top shell_out|Message from VCC-compiler: **** top shell_out|VCL version declaration missing **** top shell_out|Update your VCL to Version 4 syntax, and add **** top shell_out|\tvcl 4.1; **** top shell_out|on the first line of the VCL files. **** top shell_out|('/root/VT/_vtest_tmp/vtc.1874.1ac15eb1/bad.vcl' Line 1 Pos 1) **** top shell_out|bad vcl **** top shell_out|###---- **** top shell_out| **** top shell_out|Running VCC-compiler failed, exited with 2 **** top shell_out|VCL compilation failed **** top shell_status = 0x00ff **** top shell_expect found ** top === shell -err -expect {-x must be the first argument} "varnishd... **** top shell_cmd|exec 2>&1 ; varnishd -d -x foo **** dT 14.928 **** top shell_out|Error: -x must be the first argument **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {-V must be the first argument} "varnishd... **** top shell_cmd|exec 2>&1 ; varnishd -d -V foo **** dT 14.965 **** top shell_out|Error: -V must be the first argument **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Too many arguments for -x} "varnishd -x ... **** top shell_cmd|exec 2>&1 ; varnishd -x foo bar **** dT 15.003 **** top shell_out|Error: Too many arguments for -x **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Invalid -x argument} "varnishd -x foo " **** top shell_cmd|exec 2>&1 ; varnishd -x foo **** dT 15.040 **** top shell_out|Error: Invalid -x argument **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {option} "varnishd -A " **** top shell_cmd|exec 2>&1 ; varnishd -A **** dT 15.082 **** top shell_out|varnishd: illegal option -- A **** top shell_out|Usage: varnishd [options] **** top shell_out| **** top shell_out|Basic options: **** top shell_out| [-a [name=][listen_address # HTTP listen address, protocol, options. **** top shell_out| [,PROTO|,option=value,...]] # Can be specified multiple times. **** top shell_out| # default: ":80,HTTP" **** top shell_out| options: # Proto can be "PROXY" or "HTTP" (default) **** top shell_out| [,user=][,group=] # user, group and mode set permissions for **** top shell_out| [,mode=] # a Unix domain socket. **** top shell_out| -b none # No backend **** top shell_out| -b [addr[:port]|path] # Backend address and port **** top shell_out| # or socket file path **** top shell_out| # default: ":80" **** top shell_out| -f vclfile # VCL program **** top shell_out| # Can be specified multiple times. **** top shell_out| -n dir # Working directory **** top shell_out| # default: /var/run/varnishd **** top shell_out| **** top shell_out|-b can be used only once, and not together with -f **** top shell_out| **** top shell_out|Documentation options: **** top shell_out| -? # Prints this usage message **** top shell_out| -x parameter # Parameter documentation **** top shell_out| -x vsl # VSL record documentation **** top shell_out| -x cli # CLI command documentation **** top shell_out| -x builtin # Builtin VCL program **** top shell_out| -x optstring # List of getopt options **** top shell_out| -x options # Dynamic options documentation **** top shell_out| **** top shell_out|Operations options: **** top shell_out| -F # Run in foreground **** top shell_out| -T address[:port] # CLI address **** top shell_out| # Can be specified multiple times. **** top shell_out| -M address:port # Reverse CLI destination **** top shell_out| # Can be specified multiple times. **** top shell_out| -P file # PID file **** top shell_out| -i identity # Identity of varnish instance **** top shell_out| -I clifile # Initialization CLI commands **** top shell_out| -E extension # Load extension **** top shell_out| **** top shell_out|Tuning options: **** top shell_out| -t TTL # Default TTL **** top shell_out| -p param=value # set parameter **** top shell_out| # Can be specified multiple times. **** top shell_out| -s [name=]kind[,options] # Storage specification **** top shell_out| # Can be specified multiple times. **** top shell_out| # -s default (=malloc) **** top shell_out| # -s malloc **** top shell_out| # -s file **** top shell_out| -l vsl # Size of shared memory log **** top shell_out| # vsl: space for VSL records [80m] **** top shell_out| **** top shell_out|Security options: **** top shell_out| -r param[,param...] # Set parameters read-only from CLI **** top shell_out| # Can be specified multiple times. **** top shell_out| -S secret-file # Secret file for CLI authentication **** top shell_out| -j jail[,options] # Jail specification **** top shell_out| # -j unix **** top shell_out| # -j none **** top shell_out| **** top shell_out|Advanced/Dev/Debug options: **** top shell_out| -d # debug mode **** top shell_out| # Stay in foreground, CLI on stdin. **** top shell_out| -C # Output VCL code compiled to C language **** top shell_out| -V # version **** top shell_out| -h kind[,options] # Hash specification **** top shell_out| -W waiter # Waiter implementation **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Usage: varnishd [options]} "varnishd -? ... **** top shell_cmd|exec 2>&1 ; varnishd -? **** dT 15.123 **** top shell_out|Usage: varnishd [options] **** top shell_out| **** top shell_out|Basic options: **** top shell_out| [-a [name=][listen_address # HTTP listen address, protocol, options. **** top shell_out| [,PROTO|,option=value,...]] # Can be specified multiple times. **** top shell_out| # default: ":80,HTTP" **** top shell_out| options: # Proto can be "PROXY" or "HTTP" (default) **** top shell_out| [,user=][,group=] # user, group and mode set permissions for **** top shell_out| [,mode=] # a Unix domain socket. **** top shell_out| -b none # No backend **** top shell_out| -b [addr[:port]|path] # Backend address and port **** top shell_out| # or socket file path **** top shell_out| # default: ":80" **** top shell_out| -f vclfile # VCL program **** top shell_out| # Can be specified multiple times. **** top shell_out| -n dir # Working directory **** top shell_out| # default: /var/run/varnishd **** top shell_out| **** top shell_out|-b can be used only once, and not together with -f **** top shell_out| **** top shell_out|Documentation options: **** top shell_out| -? # Prints this usage message **** top shell_out| -x parameter # Parameter documentation **** top shell_out| -x vsl # VSL record documentation **** top shell_out| -x cli # CLI command documentation **** top shell_out| -x builtin # Builtin VCL program **** top shell_out| -x optstring # List of getopt options **** top shell_out| -x options # Dynamic options documentation **** top shell_out| **** top shell_out|Operations options: **** top shell_out| -F # Run in foreground **** top shell_out| -T address[:port] # CLI address **** top shell_out| # Can be specified multiple times. **** top shell_out| -M address:port # Reverse CLI destination **** top shell_out| # Can be specified multiple times. **** top shell_out| -P file # PID file **** top shell_out| -i identity # Identity of varnish instance **** top shell_out| -I clifile # Initialization CLI commands **** top shell_out| -E extension # Load extension **** top shell_out| **** top shell_out|Tuning options: **** top shell_out| -t TTL # Default TTL **** top shell_out| -p param=value # set parameter **** top shell_out| # Can be specified multiple times. **** top shell_out| -s [name=]kind[,options] # Storage specification **** top shell_out| # Can be specified multiple times. **** top shell_out| # -s default (=malloc) **** top shell_out| # -s malloc **** top shell_out| # -s file **** top shell_out| -l vsl # Size of shared memory log **** top shell_out| # vsl: space for VSL records [80m] **** top shell_out| **** top shell_out|Security options: **** top shell_out| -r param[,param...] # Set parameters read-only from CLI **** top shell_out| # Can be specified multiple times. **** top shell_out| -S secret-file # Secret file for CLI authentication **** top shell_out| -j jail[,options] # Jail specification **** top shell_out| # -j unix **** top shell_out| # -j none **** top shell_out| **** top shell_out|Advanced/Dev/Debug options: **** top shell_out| -d # debug mode **** top shell_out| # Stay in foreground, CLI on stdin. **** top shell_out| -C # Output VCL code compiled to C language **** top shell_out| -V # version **** top shell_out| -h kind[,options] # Hash specification **** top shell_out| -W waiter # Waiter implementation **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Too many arguments} "varnishd foo " **** top shell_cmd|exec 2>&1 ; varnishd foo **** dT 15.160 **** top shell_out|Error: Too many arguments (foo...) **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell "varnishd -x parameter > ${tmpdir}/_.param" **** top shell_cmd|exec 2>&1 ; varnishd -x parameter > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/_.param **** dT 15.263 **** top shell_status = 0x0000 ** top === shell "varnishd -x vsl > ${tmpdir}/_.vsl" **** dT 15.264 **** top shell_cmd|exec 2>&1 ; varnishd -x vsl > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/_.vsl **** dT 15.307 **** top shell_status = 0x0000 ** top === shell "varnishd -x cli > ${tmpdir}/_.cli" **** dT 15.308 **** top shell_cmd|exec 2>&1 ; varnishd -x cli > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/_.cli **** dT 15.363 **** top shell_status = 0x0000 **** dT 15.364 ** top === shell "varnishd -x builtin > ${tmpdir}/_.builtin" **** top shell_cmd|exec 2>&1 ; varnishd -x builtin > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/_.builtin **** dT 15.402 **** top shell_status = 0x0000 ** top === shell "varnishd -x optstring > ${tmpdir}/_.optstring" **** top shell_cmd|exec 2>&1 ; varnishd -x optstring > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/_.optstring **** dT 15.440 **** top shell_status = 0x0000 ** top === shell "varnishd --optstring > ${tmpdir}/_.optstring2" **** dT 15.441 **** top shell_cmd|exec 2>&1 ; varnishd --optstring > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/_.optstring2 **** dT 15.471 **** top shell_status = 0x0000 ** top === shell -err -expect {-C needs either -b or -f &1 ; **** top shell_cmd|\tvarnishd -C **** dT 15.509 **** top shell_out|Error: -C needs either -b or -f **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Cannot open -S file} { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -S /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/nonexistent -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/v0 -f '' **** dT 15.559 **** top shell_out|Error: Cannot open -S file (/root/VT/_vtest_tmp/vtc.1874.1ac15eb1/nonexistent): No such file or directory **** top shell_out|(-? gives usage) **** top shell_status = 0x00ff **** top shell_expect found ** top === shell -err -expect {Cannot remove preexisting secret-file in... **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tmkdir /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/is_a_dir /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/is_a_dir/_.secret **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/is_a_dir -d -a :0 **** dT 15.739 **** top shell_out|Error: Cannot remove preexisting secret-file in /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/is_a_dir (Operation not permitted) **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Unknown jail method "xyz"} "varnishd -jx... **** top shell_cmd|exec 2>&1 ; varnishd -jxyz -f '' **** dT 15.785 **** top shell_out|Error: Unknown jail method "xyz" **** top shell_out|(-? gives usage) **** top shell_status = 0x00ff **** top shell_expect found ** top === shell -err -expect {Too many arguments for -V} "varnishd -V ... **** top shell_cmd|exec 2>&1 ; varnishd -V -V **** dT 15.822 **** top shell_out|Error: Too many arguments for -V **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -expect {Copyright (c) 2006} "varnishd -V" **** top shell_cmd|exec 2>&1 ; varnishd -V **** dT 15.860 **** top shell_out|varnishd (varnish-trunk revision 52a6d38c5709cf1a92896d5dc2e984962ce10446) **** top shell_out|Copyright (c) 2006 Verdens Gang AS **** top shell_out|Copyright (c) 2006-2024 Varnish Software **** top shell_out|Copyright 2010-2024 UPLEX - Nils Goroll Systemoptimierung **** top shell_status = 0x0000 **** top shell_expect found ** top === shell -err -expect {Only one of -d or -F can be specified} "... **** top shell_cmd|exec 2>&1 ; varnishd -d -F **** dT 15.897 **** top shell_out|Error: Only one of -d or -F can be specified **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Only one of -b or -f can be specified} "... **** top shell_cmd|exec 2>&1 ; varnishd -b a -f b **** dT 15.935 **** top shell_out|Error: Only one of -b or -f can be specified **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {-d makes no sense with -C} "varnishd -C ... **** top shell_cmd|exec 2>&1 ; varnishd -C -b None -d **** dT 15.972 **** top shell_out|Error: -d makes no sense with -C **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {-F makes no sense with -C} "varnishd -C ... **** top shell_cmd|exec 2>&1 ; varnishd -C -b None -F **** dT 16.010 **** top shell_out|Error: -F makes no sense with -C **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Neither -b nor -f given} { varnishd -n $... **** top shell_cmd|exec 2>&1 ; varnishd -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/v0 **** dT 16.047 **** top shell_out|Error: Neither -b nor -f given. (use -f '' to override) **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Only one -I allowed} { **** dT 16.048 **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\ttouch foo bar **** top shell_cmd|\tvarnishd -f '' -I foo -I bar -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/v0 -a :0 **** dT 16.094 **** top shell_out|Error: \tOnly one -I allowed **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {Error: -I file CLI command failed (104)}... **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\techo "vcl.list" > foo **** top shell_cmd|\techo "-foobar" >> foo **** top shell_cmd|\techo "vcl.load" >> foo **** top shell_cmd|\tvarnishd -f '' -I foo -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/v0 -a :0 -l 2m **** dT 16.303 **** top shell_out|BEGIN of -I file processing **** top shell_out|200 308 **** top shell_out|----------------------------- **** top shell_out|Varnish Cache CLI 1.0 **** top shell_out|----------------------------- **** top shell_out|FreeBSD,13.4-RC3,arm,-jnone,-sdefault,-sdefault,-hcritbit **** top shell_out|varnish-trunk revision 52a6d38c5709cf1a92896d5dc2e984962ce10446 **** top shell_out| **** top shell_out|Type 'help' for command list. **** top shell_out|Type 'quit' to close CLI session. **** top shell_out|Type 'start' to launch worker process. **** top shell_out| **** top shell_out|> vcl.list **** top shell_out|200 0 **** top shell_out| **** top shell_out|> -foobar **** top shell_out|101 82 **** top shell_out|Unknown request in manager process (child not running). **** top shell_out|Type 'help' for more info. **** top shell_out|> vcl.load **** top shell_out|Error: -I file CLI command failed (104) **** top shell_out|Too few parameters **** top shell_out| **** top shell_out|(-? gives usage) **** top shell_status = 0x00ff **** top shell_expect found ** top === shell -err -expect "Can't open nonexistent" { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -f '' -I nonexistent -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/v0 -a :0 **** dT 16.353 **** top shell_out|Error: \tCan't open nonexistent: No such file or directory **** top shell_out|(-? gives usage) **** top shell_status = 0x00ff **** top shell_expect found ** top === shell {echo ping > ${tmpdir}/I_file} **** top shell_cmd|exec 2>&1 ; echo ping > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/I_file **** dT 16.368 **** top shell_status = 0x0000 ** top === process p1 "exec varnishd -n ${tmpdir}/v1 -F -f '' -a :0 -l2... **** dT 16.411 **** p1 CMD: exec varnishd -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/v1 -F -f '' -a :0 -l2m -I /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/I_file 2>&1 **** dT 16.416 *** p1 PID: 1960 **** dT 16.418 **** p1 macro def p1_pid=1960 **** p1 macro def p1_dir=/root/VT/_vtest_tmp/vtc.1874.1ac15eb1/p1 **** p1 macro def p1_out=/root/VT/_vtest_tmp/vtc.1874.1ac15eb1/p1/term **** p1 macro def p1_err=/root/VT/_vtest_tmp/vtc.1874.1ac15eb1/p1/stderr **** dT 16.419 ** top === process p1 -expect-text 0 1 {PONG} **** dT 16.435 **** p1 stderr read 0 **** dT 16.593 **** p1 found expected text at 18,1: 'PONG' ** top === process p1 -expect-text 0 1 {END of -I file processing} **** p1 found expected text at 19,1: 'END of -I file processing' ** top === process p1 -screen_dump *** p1 screen| Debug: Version: varnish-trunk revision 52a6d38c5709cf1a92896d5dc2e984962 *** p1 screen|ce10446 *** p1 screen|Debug: Platform: FreeBSD,13.4-RC3,arm,-jnone,-sdefault,-sdefault,-hcritbit *** p1 screen|BEGIN of -I file processing *** p1 screen|200 308 *** p1 screen|----------------------------- *** p1 screen|Varnish Cache CLI 1.0 *** p1 screen|----------------------------- *** p1 screen|FreeBSD,13.4-RC3,arm,-jnone,-sdefault,-sdefault,-hcritbit *** p1 screen|varnish-trunk revision 52a6d38c5709cf1a92896d5dc2e984962ce10446 *** p1 screen| **** dT 16.594 *** p1 screen|Type 'help' for command list. *** p1 screen|Type 'quit' to close CLI session. *** p1 screen|Type 'start' to launch worker process. *** p1 screen| *** p1 screen|> ping *** p1 screen|200 19 *** p1 screen|PONG 1730022895 1.0 *** p1 screen|END of -I file processing *** p1 screen| *** p1 screen| *** p1 screen| *** p1 screen| *** p1 screen| *** p1 Cursor at line 20 column 1 ** top === shell { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\t( **** top shell_cmd|\techo 'vcl 4.0;' **** top shell_cmd|\techo 'backend default {' **** top shell_cmd|\techo ' .host="127.0.0.1:51377";' **** top shell_cmd|\techo '}' **** top shell_cmd|\t) > /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/vcl **** dT 16.609 **** top shell_status = 0x0000 ** top === shell -expect {VCL compiled.} { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishadm -n /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/v1 vcl.load vcl1 /root/VT/_vtest_tmp/vtc.1874.1ac15eb1/vcl **** dT 21.778 **** top shell_out|CLI communication error (hdr) **** top shell_status = 0x0002 ---- top shell_exit not as expected: got 0x0002 wanted 0x0000 * top RESETTING after ../../../../bin/varnishtest/tests/u00000.vtc **** dT 21.779 **** p1 Sent signal 15 **** dT 21.871 **** p1 stdout read 0 ** p1 WAIT4 pid=1960 status=0x0000 (user 4.548291 sys 0.485359) **** dT 22.842 **** p1 stdout 681 bytes, stderr 0 bytes * top TEST ../../../../bin/varnishtest/tests/u00000.vtc FAILED # top TEST ../../../../bin/varnishtest/tests/u00000.vtc FAILED (22.850) exit=2 FAIL tests/u00000.vtc (exit status: 2)