[master] 7c43a11 Add test case for -I cli_file
    Poul-Henning Kamp 
    phk at FreeBSD.org
       
    Sun Feb 26 00:52:05 CET 2017
    
    
  
commit 7c43a1107a260a5683fa50fb1171d4399fd9f92a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Feb 25 23:51:07 2017 +0000
    Add test case for -I cli_file
diff --git a/bin/varnishtest/tests/a00016.vtc b/bin/varnishtest/tests/a00016.vtc
new file mode 100644
index 0000000..963210f
--- /dev/null
+++ b/bin/varnishtest/tests/a00016.vtc
@@ -0,0 +1,13 @@
+varnishtest "Test -I argument"
+
+shell -err -expect {Only one -I allowed} {
+	touch foo bar
+	varnishd -f '' -I foo -I bar -n ${tmpdir}/v0 -a :0
+}
+
+shell -err -expect {Error: -I file CLI command failed (104)} {
+	echo "vcl.list" > foo
+	echo "-foobar" >> foo
+	echo "vcl.load" >> foo
+	varnishd -f '' -I foo -n ${tmpdir}/v0 -a :0
+}
    
    
More information about the varnish-commit
mailing list