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
|
# Copyright 2019 Endless OS Foundation LLC
# Copyright 2019 Collabora Ltd.
# SPDX-License-Identifier: LGPL-2.1-or-later
libglnx_testlib = static_library(
'glnx-testlib',
'libglnx-testlib.c',
'libglnx-testlib.h',
dependencies : [
libglnx_dep,
libglnx_deps,
],
install : false,
)
libglnx_testlib_dep = declare_dependency(
dependencies : [
libglnx_dep,
libglnx_deps,
],
include_directories : include_directories('.'),
link_with : libglnx_testlib,
)
if get_option('tests')
executable(
'testing-helper',
'testing-helper.c',
dependencies : [
libglnx_dep,
libglnx_deps,
],
install : false,
)
test_names = [
'errors',
'fdio',
'macros',
'shutil',
'testing',
'xattrs',
]
foreach test_name : test_names
exe = executable(test_name,
[
'test-libglnx-' + test_name + '.c',
],
dependencies: [
libglnx_dep,
libglnx_deps,
libglnx_testlib_dep,
],
)
test(test_name, exe)
endforeach
endif
|