Commit ef7da64a authored by Jussi Laakkonen's avatar Jussi Laakkonen

[unit] Add unit test for sailfish devmode plugin. JB#43982

Add unit test for the sailfish developer mode plugin. This tests
 - use of rtnl notifier to enable/disable valid/invalid devices
 - query sending over D-Bus
 - D-Bus signal handling
 - D-Bus error handling
 - Usb-moded goes away from D-Bus (and comes back)
parent fbed0420
......@@ -78,6 +78,7 @@ unit/test-sailfish_iptables_ext
unit/test-sailfish_datacounter
unit/test-sailfish_datacounters
unit/test-sailfish_datahistory
unit/test-sailfish_developer_mode
unit/test-firewall
unit/test-globalproxy
unit/test-iptables
......
......@@ -472,6 +472,17 @@ noinst_PROGRAMS += unit/test-sailfish_datahistory
TESTS += unit/test-sailfish_datahistory
endif
if SAILFISH_DEVELOPER_MODE
unit_test_sailfish_developer_mode_CFLAGS = $(COVERAGE_OPT) $(AM_CFLAGS) \
@GLIB_CFLAGS@
unit_test_sailfish_developer_mode_SOURCES = $(backtrace_sources) src/connman.h \
src/log.c plugins/sailfish_developer_mode.c \
unit/test-sailfish_developer_mode.c
unit_test_sailfish_developer_mode_LDADD = @GLIB_LIBS@ -ldl
noinst_PROGRAMS += unit/test-sailfish_developer_mode
TESTS += unit/test-sailfish_developer_mode
endif
if WISPR
noinst_PROGRAMS += tools/wispr
......
......@@ -17,7 +17,7 @@ test-sailfish_wakeup_timer \
test-sailfish_datacounter \
test-sailfish_datacounters \
test-sailfish_datahistory \
test-sailfish_wakeup_timer \
test-sailfish_developer_mode \
test-vpn-settings"
pushd `dirname $0` > /dev/null
......
This diff is collapsed.
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