Skip to content

Commit 16ab6ab

Browse files
committed
On a successful run, move the libcups test.log to test-passed.log.
For GitHub CI, upload test logs as artifacts.
1 parent 3a7209d commit 16ab6ab

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ jobs:
3232
- name: Build CUPS
3333
run: make
3434
- name: Test CUPS
35-
run: make test || (cat cups/test.log; test -f test/error_log && cat test/error_log*)
35+
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*)
36+
- name: Upload Test Results
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: ubuntu-openssl-test-results
40+
path: |
41+
cups/test*.log
42+
test/*_log*
43+
test/cups-str-*.html
3644
3745
build-linux-gnutls:
3846

@@ -55,7 +63,15 @@ jobs:
5563
- name: Build CUPS
5664
run: make
5765
- name: Test CUPS
58-
run: make test || (cat cups/test.log; test -f test/error_log && cat test/error_log*)
66+
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*)
67+
- name: Upload Test Results
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: ubuntu-gnutls-test-results
71+
path: |
72+
cups/test*.log
73+
test/*_log*
74+
test/cups-str-*.html
5975
6076
build-macos:
6177

@@ -73,7 +89,15 @@ jobs:
7389
- name: Build CUPS
7490
run: make
7591
- name: Test CUPS
76-
run: make test || (cat cups/test.log; test -f test/error_log && cat test/error_log*)
92+
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*)
93+
- name: Upload Test Results
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: macos-test-results
97+
path: |
98+
cups/test*.log
99+
test/*_log*
100+
test/cups-str-*.html
77101
78102
build-windows:
79103

cups/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ test: unittests
290290
# echo Fuzzing IPP API...
291291
# ./fuzzipp 2>>test.log
292292
echo "Tests finished at $$(date)..." >>test.log
293+
$(MV) test.log test-passed.log
293294

294295

295296
#

0 commit comments

Comments
 (0)