Skip to content

Commit 16c1878

Browse files
committed
Legacy removals + housekeeping
* remove relics (CVS) * add diff to HTML CI run
1 parent 2f398d3 commit 16c1878

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

t/08_isHTML_valid.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use strict;
77
use Test::More;
88
use Data::Dumper;
9+
use Text::Diff;
910

1011
my $tests = 0;
1112
my $prg="./testssl.sh";
@@ -15,6 +16,7 @@ my $html="";
1516
my $debughtml="";
1617
my $edited_html="";
1718
my $check2run="--ip=one --color 0 --htmlfile tmp.html";
19+
my $diff="";
1820

1921
die "Unable to open $prg" unless -f $prg;
2022

@@ -72,5 +74,8 @@ $debughtml =~ s/.*DEBUG:.*\n//g;
7274
cmp_ok($debughtml, "eq", $html, "HTML file created with --debug 4 matches HTML file created without --debug");
7375
$tests++;
7476

77+
$diff = diff \$debughtml, \$html;
78+
printf "\n%s\n", "$diff";
79+
7580
printf "\n";
7681
done_testing($tests);

testssl.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ fileout_pretty_json_banner() {
867867

868868
echo -e " \"Invocation\" : \"$PROG_NAME $CMDLINE\",
869869
\"at\" : \"$HNAME:$OPENSSL_LOCATION\",
870-
\"version\" : \"$VERSION ${GIT_REL_SHORT:-$CVS_REL_SHORT} from $REL_DATE\",
870+
\"version\" : \"$VERSION ${GIT_REL_SHORT} from $REL_DATE\",
871871
\"openssl\" : \"$OSSL_NAME $OSSL_VER from $OSSL_BUILD_DATE\",
872872
\"startTime\" : \"$START_TIME\",
873873
\"scanResult\" : ["
@@ -1097,7 +1097,7 @@ html_banner() {
10971097
if "$CHILD_MASS_TESTING" && "$HTMLHEADER"; then
10981098
html_out "## Scan started as: \"$PROG_NAME $CMDLINE\"\n"
10991099
html_out "## at $HNAME:$OPENSSL_LOCATION\n"
1100-
html_out "## version testssl: $VERSION ${GIT_REL_SHORT:-$CVS_REL_SHORT} from $REL_DATE\n"
1100+
html_out "## version testssl: $VERSION ${GIT_REL_SHORT} from $REL_DATE\n"
11011101
html_out "## version openssl: \"$OSSL_NAME $OSSL_VER\" from \"$OSSL_BUILD_DATE\")\n\n"
11021102
fi
11031103
}
@@ -1141,7 +1141,7 @@ prepare_logging() {
11411141
fi
11421142
tmln_out "## Scan started as: \"$PROG_NAME $CMDLINE\"" >>"$LOGFILE"
11431143
tmln_out "## at $HNAME:$OPENSSL_LOCATION" >>"$LOGFILE"
1144-
tmln_out "## version testssl: $VERSION ${GIT_REL_SHORT:-$CVS_REL_SHORT} from $REL_DATE" >>"$LOGFILE"
1144+
tmln_out "## version testssl: $VERSION ${GIT_REL_SHORT} from $REL_DATE" >>"$LOGFILE"
11451145
tmln_out "## version openssl: \"$OSSL_VER\" from \"$OSSL_BUILD_DATE\")\n" >>"$LOGFILE"
11461146
exec > >(tee -a -i "$LOGFILE")
11471147
}
@@ -17507,9 +17507,7 @@ mybanner() {
1750717507
"$QUIET" && return
1750817508
"$CHILD_MASS_TESTING" && return
1750917509
OPENSSL_NR_CIPHERS=$(count_ciphers "$(actually_supported_osslciphers 'ALL:COMPLEMENTOFALL:@STRENGTH' 'ALL')")
17510-
[[ -z "$GIT_REL" ]] && \
17511-
idtag="$CVS_REL" || \
17512-
idtag="$GIT_REL -- $CVS_REL_SHORT"
17510+
[[ -n "$GIT_REL" ]] && idtag="$GIT_REL"
1751317511
bb1=$(cat <<EOF
1751417512

1751517513
###########################################################

0 commit comments

Comments
 (0)