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

Targets not depended on by anything are not useful and likely never get run.
This commit is contained in:
Lubomir Rintel 2018-06-26 18:36:31 +02:00
parent 22813fdc60
commit 1491efa5d8
10 changed files with 28 additions and 28 deletions

View File

@ -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

View File

@ -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(

View File

@ -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

View File

@ -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 = []

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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(