Commit 23272929 authored by Carlos Garnacho's avatar Carlos Garnacho

tests: Link to internal library in libtracker-miner tests

It does test internal API, so explicitly link to it.
parent 11d9d281
shared_libtracker_miner_monitor_sources = files('tracker-monitor.c')
shared_libtracker_miner_file_system_sources = files('tracker-file-system.c')
shared_libtracker_miner_crawler_sources = files('tracker-crawler.c')
miner_enums = gnome.mkenums('tracker-miner-enum-types',
sources: 'tracker-miner-enums.h',
c_template: 'tracker-miner-enum-types.c.template',
......@@ -15,6 +11,7 @@ private_sources = [
'tracker-file-data-provider.c',
'tracker-file-notifier.c',
'tracker-file-system.c',
'tracker-monitor.c',
'tracker-priority-queue.c',
'tracker-task-pool.c',
'tracker-sparql-buffer.c',
......@@ -34,9 +31,6 @@ miner_headers = [
]
miner_sources = (
shared_libtracker_miner_monitor_sources +
shared_libtracker_miner_file_system_sources +
shared_libtracker_miner_crawler_sources +
['tracker-data-provider.c',
'tracker-decorator.c',
'tracker-decorator-fs.c',
......
......@@ -34,7 +34,8 @@ foreach base_name: libtracker_miner_tests
binary = executable(binary_name, source,
dependencies: libtracker_miner_test_deps,
c_args: libtracker_miner_test_c_args)
c_args: libtracker_miner_test_c_args,
link_with: [libtracker_miner_private])
test(test_name, binary,
env: libtracker_miner_test_environment)
......@@ -47,7 +48,8 @@ foreach base_name: libtracker_miner_slow_tests
binary = executable(binary_name, source,
dependencies: libtracker_miner_test_deps,
c_args: libtracker_miner_test_c_args)
c_args: libtracker_miner_test_c_args,
link_with: [libtracker_miner_private])
test(test_name, binary,
env: libtracker_miner_test_environment,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment