mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 23:45:42 +01:00
test: Use GetOpt::Long for argument parsing
Simplify argument parsing by using a core perl library for parsing arguments.
This commit is contained in:
parent
79e4f4e933
commit
f4b521dd10
@ -24,14 +24,10 @@ use strict;
|
|||||||
use utf8;
|
use utf8;
|
||||||
use open qw(:std utf8);
|
use open qw(:std utf8);
|
||||||
|
|
||||||
use constant FALSE => 0;
|
use Getopt::Long;
|
||||||
use constant TRUE => 1;
|
|
||||||
|
|
||||||
my $verbose;
|
my $verbose;
|
||||||
my $switch = shift;
|
GetOptions( "verbose|v" => \$verbose );
|
||||||
if ( defined($switch) && ( $switch eq "-v" || $switch eq "--verbose" ) ) {
|
|
||||||
$verbose = TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
# All test suites = executable files, excluding source files, debug
|
# All test suites = executable files, excluding source files, debug
|
||||||
# and profiling information, etc. We can't just grep {! /\./} because
|
# and profiling information, etc. We can't just grep {! /\./} because
|
||||||
|
Loading…
Reference in New Issue
Block a user