From: Viktor Szakats Date: Fri, 20 Sep 2024 00:54:38 +0000 (+0200) Subject: runtests: log output improvements X-Git-Tag: curl-8_11_0~391 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=caefaecaad0707a50ece7d230bdb89bd2217458d;p=thirdparty%2Fcurl.git runtests: log output improvements - show invocation arguments (tflags) in the log. - show `curl -V` protocols in the log. Closes #14985 --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 4221803f8a..97c5b76b76 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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;