**** 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:52851 **** 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.36068.7319d8d2 **** top macro def vtcid=vtc.36068.7319d8d2 **** dT 0.004 ** top === varnishtest "Code coverage of mgt_main, (VCL compiler and RS... * 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.36068.7319d8d2/_.c **** dT 4.975 **** top shell_status = 0x0000 ** top === shell { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.36068.7319d8d2/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.975 **** top shell_status = 0x0000 ** top === shell { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.36068.7319d8d2/keep -p debug=+vcl_keep -C -b None 2> keep.c **** top shell_cmd|\ttest -s keep.c && test -d keep **** dT 14.945 **** 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.36068.7319d8d2/bad.vcl **** top shell_cmd|\tvarnishd -f /root/VT/_vtest_tmp/vtc.36068.7319d8d2/bad.vcl -n /root/VT/_vtest_tmp/vtc.36068.7319d8d2 **** dT 15.094 **** 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.36068.7319d8d2/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 15.133 **** 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 15.172 **** 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.211 **** 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.250 **** 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.293 **** 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 [=]address[:port][,proto] # HTTP listen address and port **** top shell_out| [,user=][,group=] # Can be specified multiple times. **** top shell_out| [,mode=] # default: ":80,HTTP" **** top shell_out| # Proto can be "PROXY" or "HTTP" (default) **** top shell_out| # user, group and mode set permissions for **** top shell_out| # 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| **** 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.335 **** top shell_out|Usage: varnishd [options] **** top shell_out| **** top shell_out|Basic options: **** top shell_out| -a [=]address[:port][,proto] # HTTP listen address and port **** top shell_out| [,user=][,group=] # Can be specified multiple times. **** top shell_out| [,mode=] # default: ":80,HTTP" **** top shell_out| # Proto can be "PROXY" or "HTTP" (default) **** top shell_out| # user, group and mode set permissions for **** top shell_out| # 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| **** 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 " **** dT 15.336 **** top shell_cmd|exec 2>&1 ; varnishd foo **** dT 15.374 **** top shell_out|Error: Too many arguments (foo...) **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** dT 15.375 **** 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.36068.7319d8d2/_.param **** dT 15.478 **** top shell_status = 0x0000 ** top === shell "varnishd -x vsl > ${tmpdir}/_.vsl" **** top shell_cmd|exec 2>&1 ; varnishd -x vsl > /root/VT/_vtest_tmp/vtc.36068.7319d8d2/_.vsl **** dT 15.524 **** top shell_status = 0x0000 ** top === shell "varnishd -x cli > ${tmpdir}/_.cli" **** top shell_cmd|exec 2>&1 ; varnishd -x cli > /root/VT/_vtest_tmp/vtc.36068.7319d8d2/_.cli **** dT 15.582 **** top shell_status = 0x0000 ** top === shell "varnishd -x builtin > ${tmpdir}/_.builtin" **** top shell_cmd|exec 2>&1 ; varnishd -x builtin > /root/VT/_vtest_tmp/vtc.36068.7319d8d2/_.builtin **** dT 15.622 **** top shell_status = 0x0000 ** top === shell "varnishd -x optstring > ${tmpdir}/_.optstring" **** dT 15.623 **** top shell_cmd|exec 2>&1 ; varnishd -x optstring > /root/VT/_vtest_tmp/vtc.36068.7319d8d2/_.optstring **** dT 15.662 **** top shell_status = 0x0000 ** top === shell "varnishd --optstring > ${tmpdir}/_.optstring2" **** top shell_cmd|exec 2>&1 ; varnishd --optstring > /root/VT/_vtest_tmp/vtc.36068.7319d8d2/_.optstring2 **** dT 15.695 **** top shell_status = 0x0000 ** top === shell -err -expect {-C needs either -b or -f &1 ; **** top shell_cmd|\tvarnishd -C **** dT 15.734 **** top shell_out|Error: -C needs either -b or -f **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** top shell_expect found **** dT 15.735 ** top === shell -err -expect {Cannot open -S file} { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -S /root/VT/_vtest_tmp/vtc.36068.7319d8d2/nonexistent -n /root/VT/_vtest_tmp/vtc.36068.7319d8d2/v0 -f '' **** dT 15.787 **** top shell_out|Error: Cannot open -S file (/root/VT/_vtest_tmp/vtc.36068.7319d8d2/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 pre-existing secret-file i... **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tmkdir /root/VT/_vtest_tmp/vtc.36068.7319d8d2/is_a_dir /root/VT/_vtest_tmp/vtc.36068.7319d8d2/is_a_dir/_.secret **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.36068.7319d8d2/is_a_dir -d -a :0 **** dT 15.997 **** top shell_out|Error: Cannot remove pre-existing secret-file in /root/VT/_vtest_tmp/vtc.36068.7319d8d2/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 16.045 **** 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 16.084 **** 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 16.124 **** top shell_out|varnishd (varnish-trunk revision 11aa2c982807e9ffc312839700c1b9bc6e671bf2) **** 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 16.163 **** 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 16.202 **** 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 16.240 **** 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 ... **** dT 16.241 **** top shell_cmd|exec 2>&1 ; varnishd -C -b None -F **** dT 16.279 **** 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 $... **** dT 16.280 **** top shell_cmd|exec 2>&1 ; varnishd -n /root/VT/_vtest_tmp/vtc.36068.7319d8d2/v0 **** dT 16.318 **** top shell_out|Error: Neither -b nor -f given. (use -f '' to override) **** top shell_out|(-? gives usage) **** top shell_status = 0x0002 **** dT 16.319 **** top shell_expect found ** top === shell -err -expect {Only one -I allowed} { **** 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.36068.7319d8d2/v0 -a :0 **** dT 16.367 **** 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.36068.7319d8d2/v0 -a :0 -l 2m **** dT 16.603 **** top shell_out|BEGIN of -I file processing **** top shell_out|200 312 **** top shell_out|----------------------------- **** top shell_out|Varnish Cache CLI 1.0 **** top shell_out|----------------------------- **** top shell_out|FreeBSD,13.3-RELEASE,arm,-jnone,-sdefault,-sdefault,-hcritbit **** top shell_out|varnish-trunk revision 11aa2c982807e9ffc312839700c1b9bc6e671bf2 **** 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 non-existent" { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -f '' -I non-existent -n /root/VT/_vtest_tmp/vtc.36068.7319d8d2/v0 -a :0 **** dT 16.656 **** top shell_out|Error: \tCan't open non-existent: 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.36068.7319d8d2/I_file **** dT 16.672 **** top shell_status = 0x0000 ** top === process p1 "exec varnishd -n ${tmpdir}/v1 -F -f '' -a :0 -l2... **** dT 16.716 **** p1 CMD: exec varnishd -n /root/VT/_vtest_tmp/vtc.36068.7319d8d2/v1 -F -f '' -a :0 -l2m -I /root/VT/_vtest_tmp/vtc.36068.7319d8d2/I_file 2>&1 **** dT 16.721 *** p1 PID: 36160 **** dT 16.724 **** p1 macro def p1_pid=36160 **** p1 macro def p1_dir=/root/VT/_vtest_tmp/vtc.36068.7319d8d2/p1 **** p1 macro def p1_out=/root/VT/_vtest_tmp/vtc.36068.7319d8d2/p1/term **** p1 macro def p1_err=/root/VT/_vtest_tmp/vtc.36068.7319d8d2/p1/stderr **** dT 16.725 ** top === process p1 -expect-text 0 1 {PONG} **** dT 16.741 **** p1 stderr read 0 **** dT 17.051 **** 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 11aa2c982807e9ffc312839700c1b9bc6 *** p1 screen|e671bf2 *** p1 screen|Debug: Platform: FreeBSD,13.3-RELEASE,arm,-jnone,-sdefault,-sdefault,-hcritbit *** p1 screen|BEGIN of -I file processing **** dT 17.052 *** p1 screen|200 312 *** p1 screen|----------------------------- *** p1 screen|Varnish Cache CLI 1.0 *** p1 screen|----------------------------- *** p1 screen|FreeBSD,13.3-RELEASE,arm,-jnone,-sdefault,-sdefault,-hcritbit *** p1 screen|varnish-trunk revision 11aa2c982807e9ffc312839700c1b9bc6e671bf2 *** p1 screen| *** 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 1713673290 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:52851";' **** top shell_cmd|\techo '}' **** top shell_cmd|\t) > /root/VT/_vtest_tmp/vtc.36068.7319d8d2/vcl **** dT 17.068 **** 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.36068.7319d8d2/v1 vcl.load vcl1 /root/VT/_vtest_tmp/vtc.36068.7319d8d2/vcl **** dT 22.248 **** 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 **** p1 Sent signal 15 **** dT 22.312 **** p1 stdout read 0 ** p1 WAIT4 pid=36160 status=0x0000 (user 4.603642 sys 0.500050) **** dT 23.312 **** p1 stdout 675 bytes, stderr 0 bytes * top TEST ../../../../bin/varnishtest/tests/u00000.vtc FAILED # top TEST ../../../../bin/varnishtest/tests/u00000.vtc FAILED (23.320) exit=2 FAIL tests/u00000.vtc (exit status: 2)