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
69
70
|
if meson.is_cross_build()
subdir_done()
endif
if xdgmime_found
test('test-staging',
find_program('test_staging.sh'),
args: [
meson.source_root(),
meson.build_root(),
freedesktop_org_xml,
update_mime_database,
xdgmime_print_mime_data.path(),
]
)
test('test-mime',
find_program('test_mime.sh'),
args: [
meson.source_root(),
meson.build_root(),
freedesktop_org_xml,
update_mime_database,
xdgmime_test_mime_data.path(),
xdgmime_test_mime.path(),
test_tree_magic.full_path(),
],
)
endif
run_target('check-generic-icons',
command: [ find_program('test_generic_icons.sh'), freedesktop_org_xml ],
)
test('No duplicate mime-types',
find_program('test_duplicate_mime_types.sh'),
args: freedesktop_org_xml,
)
test('Single spelling case',
find_program('test_case.py'),
args: freedesktop_org_xml,
)
test('Sanity check sub-class-of',
find_program('test_sub_class_ofs.py'),
args: freedesktop_org_xml,
)
test('xmllint freedesktop.org.xml',
xmllint,
args: [ '--noout', '--valid', freedesktop_org_xml, ],
)
test('Case sensitivity',
find_program('test-case-sensitivity.sh'),
)
test('update-mime-database',
update_mime_database,
args: meson.current_source_dir() / 'mime-db-tests',
)
its20_elements_rng = meson.source_root() / 'data/its/its20-elements.rng'
shared_mime_info_its = meson.source_root() / 'data/its/shared-mime-info.its'
test('ITS validation',
xmllint,
args: [ '--noout', '--relaxng', its20_elements_rng, shared_mime_info_its, ],
)
|