]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
On a successful run, move the libcups test.log to test-passed.log.
authorMichael R Sweet <msweet@msweet.org>
Thu, 20 Nov 2025 19:10:35 +0000 (14:10 -0500)
committerMichael R Sweet <msweet@msweet.org>
Thu, 20 Nov 2025 19:10:35 +0000 (14:10 -0500)
For GitHub CI, upload test logs as artifacts.

.github/workflows/build.yml
cups/Makefile

index e0f20302018d00e85239ba93d21f6ea8eba8d758..d014bfa47581889ffeed700634751f21a16d9df2 100644 (file)
@@ -32,7 +32,15 @@ jobs:
     - name: Build CUPS
       run: make
     - name: Test CUPS
-      run: make test || (cat cups/test.log; test -f test/error_log && cat test/error_log*)
+      run: make test || (test -f cups/test.log && cat cups/test.log; test -f test/error_log-`date "+%Y-%m-%d"`-$USER && cat test/error_log*)
+    - name: Upload Test Results
+      uses: actions/upload-artifact@v4
+      with:
+        name: ubuntu-openssl-test-results
+        path: |
+          cups/test*.log
+          test/*_log*
+          test/cups-str-*.html
 
   build-linux-gnutls:
 
@@ -55,7 +63,15 @@ jobs:
     - name: Build CUPS
       run: make
     - name: Test CUPS
-      run: make test || (cat cups/test.log; test -f test/error_log && cat test/error_log*)
+      run: make test || (test -f cups/test.log && cat cups/test.log; test -f test/error_log-`date "+%Y-%m-%d"`-$USER && cat test/error_log*)
+    - name: Upload Test Results
+      uses: actions/upload-artifact@v4
+      with:
+        name: ubuntu-gnutls-test-results
+        path: |
+          cups/test*.log
+          test/*_log*
+          test/cups-str-*.html
 
   build-macos:
 
@@ -73,7 +89,15 @@ jobs:
     - name: Build CUPS
       run: make
     - name: Test CUPS
-      run: make test || (cat cups/test.log; test -f test/error_log && cat test/error_log*)
+      run: make test || (test -f cups/test.log && cat cups/test.log; test -f test/error_log-`date "+%Y-%m-%d"`-$USER && cat test/error_log*)
+    - name: Upload Test Results
+      uses: actions/upload-artifact@v4
+      with:
+        name: macos-test-results
+        path: |
+          cups/test*.log
+          test/*_log*
+          test/cups-str-*.html
 
   build-windows:
 
index 3b4b59da1c0f6ff6ffcfb4849efc12bb4ce68cbc..9ac3191171fa192add9750b34b08a96be65f582f 100644 (file)
@@ -290,6 +290,7 @@ test:               unittests
 #      echo Fuzzing IPP API...
 #      ./fuzzipp 2>>test.log
        echo "Tests finished at $$(date)..." >>test.log
+       $(MV) test.log test-passed.log
 
 
 #