]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: show snapshot commit in testcurl
authorDan Fandrich <dan@coneharvesters.com>
Tue, 6 Aug 2024 22:00:05 +0000 (15:00 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 7 Aug 2024 07:22:38 +0000 (00:22 -0700)
This disambiguates the source code being tested. The output format is
the same as when testing out of a git repo, but with no description and
a long hash.

Ref: #14363
Closes #14429

tests/testcurl.pl

index 5c230ef4eee544c321db60e202c8a735fff893b9..dfb0c19769d2fa6c4fa79d07b85ca1bc5a6149af 100755 (executable)
@@ -77,7 +77,7 @@ use vars qw($name $email $desc $confopts $runtestopts $setupfile $mktarball
             $timestamp $notes);
 
 # version of this script
-$version='2023-03-28';
+$version='2024-08-07';
 $fixed=0;
 
 # Determine if we're running from git or a canned copy of curl,
@@ -484,6 +484,16 @@ if ($git) {
   else {
     logit "autoreconf -fi was successful (dummy message)";
   }
+
+} else {
+    # Show snapshot git commit when available
+    if (open (my $f, '<', "docs/tarball-commit.txt")) {
+      my $commit = <$f>;
+      chomp $commit;
+      logit "The most recent curl git commits:";
+      logit "  $commit";
+      close($f);
+    }
 }
 
 # Set timestamp to the one in curlver.h if this isn't a git test build.