gitlab: Use winetest JUnit output mode.

This commit is contained in:
Rémi Bernon 2024-10-10 14:09:17 +02:00 committed by Alexandre Julliard
parent ae54fa4721
commit 530b3f1694
Notes: Alexandre Julliard 2024-10-16 23:22:22 +02:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6672

View file

@ -57,7 +57,13 @@ test-linux-64:
- job: build-linux
script:
- export WINETEST_COLOR=1
- wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL $INCLUDE_TESTS
- wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -J winetest.xml $INCLUDE_TESTS
artifacts:
when: always
paths:
- winetest.xml
reports:
junit: winetest.xml
test-linux-32:
extends: .wine-test
@ -69,7 +75,13 @@ test-linux-32:
- job: build-linux
script:
- export WINETEST_COLOR=1
- wine usr/local/lib/wine/i386-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -n $EXCLUDE_TESTS
- wine usr/local/lib/wine/i386-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -J winetest.xml -n $EXCLUDE_TESTS
artifacts:
when: always
paths:
- winetest.xml
reports:
junit: winetest.xml
test-win10-21h2-32:
stage: test
@ -84,13 +96,23 @@ test-win10-21h2-32:
- win10-21h2
script:
- $WINETEST_ARGS = @(Get-Content ./winetest.args)
- if ($WINETEST_ARGS.count -gt 0) { ./winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL @WINETEST_ARGS >winetest.log } else { echo $null >winetest.log }
- |
if ($WINETEST_ARGS.count -gt 0) {
./winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -J winetest.tmp @WINETEST_ARGS >winetest.log
} else {
echo '<?xml version="1.0" encoding="UTF-8"?><testsuites/>' >winetest.tmp
echo $null >winetest.log
}
after_script:
- Get-Content ./winetest.tmp | Set-Content -Encoding utf8 winetest.xml
- Get-Content ./winetest.log
artifacts:
when: always
paths:
- winetest.xml
- winetest.log
reports:
junit: winetest.xml
test-win10-21h2-64:
stage: test
@ -105,13 +127,23 @@ test-win10-21h2-64:
- win10-21h2
script:
- $WINETEST_ARGS = @(Get-Content ./winetest.args)
- if ($WINETEST_ARGS.count -gt 0) { ./winetest64.exe -q -q -o - -t gitlab -u $CI_JOB_URL @WINETEST_ARGS >winetest.log } else { echo $null >winetest.log }
- |
if ($WINETEST_ARGS.count -gt 0) {
./winetest64.exe -q -q -o - -t gitlab -u $CI_JOB_URL -J winetest.tmp @WINETEST_ARGS >winetest.log
} else {
echo '<?xml version="1.0" encoding="UTF-8"?><testsuites/>' >winetest.tmp
echo $null >winetest.log
}
after_script:
- Get-Content ./winetest.tmp | Set-Content -Encoding utf8 winetest.xml
- Get-Content ./winetest.log
artifacts:
when: always
paths:
- winetest.xml
- winetest.log
reports:
junit: winetest.xml
debian-32:
extends: .wine-test