gnome-control-center/tests/network/meson.build
Georges Basile Stavracas Neto af0186aaf9 project: Update meson files
I probably have OCD. Seeing these files
with this poor alignment gives me physical
pain.
2018-05-03 00:45:29 -03:00

31 lines
972 B
Meson

includes = [top_inc, include_directories('../../panels/network', 'nm-utils')]
cflags = [
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_WITH_GLIB',
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tests', 'network', 'nm-utils', 'test-networkmanager-service.py')),
]
exe = executable(
'test-network-panel',
['test-network-panel.c', 'cc-test-window.c', 'nm-utils/nm-test-utils-impl.c'],
include_directories : includes + [common_inc],
dependencies : common_deps + network_manager_deps + [libtestshell_dep],
link_with : [network_panel_lib],
c_args : cflags
)
envs = [
'G_MESSAGES_DEBUG=all',
'BUILDDIR=' + meson.current_build_dir(),
'TOP_BUILDDIR=' + meson.build_root()
]
test(
'test-network-panel',
find_program('test-network-panel.py'),
env : envs,
timeout : 10
)