mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-12-09 08:44:01 +01:00
Add autoflush thingy for MAcOS
This commit is contained in:
@@ -20,11 +20,20 @@ my $htmlfile="tmp.html";
|
|||||||
# Pick /usr/bin/openssl as we want to avoid the debug messages like "Your ./bin/openssl.Linux.x86_64 doesn't support X25519"
|
# Pick /usr/bin/openssl as we want to avoid the debug messages like "Your ./bin/openssl.Linux.x86_64 doesn't support X25519"
|
||||||
my $diff="";
|
my $diff="";
|
||||||
my $ip="";
|
my $ip="";
|
||||||
|
|
||||||
|
|
||||||
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";
|
||||||
|
|
||||||
|
# useful against "failed to flush stdout" messages
|
||||||
|
STDOUT->autoflush(1);
|
||||||
|
|
||||||
|
|
||||||
|
# Provide proper start conditions
|
||||||
unlink $htmlfile;
|
unlink $htmlfile;
|
||||||
|
|
||||||
|
|
||||||
#1
|
#1
|
||||||
printf "%s\n", " .. running $prg against \"$uri\" to create HTML and terminal outputs (may take ~2 minutes)";
|
printf "%s\n", " .. running $prg against \"$uri\" to create HTML and terminal outputs (may take ~2 minutes)";
|
||||||
# specify a TERM_WIDTH so that the two calls to testssl.sh don't create HTML files with different values of TERM_WIDTH
|
# specify a TERM_WIDTH so that the two calls to testssl.sh don't create HTML files with different values of TERM_WIDTH
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ printf "\n%s\n", "Doing severity level checks";
|
|||||||
die "Unable to open $prg" unless -f $prg;
|
die "Unable to open $prg" unless -f $prg;
|
||||||
unlink 'tmp.json';
|
unlink 'tmp.json';
|
||||||
|
|
||||||
|
# useful against "failed to flush stdout" messages
|
||||||
|
STDOUT->autoflush(1);
|
||||||
|
|
||||||
#1
|
#1
|
||||||
pass(" .. running testssl.sh against $uri to create a JSON report with severity level >= LOW (may take 2~3 minutes)"); $tests++;
|
pass(" .. running testssl.sh against $uri to create a JSON report with severity level >= LOW (may take 2~3 minutes)"); $tests++;
|
||||||
$out = `$prg $check2run --jsonfile tmp.json $uri`;
|
$out = `$prg $check2run --jsonfile tmp.json $uri`;
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ my (
|
|||||||
|
|
||||||
die "Unable to open $prg" unless -f $prg;
|
die "Unable to open $prg" unless -f $prg;
|
||||||
|
|
||||||
|
# useful against "failed to flush stdout" messages
|
||||||
|
STDOUT->autoflush(1);
|
||||||
|
|
||||||
# Provide proper start conditions
|
# Provide proper start conditions
|
||||||
unlink 'tmp.json';
|
unlink 'tmp.json';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user