Skip to content

Instantly share code, notes, and snippets.

@bryfox
Created July 22, 2011 01:06
Show Gist options
  • Save bryfox/1098621 to your computer and use it in GitHub Desktop.
Save bryfox/1098621 to your computer and use it in GitHub Desktop.
Quick & dirty Varnish test script using Test::Varnish
#!/opt/local/bin/perl
use Test::More;
use Test::Varnish;
$url = 'FIXME';
$num_runs = 10;
plan tests => $num_runs;
my $tv = Test::Varnish->new({verbose => 1});
$i = 0;
while ($i < $num_runs) {
$tv->is_cached({ url => $url }, 'Varnish active?');
$i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment