The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/perl

use lib 'lib';
use Test::Harness qw(runtests);
$Test::Harness::verbose = 1;

my @testfiles;
if (@ARGV >= 1) {
    @testfiles = @ARGV;
} else {
    opendir (TD, 't');
    while (my $testfile = readdir(TD)) {
        next unless $testfile =~ /\.t$/;
        push (@testfiles,('t/'.$testfile));
    }
    closedir(TD);
}

runtests(sort @testfiles);