r2694 - trunk/varnish-cache/bin/varnishtest

phk at projects.linpro.no phk at projects.linpro.no
Sun Jun 15 22:49:27 CEST 2008


Author: phk
Date: 2008-06-15 22:49:27 +0200 (Sun, 15 Jun 2008)
New Revision: 2694

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc.c
Log:
Add "test" keyword for printing a test description



Modified: trunk/varnish-cache/bin/varnishtest/vtc.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc.c	2008-06-15 20:41:35 UTC (rev 2693)
+++ trunk/varnish-cache/bin/varnishtest/vtc.c	2008-06-15 20:49:27 UTC (rev 2694)
@@ -218,6 +218,21 @@
 }
 
 /**********************************************************************
+ * Output test description
+ */
+
+static void
+cmd_test(char **av, void *priv)
+{
+	(void)priv;
+	assert(!strcmp(av[0], "test"));
+
+	printf("#    TEST %s\n", av[1]);
+	AZ(av[2]);
+}
+
+
+/**********************************************************************
  * Execute a file
  */
 
@@ -236,6 +251,7 @@
 	{ "vcl", 	cmd_vcl },
 	{ "stats", 	cmd_stats },
 	{ "varnish", 	cmd_varnish },
+	{ "test", 	cmd_test },
 	{ NULL, 	NULL }
 };
 




More information about the varnish-commit mailing list