File: syntax

package info (click to toggle)
debhelper 9.20150101
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,460 kB
  • sloc: perl: 5,757; makefile: 89; sh: 7
file content (12 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
use Test;

my @progs=grep { -x $_ } glob("dh_*"), "dh";
my @libs=(glob("Debian/Debhelper/*.pm"), glob("Debian/Debhelper/*/*.pm"));

plan(tests => (@progs + @libs));

foreach my $file (@progs, @libs) {
	print "# Testing $file\n";
	ok(system("perl -c $file >/dev/null 2>&1"), 0);
}