File: tests-Divide-tests-into-suites.patch

package info (click to toggle)
libportal 0.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,504 kB
  • sloc: ansic: 9,998; python: 2,329; cpp: 898; javascript: 699; sh: 176; makefile: 68; xml: 20
file content (42 lines) | stat: -rw-r--r-- 1,247 bytes parent folder | download
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
From: Simon McVittie <smcv@debian.org>
Date: Sun, 22 Sep 2024 13:37:24 +0100
Subject: tests: Divide tests into suites

---
 tests/meson.build     | 1 +
 tests/qt5/meson.build | 2 +-
 tests/qt6/meson.build | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/meson.build b/tests/meson.build
index d126a06..880c48b 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -19,6 +19,7 @@ if meson.version().version_compare('>= 0.56.0')
       pytest,
       args: ['--verbose', '--verbose', '--log-level=DEBUG'],
       env: test_env,
+      suite: 'pytest',
       workdir: meson.current_source_dir(),
       timeout: 180,
     )
diff --git a/tests/qt5/meson.build b/tests/qt5/meson.build
index 25b78cf..3ab2a4d 100644
--- a/tests/qt5/meson.build
+++ b/tests/qt5/meson.build
@@ -20,4 +20,4 @@ exe = executable('qt5-test',
   cpp_args : '-std=c++11',
 )
 
-test('Qt 5 unit test', exe)
+test('Qt 5 unit test', exe, suite: 'qt5')
diff --git a/tests/qt6/meson.build b/tests/qt6/meson.build
index 2a0c1a4..45598bc 100644
--- a/tests/qt6/meson.build
+++ b/tests/qt6/meson.build
@@ -20,4 +20,4 @@ exe = executable('qt6-test',
   cpp_args : '-std=c++17',
 )
 
-test('Qt 6 unit test', exe)
+test('Qt 6 unit test', exe, suite: 'qt6')