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'],
}

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'],
}
