1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-07-17 19:21:57 +02:00
Files
.github
bin
doc
etc
t
00_testssl_help.t
01_testssl_banner.t
02_clientsim_txt_parsable.t
05_ca_hashes_up_to_date.t
07_isJSON_valid.t
08_isHTML_valid.t
09_isJSON_severitylevel_valid.t
20_baseline_ipv4_http.t
21_baseline_ipv6_http.t.DISABLED
23_client_simulation.t
25_baseline_starttls.t
51_badssl.com.t
59_hpkp.t.tmpDISABLED
Readme.md
utils
.gitignore
CHANGELOG.md
CONTRIBUTING.md
CREDITS.md
Dockerfile
Dockerfile.git
Dockerfile.md
LICENSE
Readme.md
openssl-iana.mapping.html
testssl.sh
testssl.sh/t/02_clientsim_txt_parsable.t
2024-06-13 15:19:10 +02:00

27 lines
603 B
Perl
Executable File

#!/usr/bin/env perl
# Just a functional test, whether ~/etc/client-simulation.txt
# doesn't have any syntax errors
use strict;
use Test::More;
my $tests = 0;
my $fileout="";
# Blacklists we use to trigger an error:
my $error_regexp1='(syntax|parse) (e|E)rror';
my $error_regexp2='client-simulation.txt:';
printf "\n%s\n", "Testing whether \"~/etc/client-simulation.txt\" isn't broken ...";
$fileout = `bash ./etc/client-simulation.txt 2>&1`;
unlike($fileout, qr/$error_regexp1/, "regex 1");
$tests++;
unlike($fileout, qr/$error_regexp2/, "regex 2");
$tests++;
printf "\n";
done_testing($tests);