mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
Added ability to filter configs in test-ref-configs.pl
This commit is contained in:
parent
1e5369c7fa
commit
30a3062782
1 changed files with 14 additions and 0 deletions
|
|
@ -15,6 +15,20 @@ my %configs = (
|
||||||
'config-suite-b.h' => "-m tls1_2 -f 'ECDSA.*GCM'",
|
'config-suite-b.h' => "-m tls1_2 -f 'ECDSA.*GCM'",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($#ARGV >= 0) {
|
||||||
|
# filter configs
|
||||||
|
my @filtered_keys;
|
||||||
|
my %filtered_configs;
|
||||||
|
|
||||||
|
foreach my $filter (@ARGV) {
|
||||||
|
push (@filtered_keys, $filter);
|
||||||
|
}
|
||||||
|
@filtered_keys = grep { exists $configs{$ARGV[0]} } @filtered_keys;
|
||||||
|
@filtered_configs{@filtered_keys} = @configs{@filtered_keys};
|
||||||
|
|
||||||
|
%configs = %filtered_configs;
|
||||||
|
}
|
||||||
|
|
||||||
-d 'library' && -d 'include' && -d 'tests' or die "Must be run from root\n";
|
-d 'library' && -d 'include' && -d 'tests' or die "Must be run from root\n";
|
||||||
|
|
||||||
my $test = system( "grep -i cmake Makefile >/dev/null" ) ? 'check' : 'test';
|
my $test = system( "grep -i cmake Makefile >/dev/null" ) ? 'check' : 'test';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue