t/000-syntax.t
changeset 20 6c5ad12e1f2d
child 32 02ef2d1b190a
equal deleted inserted replaced
19:49ff641055a3 20:6c5ad12e1f2d
       
     1 use 5.010;
       
     2 use strict;
       
     3 use warnings;
       
     4 use Test::More;
       
     5 
       
     6 use File::Find;
       
     7 
       
     8 my @scripts;
       
     9 find(sub { push @scripts, $File::Find::name if -f and -x }, "blib");
       
    10 
       
    11 plan tests => scalar @scripts;
       
    12 
       
    13 foreach (@scripts) {
       
    14 	my $e = `perl -c $_ 2>&1`;
       
    15 	ok(!$?, "syntax ok") or diag $e;
       
    16 }