HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //usr/local/share/perl5/Test/TestLister.pl
#!/usr/bin/perl -w

use strict;

use Getopt::Long;
use Test::Unit::Loader;

my %opts = ();
GetOptions(\%opts, 'help', 'testcases');
usage() if $opts{help};

foreach my $test (@ARGV) {
    my $suite = Test::Unit::Loader::load($test);
    print join '', @{ $suite->list($opts{testcases}) };
}
 
sub usage {
    die <<EOF;
Usage: $0 [ OPTIONS ] <TEST> [ <TEST> ... ]

Options:
   --testcases, -t   List testcases contained in (sub)suites
   --help, -h

Tests can be package names or file names.
EOF
}