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
58
59
60
61
62
63
64
65
66
|
# Copyright 2022 Collabora Ltd.
# SPDX-License-Identifier: MIT
testlib = static_library(
'testutils',
'util.c',
dependencies: [
dbus_dep,
glib_dep,
],
)
test_thread_server = executable(
'test-thread-server',
'test-thread-server.c',
dependencies: [
dbus_gmain_dep,
dbus_dep,
glib_dep,
gthread_dep,
],
link_with: testlib,
)
test_thread_client = executable(
'test-thread-client',
'test-thread-client.c',
dependencies: [
dbus_gmain_dep,
dbus_dep,
glib_dep,
gthread_dep,
],
link_with: testlib,
)
test_cases = ['30574']
foreach test_case : test_cases
exe = executable(
'test-' + test_case,
test_case + '.c',
dependencies: [
dbus_gmain_dep,
dbus_dep,
glib_dep,
],
link_with: testlib,
)
test(
test_case,
dbus_run_session,
args: [
'--',
exe,
],
)
endforeach
test(
'use-as-subproject',
find_program('python3'),
args: [
files('use-as-subproject.py'),
],
)
|