File: test_debconf.pl

package info (click to toggle)
debconf 1.5.91
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,180 kB
  • sloc: perl: 8,500; sh: 262; python: 182; makefile: 144
file content (35 lines) | stat: -rwxr-xr-x 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/perl -I.

use warnings;
use strict;
use Test::Unit::TestRunner;
use Getopt::Long;

sub usage {
	print STDERR <<EOF;
Usage:
    test_debconf.pl OneTest
    test_debconf.pl --all
EOF
	exit(1);
}

my $all=0;
my $test=0;

# command options
GetOptions(
	"all" => \$all,
) || usage();

unless ($all) {
	$test=$ARGV[0];
	usage() unless $test;
}

if ($test) {
	Test::Unit::TestRunner->main($test);
}
if ($all) {
	Test::Unit::TestRunner->main("Test::AllTests");
}