summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-04-07 07:20:07 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-04-07 07:20:07 +0200
commitebf293f4d8b72271775fac455c1e1a0de825193e (patch)
treee4b07474ad3990fae02ad21c13040c0d9c448425 /test
parent7a2572623c022fd36f6e34f33d47fa90b479a5c0 (diff)
downloadconnman-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.am2
-rwxr-xr-xtest/test-compat13
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)