runtests: log output improvements

- show invocation arguments (tflags) in the log.
- show `curl -V` protocols in the log.

Closes #14985
This commit is contained in:
Viktor Szakats 2024-09-20 02:54:38 +02:00
parent b2331f3eea
commit caefaecaad
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -122,6 +122,7 @@ my $libtool;
my $repeat = 0;
my $start; # time at which testing started
my $args; # command-line arguments
my $uname_release = `uname -r`;
my $is_wsl = $uname_release =~ /Microsoft$/;
@ -480,6 +481,7 @@ sub parseprotocols {
# Information to do with servers is displayed in displayserverfeatures, after
# the server initialization is performed.
sub checksystemfeatures {
my $proto;
my $feat;
my $curl;
my $libcurl;
@ -623,8 +625,9 @@ sub checksystemfeatures {
}
}
elsif($_ =~ /^Protocols: (.*)/i) {
$proto = $1;
# these are the protocols compiled in to this libcurl
parseprotocols($1);
parseprotocols($proto);
}
elsif($_ =~ /^Features: (.*)/i) {
$feat = $1;
@ -847,12 +850,14 @@ sub checksystemfeatures {
logmsg ("********* System characteristics ******** \n",
"* $curl\n",
"* $libcurl\n",
"* Protocols: $proto\n",
"* Features: $feat\n",
"* Disabled: $dis\n",
"* Host: $hostname\n",
"* System: $hosttype\n",
"* OS: $hostos\n",
"* Perl: $^V ($^X)\n");
"* Perl: $^V ($^X)\n",
"* Args: $args\n");
if($jobs) {
# Only show if not the default for now
@ -2204,6 +2209,8 @@ if(@ARGV && $ARGV[-1] eq '$TFLAGS') {
push(@ARGV, split(' ', $ENV{'TFLAGS'})) if defined($ENV{'TFLAGS'});
}
$args = join(' ', @ARGV);
$valgrind = checktestcmd("valgrind");
my $number=0;
my $fromnum=-1;