]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: fold timing details with GHA, sync `-r` tflags
authorViktor Szakats <commit@vsz.me>
Sat, 20 Jul 2024 16:20:06 +0000 (18:20 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 27 Jul 2024 17:17:31 +0000 (19:17 +0200)
- move timing details into a foldable group when run in GitHub Actions.
  Spec:
  https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#grouping-log-lines

- enable `-r` (run time stats) option in autotools' `test-ci` target,
  syncing it with cmake.

Closes #14284

tests/Makefile.am
tests/runtests.pl

index 4e95b59f9d61d3197323205b915d0dba4418b4ee..f3e0f87e3c6fa201749a6da0b003f1ce44fe0dcd 100644 (file)
@@ -127,7 +127,7 @@ TEST_E = -a -e
 TEST_NF = -a -p ~flaky ~timing-dependent
 
 # special CI target derived from nonflaky with CI-specific flags
-TEST_CI = $(TEST_NF) -rm
+TEST_CI = $(TEST_NF) -r -rm
 endif
 
 # make sure that PERL is pointing to an executable
index 9cc9ef1dfac4a46373c4f6ee862717dae74766a5..e5d8e3da04a306be4e0a1442f79212c0798196b6 100755 (executable)
@@ -1983,6 +1983,8 @@ sub runtimestats {
 
     return if(not $timestats);
 
+    logmsg "::group::Run Time Stats\n";
+
     logmsg "\nTest suite total running time breakdown per task...\n\n";
 
     my @timesrvr;
@@ -2109,6 +2111,8 @@ sub runtimestats {
     }
 
     logmsg "\n";
+
+    logmsg "::endgroup::\n";
 }
 
 #######################################################################