mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-17 09:22:54 +02:00
Pick different host + openssl
* host is bahn.de * debug message said Your ./bin/openssl.Linux.x86_64 doesn't support X25519 --> use /usr/bin/openssl * skip debug msg check for Mac
This commit is contained in:
@ -10,14 +10,16 @@ use Text::Diff;
|
|||||||
|
|
||||||
my $tests = 0;
|
my $tests = 0;
|
||||||
my $prg="./testssl.sh";
|
my $prg="./testssl.sh";
|
||||||
my $uri="web.de";
|
my $uri="bahn.de";
|
||||||
my $out="";
|
my $out="";
|
||||||
my $html="";
|
my $html="";
|
||||||
my $debughtml="";
|
my $debughtml="";
|
||||||
my $edited_html="";
|
my $edited_html="";
|
||||||
my $htmlfile="tmp.html";
|
my $htmlfile="tmp.html";
|
||||||
my $check2run="--ip=one --sneaky --ids-friendly --color 0 --htmlfile $htmlfile";
|
# need to avoid the debug message around L15190++ Your ./bin/openssl.Linux.x86_64 doesn't support X25519 :
|
||||||
|
my $check2run="--ip=one --openssl /usr/bin/openssl --sneaky --ids-friendly --color 0 --htmlfile $htmlfile";
|
||||||
my $diff="";
|
my $diff="";
|
||||||
|
|
||||||
die "Unable to open $prg" unless -f $prg;
|
die "Unable to open $prg" unless -f $prg;
|
||||||
|
|
||||||
printf "\n%s\n", "Doing HTML output checks";
|
printf "\n%s\n", "Doing HTML output checks";
|
||||||
@ -54,6 +56,13 @@ ok($edited_html eq $out, "Checking if HTML file matches terminal output") or
|
|||||||
$tests++;
|
$tests++;
|
||||||
|
|
||||||
|
|
||||||
|
if ( $^O eq "darwin" ){
|
||||||
|
printf "\nskip debug checkon MacOS\n\n";
|
||||||
|
done_testing($tests);
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#2
|
#2
|
||||||
printf "%s\n", " .. running again $prg against \"$uri\", now with --debug 4 to create HTML output (may take another ~2 minutes)";
|
printf "%s\n", " .. running again $prg against \"$uri\", now with --debug 4 to create HTML output (may take another ~2 minutes)";
|
||||||
# Redirect stderr to /dev/null in order to avoid some unexplained "date: invalid date" error messages
|
# Redirect stderr to /dev/null in order to avoid some unexplained "date: invalid date" error messages
|
||||||
|
Reference in New Issue
Block a user