Permalink
Browse files

Add a version check to the plackup locator

  • Loading branch information...
1 parent fd00b9d commit 6cab347129434ef138afd37439211dab510f3a7f @stash committed Apr 9, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 t/62-plack-runner.t
View
@@ -42,10 +42,18 @@ for my $dir (@Config{qw(sitebin sitescript vendbin vendscript)}) {
my $pu = "$dir/plackup";
if (-e $pu && -x _) {
$plackup = $pu;
- diag "plackup: $plackup";
+ my $plackup_ver = `$^X $plackup --version`;
+ chomp $plackup_ver;
+ if ($plackup_ver =~ /Plack (\d.\d+)/ && $1 >= 0.995) {
+ diag "plackup: $plackup ($plackup_ver)";
+ }
+ else {
+ next;
+ }
last;
}
}
+
SKIP: {
skip "can't locate plackup in sitebin/sitescript/vendbin/vendscript", 2
unless $plackup;

0 comments on commit 6cab347

Please sign in to comment.