summaryrefslogtreecommitdiffstats
path: root/tests/network/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:36:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:36:24 +0000
commit9b6d8e63db85c30007b463e91f91a791969fa83f (patch)
tree0899af51d73c1bf986f73ae39a03c4436083018a /tests/network/meson.build
parentInitial commit. (diff)
downloadgnome-control-center-upstream.tar.xz
gnome-control-center-upstream.zip
Adding upstream version 1:3.38.4.upstream/1%3.38.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/network/meson.build49
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/network/meson.build b/tests/network/meson.build
new file mode 100644
index 0000000..34f7c74
--- /dev/null
+++ b/tests/network/meson.build
@@ -0,0 +1,49 @@
+
+
+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(),
+# Disable ATK, this should not be required but it caused CI failures -- 2018-12-07
+ 'NO_AT_BRIDGE=1'
+]
+
+test(
+ 'test-network-panel',
+ find_program('test-network-panel.py'),
+ env : envs,
+ timeout : 60
+)
+
+exe = executable(
+ 'test-wifi-panel-text',
+ ['test-wifi-text.c'],
+ include_directories : includes + [common_inc],
+ dependencies : common_deps + network_manager_deps + [libtestshell_dep],
+ link_with : [network_panel_lib],
+ c_args : cflags,
+)
+
+test(
+ 'test-wif-panel-text',
+ exe,
+ env : envs,
+ timeout : 60
+)