summaryrefslogtreecommitdiff
path: root/tests/libtracker-sparql/meson.build
blob: 3eef29be9cedf3b79bc2d0e9405fc31f30985e7f (plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
libtracker_sparql_test_c_args = tracker_c_args + [
  '-DTEST',
  '-DTEST_ONTOLOGIES_DIR="@0@"'.format(tracker_uninstalled_nepomuk_ontologies_dir),
]

libtracker_sparql_test_deps = [
    tracker_common_dep, tracker_sparql_dep
]

tracker_resource_test = executable('tracker-resource-test',
  'tracker-resource-test.c',
  dependencies: libtracker_sparql_test_deps,
  c_args: libtracker_sparql_test_c_args)

tests += {
  'name': 'resource',
  'exe': tracker_resource_test,
  'suite': ['resource'],
}

tracker_sparql_test = executable('tracker-sparql-test',
  'tracker-sparql-test.c',
  dependencies: libtracker_sparql_test_deps,
  c_args: libtracker_sparql_test_c_args)

tests += {
  'name': 'sparql',
  'exe': tracker_sparql_test,
  'suite': ['sparql'],
  'is_parallel': false,
}

tracker_fd_test = executable('tracker-fd-test',
  'tracker-fd-test.c',
  dependencies: [tracker_common_dep, tracker_sparql_dep],
  c_args: libtracker_sparql_test_c_args)

tests += {
  'name': 'fd',
  'exe': tracker_fd_test,
  'suite': ['sparql'],
}

tracker_cursor_test = executable('tracker-cursor-test',
  'tracker-cursor-test.c',
  dependencies: [tracker_common_dep, tracker_sparql_dep],
  c_args: libtracker_sparql_test_c_args)

tests += {
  'name': 'cursor+json',
  'exe': tracker_cursor_test,
  'suite': ['sparql'],
  'env': { 'TRACKER_TEST_PREFERRED_CURSOR_FORMAT': '0' },
}

tests += {
  'name': 'cursor+xml',
  'exe': tracker_cursor_test,
  'suite': ['sparql'],
  'env': { 'TRACKER_TEST_PREFERRED_CURSOR_FORMAT': '1' },
}

test_gresources = gnome.compile_resources('test_gresources', 'statement-queries.gresource.xml')

tracker_statement_test = executable('tracker-statement-test',
  'tracker-statement-test.c',
  test_gresources,
  dependencies: [tracker_common_dep, tracker_sparql_dep],
  c_args: libtracker_sparql_test_c_args + test_c_args)

tests += {
  'name': 'statement',
  'exe': tracker_statement_test,
  'suite': ['sparql'],
}

tracker_serialize_test = executable('tracker-serialize-test',
  'tracker-serialize-test.c',
  dependencies: [tracker_common_dep, tracker_sparql_dep],
  c_args: libtracker_sparql_test_c_args + test_c_args)

tests += {
  'name': 'serialize',
  'exe': tracker_serialize_test,
  'suite': ['sparql'],
}

tracker_namespaces_test = executable('tracker-namespaces-test',
  'tracker-namespaces-test.c',
  dependencies: [tracker_common_dep, tracker_sparql_dep],
  c_args: libtracker_sparql_test_c_args + test_c_args)

tests += {
  'name': 'namespaces',
  'exe': tracker_namespaces_test,
  'suite': ['sparql'],
}