[6.0] 5711cd1e4 Test more of varnishtop

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:13 UTC 2018


commit 5711cd1e470c6f1f8b5200b2171108dbd8ab0c45
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Sep 4 08:05:30 2018 +0000

    Test more of varnishtop

diff --git a/bin/varnishtest/tests/u00004.vtc b/bin/varnishtest/tests/u00004.vtc
index 5dfaa3310..9d2be8ed4 100644
--- a/bin/varnishtest/tests/u00004.vtc
+++ b/bin/varnishtest/tests/u00004.vtc
@@ -31,7 +31,12 @@ shell -match "1\\.00 RespHeader Date\\n" {
 
 shell -match "Usage: .*varnishtop <options>" \
 	"varnishtop -h"
+
 shell -expect "Copyright (c) 2006 Verdens Gang AS" \
 	"varnishtop -V"
+
 shell -err -match "Usage: .*varnishtop <options>" \
 	"varnishtop extra"
+
+shell -err -match "is not a number" \
+	"varnishtop -p ABC"
diff --git a/bin/varnishtest/tests/u00010.vtc b/bin/varnishtest/tests/u00010.vtc
index 5813db981..dd37a15d0 100644
--- a/bin/varnishtest/tests/u00010.vtc
+++ b/bin/varnishtest/tests/u00010.vtc
@@ -18,5 +18,20 @@ client c1 {
 	rxresp
 } -run
 
-process p1 -expect-text 0 0 {Fetch_Body}
+varnish v1 -vsl_catchup
+
+process p1 -expect-text 1 1 {list length 64}
+
+process p1 -writehex 0c
+
+process p1 -need-bytes +1
+
+process p1 -writehex 0b
+
+process p1 -need-bytes +1
+
+process p1 -winsz 30 80
+
+process p1 -need-bytes +1
+
 process p1 -screen_dump -write {q} -wait


More information about the varnish-commit mailing list