Codebase list debconf / 2ac37814-27fc-43ac-b23d-677e885d877b/main test_debconf.pl
2ac37814-27fc-43ac-b23d-677e885d877b/main

Tree @2ac37814-27fc-43ac-b23d-677e885d877b/main (Download .tar.gz)

test_debconf.pl @2ac37814-27fc-43ac-b23d-677e885d877b/mainraw · history · blame

#!/usr/bin/perl -w -I.

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

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

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");
}