1
2
3includes = [top_inc, include_directories('../../panels/network', 'nm-utils')]
4cflags = [
5  '-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
6  '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_WITH_GLIB',
7  '-DNETWORKMANAGER_COMPILATION_TEST',
8  '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tests', 'network', 'nm-utils', 'test-networkmanager-service.py')),
9]
10
11exe = executable(
12  'test-network-panel',
13  ['test-network-panel.c', 'cc-test-window.c', 'nm-utils/nm-test-utils-impl.c'],
14  include_directories : includes + [common_inc],
15         dependencies : common_deps + network_manager_deps + [libtestshell_dep],
16            link_with : [network_panel_lib],
17               c_args : cflags
18)
19
20envs = [
21  'G_MESSAGES_DEBUG=all',
22          'BUILDDIR=' + meson.current_build_dir(),
23      'TOP_BUILDDIR=' + meson.build_root(),
24# Disable ATK, this should not be required but it caused CI failures -- 2018-12-07
25      'NO_AT_BRIDGE=1'
26]
27
28test(
29  'test-network-panel',
30  find_program('test-network-panel.py'),
31      env : envs,
32  timeout : 60
33)
34
35exe = executable(
36  'test-wifi-panel-text',
37  ['test-wifi-text.c'],
38  include_directories : includes + [common_inc],
39  dependencies : common_deps + network_manager_deps + [libtestshell_dep],
40  link_with : [network_panel_lib],
41  c_args : cflags,
42)
43
44test(
45  'test-wif-panel-text',
46  exe,
47  env : envs,
48  timeout : 60
49)
50