~ubuntu-branches/ubuntu/precise/libeval-closure-perl/precise

« back to all changes in this revision

Viewing changes to t/00-compile.t

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghedini
  • Date: 2011-04-20 19:29:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420192956-zlj7bntx2ezdeb0s
Tags: 0.04-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
  'lib',
25
25
);
26
26
 
27
 
my @scripts = glob "bin/*";
 
27
my @scripts;
 
28
if ( -d 'bin' ) {
 
29
    find(
 
30
      sub {
 
31
        return unless -f;
 
32
        my $found = $File::Find::name;
 
33
        # nothing to skip
 
34
        push @scripts, $found;
 
35
      },
 
36
      'bin',
 
37
    );
 
38
}
28
39
 
29
40
my $plan = scalar(@modules) + scalar(@scripts);
30
41
$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");