Output adjustments closer to a more common format

This commit is contained in:
Dirk Wetter
2020-01-14 18:44:11 +01:00
parent 13aa6aa433
commit 8d864aba2e
7 changed files with 42 additions and 30 deletions

View File

@ -21,27 +21,28 @@ printf "\n%s\n", "Testing whether just calling \"./testssl.sh --banner\" produce
$fileout = `timeout 10 bash ./testssl.sh --banner 2>&1`;
my $retval=$?;
unlike($fileout, qr/$error_regexp1/, "");
unlike($fileout, qr/$error_regexp1/, "regex 1");
$tests++;
unlike($fileout, qr/$error_regexp2/, "");
unlike($fileout, qr/$error_regexp2/, "regex 2");
$tests++;
unlike($fileout, qr/$error_regexp3/, "");
unlike($fileout, qr/$error_regexp3/, "regex 3");
$tests++;
unlike($fileout, qr/$error_regexp4/, "");
unlike($fileout, qr/$error_regexp4/, "regex 4");
$tests++;
unlike($fileout, qr/$error_regexp5/, "");
unlike($fileout, qr/$error_regexp5/, "regex 5");
$tests++;
like($fileout, qr/$good_regexp/, "");
like($fileout, qr/$good_regexp/, "regex positive");
$tests++;
is($retval, 0, "return value should be equal zero: \"$retval\"");
$tests++;
printf "\n";
done_testing($tests);