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
67
68
|
if enable_installed_tests
installed_tests_execdir = gvfs_libexecdir / 'installed-tests' / gvfs_name
installed_tests_metadir = gvfs_datadir / 'installed-tests' / gvfs_name
tests_conf = configuration_data()
tests_conf.set('testdir', installed_tests_execdir)
session = 'session.conf'
configure_file(
input: session + '.in',
output: session,
configuration: tests_conf,
install: true,
install_dir: installed_tests_execdir,
)
all_tests = 'gvfs-all-tests'
configure_file(
input: all_tests + '.in',
output: all_tests + '.test',
configuration: tests_conf,
install: true,
install_dir: installed_tests_metadir,
)
install_subdir(
'files',
install_dir: installed_tests_execdir,
)
gvfs_test = files('gvfs-test')
test_data = gvfs_test + [
daemon_service,
metadata_service,
]
install_data(
test_data + monitors_test_data,
install_dir: installed_tests_execdir,
)
endif
if enable_devel_utils
tests = [
'benchmark-gvfs-big-files',
'benchmark-gvfs-small-files',
'benchmark-posix-big-files',
'benchmark-posix-small-files',
'test-query-info-stream',
]
deps = [
gio_dep,
glib_dep,
]
foreach test: tests
executable(
test,
test + '.c',
include_directories: top_inc,
dependencies: deps,
)
endforeach
endif
|