From: Marcel Holtmann Date: Mon, 7 Apr 2008 05:20:07 +0000 (+0200) Subject: Add script to check the Network Manager compat layer X-Git-Tag: 0.1~343 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebf293f4d8b72271775fac455c1e1a0de825193e;p=platform%2Fupstream%2Fconnman.git Add script to check the Network Manager compat layer --- diff --git a/test/Makefile.am b/test/Makefile.am index d563812..332c3bd 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,5 +1,5 @@ EXTRA_DIST = list-interfaces start-scanning select-network simple-agent \ - get-state show-introspection test-supplicant + get-state show-introspection test-compat test-supplicant MAINTAINERCLEANFILES = Makefile.in diff --git a/test/test-compat b/test/test-compat new file mode 100755 index 0000000..b1149b9 --- /dev/null +++ b/test/test-compat @@ -0,0 +1,13 @@ +#!/usr/bin/python + +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object('org.freedesktop.NetworkManager', + '/org/freedesktop/NetworkManager'), + 'org.freedesktop.NetworkManager') + +state = manager.state() + +print "System is %d" % (state)