From: Michael R Sweet Date: Thu, 20 Nov 2025 19:10:35 +0000 (-0500) Subject: On a successful run, move the libcups test.log to test-passed.log. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16ab6ab18e1391c3abea0dc2a37f531b12076c35;p=thirdparty%2Fcups.git On a successful run, move the libcups test.log to test-passed.log. For GitHub CI, upload test logs as artifacts. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0f2030201..d014bfa475 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/cups/Makefile b/cups/Makefile index 3b4b59da1c..9ac3191171 100644 --- a/cups/Makefile +++ b/cups/Makefile @@ -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 #