Mailing List Archive

[master] 79bfe18c7 Add a bit of coverage for varnishdm
commit 79bfe18c712ca9f6d31f663ee0814d93a4120e97
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Wed Oct 13 08:28:02 2021 +0000

Add a bit of coverage for varnishdm

diff --git a/bin/varnishtest/tests/u00012.vtc b/bin/varnishtest/tests/u00012.vtc
index 6c5af113f..3f4a19ec6 100644
--- a/bin/varnishtest/tests/u00012.vtc
+++ b/bin/varnishtest/tests/u00012.vtc
@@ -14,7 +14,7 @@ client c1 {

varnish v1 -vsl_catchup

-process p1 -log {varnishadm -p -n ${v1_name}} -start
+process p1 -log {varnishadm -t 12 -p -n ${v1_name}} -start

# expect a full status line in pass mode (no banner)
process p1 -write "ping\r"
@@ -28,3 +28,12 @@ process p1 -write "vcl.show vcl1\r"
process p1 -expect-text 0 0 "backend s1"

process p1 -screen_dump -write "\x04" -wait
+
+process p1 -log {varnishadm -t foobar 2>&1} -expect-exit 2 -run
+process p1 -expect-text 0 0 "-t: Invalid argument:"
+
+process p1 -log {varnishadm -Q 2>&1} -expect-exit 1 -run
+process p1 -expect-text 0 0 "Usage: varnishadm"
+
+process p2 -log {varnishadm -h 2>&1} -expect-exit 0 -run
+process p2 -expect-text 0 0 "Usage: varnishadm"
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit