From 2c9b5f19241383d4ae8cb2ac09ad6d987bbad25a Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 15 Jun 2008 20:49:27 +0000 Subject: [PATCH] Add "test" keyword for printing a test description git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2694 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/varnish-cache/bin/varnishtest/vtc.c b/varnish-cache/bin/varnishtest/vtc.c index 276b06d4..aeb93234 100644 --- a/varnish-cache/bin/varnishtest/vtc.c +++ b/varnish-cache/bin/varnishtest/vtc.c @@ -217,6 +217,21 @@ parse_string(char *buf, const struct cmds *cmd, void *priv) } } +/********************************************************************** + * 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 @@ static struct cmds cmds[] = { { "vcl", cmd_vcl }, { "stats", cmd_stats }, { "varnish", cmd_varnish }, + { "test", cmd_test }, { NULL, NULL } }; -- 2.39.5