-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (55 loc) · 1.6 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# SPDX-FileCopyrightText: 2024 Roman Gilg <[email protected]>
# SPDX-License-Identifier: MIT
name: Test
on:
workflow_call:
inputs:
image:
description: Image to run tests on
required: true
type: string
artifact-name:
description: Artifact name of build dir
required: false
type: string
default: 'build'
ctest-args:
description: Specify additional CTest arguments
required: false
type: string
default: ''
jobs:
test:
name: Test
runs-on: ubuntu-latest
container:
image: ${{ inputs.image }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Dependencies
uses: ./.github/actions/dep-artifacts
with:
secret: ${{ secrets.GITHUB_TOKEN }}
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
- name: Untar artifact
run: tar -xzf build-dir.tar
- name: List all tests
run: ctest --test-dir build -N
# Tests currently only run in one thread.
- name: Run selected tests
env:
DISPLAY: ":1"
WAYLAND_DEBUG: "server"
MESA_DEBUG: "1"
LIBGL_DEBUG: "verbose"
QT_LOGGING_RULES: "*=true"
ASAN_OPTIONS: "detect_odr_violation=0"
run:
"Xvfb :1 -ac -screen 0 1920x1080x24 > /dev/null 2>&1 &
dbus-run-session ctest --test-dir build -T Test \
--output-on-failure --no-compress-output ${{ inputs.ctest-args }}"
shell: bash