**** 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:18932 **** 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.52227.4ab443fe **** top macro def vtcid=vtc.52227.4ab443fe **** dT 0.005 ** top === varnishtest "Code coverage of mgt_main, (VCL compiler and RS... **** dT 0.006 * 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.52227.4ab443fe/_.c **** dT 5.472 **** top shell_status = 0x0000 ** top === shell { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.52227.4ab443fe/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 11.406 **** top shell_status = 0x0000 ** top === shell { **** top shell_cmd|exec 2>&1 ; **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.52227.4ab443fe/keep -p debug=+vcl_keep -C -b None 2> keep.c **** top shell_cmd|\ttest -s keep.c && test -d keep **** dT 17.081 **** 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.52227.4ab443fe/bad.vcl **** top shell_cmd|\tvarnishd -f /root/VT/_vtest_tmp/vtc.52227.4ab443fe/bad.vcl -n /root/VT/_vtest_tmp/vtc.52227.4ab443fe **** dT 17.260 **** 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.52227.4ab443fe/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 17.318 **** 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... **** dT 17.319 **** top shell_cmd|exec 2>&1 ; varnishd -d -V foo **** dT 17.389 **** 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 ... **** dT 17.390 **** top shell_cmd|exec 2>&1 ; varnishd -x foo bar **** dT 17.456 **** 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 17.504 **** top shell_out|Error: Invalid -x argument **** top shell_out|(-? gives usage) **** dT 17.505 **** top shell_status = 0x0002 **** top shell_expect found ** top === shell -err -expect {option} "varnishd -A " **** top shell_cmd|exec 2>&1 ; varnishd -A **** dT 17.558 **** 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 17.607 **** 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 17.655 **** 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.52227.4ab443fe/_.param **** dT 17.771 **** 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.52227.4ab443fe/_.vsl **** dT 17.827 **** 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.52227.4ab443fe/_.cli **** dT 17.899 **** 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.52227.4ab443fe/_.builtin **** dT 17.945 **** top shell_status = 0x0000 **** dT 17.946 ** top === shell "varnishd -x optstring > ${tmpdir}/_.optstring" **** top shell_cmd|exec 2>&1 ; varnishd -x optstring > /root/VT/_vtest_tmp/vtc.52227.4ab443fe/_.optstring **** dT 18.002 **** top shell_status = 0x0000 ** top === shell "varnishd --optstring > ${tmpdir}/_.optstring2" **** dT 18.003 **** top shell_cmd|exec 2>&1 ; varnishd --optstring > /root/VT/_vtest_tmp/vtc.52227.4ab443fe/_.optstring2 **** dT 18.045 **** top shell_status = 0x0000 ** top === shell -err -expect {-C needs either -b or -f &1 ; **** top shell_cmd|\tvarnishd -C **** dT 18.099 **** 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.52227.4ab443fe/nonexistent -n /root/VT/_vtest_tmp/vtc.52227.4ab443fe/v0 -f '' **** dT 18.230 **** top shell_out|Error: Cannot open -S file (/root/VT/_vtest_tmp/vtc.52227.4ab443fe/nonexistent): No such file or directory **** top shell_out|(-? gives usage) **** dT 18.231 **** 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.52227.4ab443fe/is_a_dir /root/VT/_vtest_tmp/vtc.52227.4ab443fe/is_a_dir/_.secret **** top shell_cmd|\tvarnishd -n /root/VT/_vtest_tmp/vtc.52227.4ab443fe/is_a_dir -d -a :0 **** dT 18.525 **** top shell_out|Error: Cannot remove preexisting secret-file in /root/VT/_vtest_tmp/vtc.52227.4ab443fe/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 18.665 **** 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 18.722 **** 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 18.794 **** top shell_out|varnishd (varnish-trunk revision e3aa6133952b898c07098c918585778ee4b4365e) **** 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 18.847 **** 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 18.930 **** 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 ... **** dT 18.931 **** top shell_cmd|exec 2>&1 ; varnishd -C -b None -d **** dT 18.992 **** 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 19.041 **** 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.52227.4ab443fe/v0 **** dT 19.099 **** 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} { **** 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.52227.4ab443fe/v0 -a :0 **** dT 19.188 **** 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.52227.4ab443fe/v0 -a :0 -l 2m **** dT 19.614 **** 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 e3aa6133952b898c07098c918585778ee4b4365e **** 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.52227.4ab443fe/v0 -a :0 **** dT 19.691 **** 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.52227.4ab443fe/I_file **** dT 19.727 **** top shell_status = 0x0000 ** top === process p1 "exec varnishd -n ${tmpdir}/v1 -F -f '' -a :0 -l2... **** dT 19.796 **** p1 CMD: exec varnishd -n /root/VT/_vtest_tmp/vtc.52227.4ab443fe/v1 -F -f '' -a :0 -l2m -I /root/VT/_vtest_tmp/vtc.52227.4ab443fe/I_file 2>&1 **** dT 19.802 *** p1 PID: 52313 **** dT 19.809 **** p1 macro def p1_pid=52313 **** dT 19.810 **** p1 macro def p1_dir=/root/VT/_vtest_tmp/vtc.52227.4ab443fe/p1 **** p1 macro def p1_out=/root/VT/_vtest_tmp/vtc.52227.4ab443fe/p1/term **** p1 macro def p1_err=/root/VT/_vtest_tmp/vtc.52227.4ab443fe/p1/stderr ** top === process p1 -expect-text 0 1 {PONG} **** dT 19.839 **** p1 stderr read 0 **** dT 20.167 **** p1 found expected text at 18,1: 'PONG' ** top === process p1 -expect-text 0 1 {END of -I file processing} **** dT 20.168 **** p1 found expected text at 19,1: 'END of -I file processing' ** top === process p1 -screen_dump **** dT 20.169 *** p1 screen| Debug: Version: varnish-trunk revision e3aa6133952b898c07098c918585778ee *** p1 screen|4b4365e *** 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 e3aa6133952b898c07098c918585778ee4b4365e *** 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 1734404675 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:18932";' **** top shell_cmd|\techo '}' **** top shell_cmd|\t) > /root/VT/_vtest_tmp/vtc.52227.4ab443fe/vcl **** dT 20.194 **** 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.52227.4ab443fe/v1 vcl.load vcl1 /root/VT/_vtest_tmp/vtc.52227.4ab443fe/vcl **** dT 25.488 **** 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 25.500 **** p1 Sent signal 15 **** dT 25.635 **** p1 stdout read 0 **** dT 25.636 ** p1 WAIT4 pid=52313 status=0x0000 (user 0.184948 sys 0.220516) **** dT 26.503 **** p1 stdout 682 bytes, stderr 0 bytes **** dT 26.504 * top TEST ../../../../bin/varnishtest/tests/u00000.vtc FAILED # top TEST ../../../../bin/varnishtest/tests/u00000.vtc FAILED (26.516) exit=2 FAIL tests/u00000.vtc (exit status: 2)