diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-04-07 07:20:07 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-04-07 07:20:07 +0200 |
commit | ebf293f4d8b72271775fac455c1e1a0de825193e (patch) | |
tree | e4b07474ad3990fae02ad21c13040c0d9c448425 /test | |
parent | 7a2572623c022fd36f6e34f33d47fa90b479a5c0 (diff) | |
download | connman-ebf293f4d8b72271775fac455c1e1a0de825193e.tar.gz connman-ebf293f4d8b72271775fac455c1e1a0de825193e.tar.bz2 connman-ebf293f4d8b72271775fac455c1e1a0de825193e.zip |
Add script to check the Network Manager compat layer
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 2 | ||||
-rwxr-xr-x | test/test-compat | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index d5638122..332c3bdb 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 00000000..b1149b9d --- /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) |