Created
July 22, 2011 01:06
-
-
Save bryfox/1098621 to your computer and use it in GitHub Desktop.
Quick & dirty Varnish test script using Test::Varnish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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