Commit 1491efa5 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕

meson: run the check-export.sh in test phase

Targets not depended on by anything are not useful and likely never get run.
parent 22813fdc
......@@ -269,10 +269,10 @@ executable(
link_with: libnm_glib
)
run_target(
test(
'check-local-exports-' + libnm_glib_name,
command: [check_exports, libnm_glib.full_path(), linker_script],
depends: libnm_glib
check_exports,
args: [libnm_glib.full_path(), linker_script],
)
if enable_tests
......
......@@ -167,10 +167,10 @@ if enable_introspection
)
endif
run_target(
test(
'check-local-exports-' + libnm_util_name,
command: [check_exports, libnm_util.full_path(), linker_script],
depends: libnm_util
check_exports,
args: [libnm_util.full_path(), linker_script],
)
sources = files(
......
......@@ -186,10 +186,10 @@ pkg.generate(
]
)
run_target(
test(
'check-local-exports-' + libnm_name,
command: [check_exports, libnm.full_path(), linker_script],
depends: libnm
check_exports,
args: [libnm.full_path(), linker_script],
)
if enable_introspection
......
......@@ -809,7 +809,7 @@ intltool_xml_cmd = [intltool_merge, '-x', '-u', '-c', intltool_cache, po_dir, '@
perl = find_program('perl')
xsltproc = find_program('xsltproc')
check_exports = join_paths(meson.source_root(), 'tools', 'check-exports.sh')
check_exports = find_program(join_paths(meson.source_root(), 'tools', 'check-exports.sh'))
content_files = []
......
......@@ -20,10 +20,10 @@ libnm_device_plugin_adsl = shared_module(
core_plugins += libnm_device_plugin_adsl
run_target(
test(
'check-local-devices-adsl',
command: [check_exports, libnm_device_plugin_adsl.full_path(), linker_script_devices],
depends: libnm_device_plugin_adsl
check_exports,
args: [libnm_device_plugin_adsl.full_path(), linker_script_devices],
)
# FIXME: check_so_symbols replacement
......
......@@ -31,10 +31,10 @@ libnm_device_plugin_bluetooth = shared_module(
core_plugins += libnm_device_plugin_bluetooth
run_target(
test(
'check-local-devices-bluetooth',
command: [check_exports, libnm_device_plugin_bluetooth.full_path(), linker_script_devices],
depends: libnm_device_plugin_bluetooth
check_exports,
args: [libnm_device_plugin_bluetooth.full_path(), linker_script_devices],
)
# FIXME: check_so_symbols replacement
......
......@@ -24,10 +24,10 @@ libnm_device_plugin_ovs = shared_module(
core_plugins += libnm_device_plugin_ovs
run_target(
test(
'check-local-devices-ovs',
command: [check_exports, libnm_device_plugin_ovs.full_path(), linker_script_devices],
depends: libnm_device_plugin_ovs
check_exports,
args: [libnm_device_plugin_ovs.full_path(), linker_script_devices],
)
# FIXME: check_so_symbols replacement
......
......@@ -21,10 +21,10 @@ libnm_device_plugin_team = shared_module(
core_plugins += libnm_device_plugin_team
run_target(
test(
'check-local-devices-team',
command: [check_exports, libnm_device_plugin_team.full_path(), linker_script_devices],
depends: libnm_device_plugin_team
check_exports,
args: [libnm_device_plugin_team.full_path(), linker_script_devices],
)
# FIXME: check_so_symbols replacement
......
......@@ -33,10 +33,10 @@ libnm_device_plugin_wifi = shared_module(
core_plugins += libnm_device_plugin_wifi
run_target(
test(
'check-local-devices-wifi',
command: [check_exports, libnm_device_plugin_wifi.full_path(), linker_script_devices],
depends: libnm_device_plugin_wifi
check_exports,
args: [libnm_device_plugin_wifi.full_path(), linker_script_devices],
)
# FIXME: check_so_symbols replacement
......
......@@ -35,10 +35,10 @@ libnm_wwan_dep = declare_dependency(
core_plugins += libnm_wwan
run_target(
test(
'check-wwan',
command: [check_exports, libnm_wwan.full_path(), linker_script],
depends: libnm_wwan
check_exports,
args: [libnm_wwan.full_path(), linker_script],
)
sources = files(
......
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