File: _all-1

package info (click to toggle)
libarch-perl 0.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 576 kB
  • ctags: 430
  • sloc: perl: 6,145; makefile: 31
file content (24 lines) | stat: -rwxr-xr-x 525 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl -w

# The script simply compiles all Arch classes.

use strict;

use FindBin;
use lib "$FindBin::Bin/../perllib";

use vars '@classes';

BEGIN {
	my $arch_pm_file = "$FindBin::Bin/../perllib/Arch.pm";
	open SRC, "<$arch_pm_file" || die "No $arch_pm_file\n";
	my $content = join('', <SRC>);
	close SRC;
	@classes = $content =~ /L<(Arch::.*?)>/g;
	die "No Arch classes in $arch_pm_file pod\n" unless @classes;
	unshift @classes, 'Arch';
}

use Test::More tests => scalar @classes;

use_ok($_) foreach @classes;