summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-04 12:04:30 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-04 12:04:30 +0100
commit206a2cad3435d785ddb76980c9af7540c9a3c3d5 (patch)
tree9c90f954670be6f2739a862e33e8cf56b83b41da
parentfb4cdf2283756b5fe31526420d151d7b740f419a (diff)
downloadconnman-206a2cad3435d785ddb76980c9af7540c9a3c3d5.tar.gz
connman-206a2cad3435d785ddb76980c9af7540c9a3c3d5.tar.bz2
connman-206a2cad3435d785ddb76980c9af7540c9a3c3d5.zip
Remove outdated test scripts
-rw-r--r--test/Makefile.am6
-rwxr-xr-xtest/list-elements22
-rwxr-xr-xtest/monitor-elements49
-rwxr-xr-xtest/monitor-networks52
-rwxr-xr-xtest/monitor-state57
5 files changed, 3 insertions, 183 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index e0be1bc4..5d61b645 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,7 +1,7 @@
-EXTRA_DIST = list-profiles list-elements monitor-elements monitor-state \
- get-state set-passphrase select-network disable-network \
- monitor-networks enable-device disable-device start-scanning \
+EXTRA_DIST = get-state list-profiles list-connections \
+ list-devices enable-device disable-device start-scanning \
+ list-networks select-network disable-network set-passphrase \
simple-agent show-introspection test-compat test-supplicant
MAINTAINERCLEANFILES = Makefile.in
diff --git a/test/list-elements b/test/list-elements
deleted file mode 100755
index 3def8819..00000000
--- a/test/list-elements
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/python
-
-import dbus
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
-
-elements = manager.ListElements()
-
-for path in elements:
- print "[ %s ]" % (path)
-
- element = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Element")
-
- properties = element.GetProperties()
- for key in properties.keys():
- print " %s = %s" % (key, properties[key])
-
- print
diff --git a/test/monitor-elements b/test/monitor-elements
deleted file mode 100755
index 81803952..00000000
--- a/test/monitor-elements
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/python
-
-import gobject
-
-import dbus
-import dbus.service
-import dbus.mainloop.glib
-
-def element_print(action, path):
- print "%s [ %s ]" % (action, path)
-
- if (action == "-"):
- return
-
- element = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Element")
-
- properties = element.GetProperties()
- for key in properties.keys():
- print " %s = %s" % (key, properties[key])
-
-def element_added(path):
- element_print("+", path)
-
-def element_updated(path):
- element_print("*", path)
-
-def element_removed(path):
- element_print("-", path)
-
-if __name__ == '__main__':
- dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
-
- bus = dbus.SystemBus()
-
- bus.add_signal_receiver(element_added,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementAdded")
-
- bus.add_signal_receiver(element_updated,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementUpdated")
-
- bus.add_signal_receiver(element_removed,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementRemoved")
-
- mainloop = gobject.MainLoop()
- mainloop.run()
diff --git a/test/monitor-networks b/test/monitor-networks
deleted file mode 100755
index ce817ef9..00000000
--- a/test/monitor-networks
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/python
-
-import gobject
-
-import dbus
-import dbus.service
-import dbus.mainloop.glib
-
-def element_print(action, path):
- print "%s [ %s ]" % (action, path)
-
- if (action == "-"):
- return
-
- element = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Element")
-
- properties = element.GetProperties()
- if (properties["Type"] != "network"):
- return
-
- for key in properties.keys():
- print " %s = %s" % (key, properties[key])
-
-def element_added(path):
- element_print("+", path)
-
-def element_updated(path):
- element_print("*", path)
-
-def element_removed(path):
- element_print("-", path)
-
-if __name__ == '__main__':
- dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
-
- bus = dbus.SystemBus()
-
- bus.add_signal_receiver(element_added,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementAdded")
-
- bus.add_signal_receiver(element_updated,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementUpdated")
-
- bus.add_signal_receiver(element_removed,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementRemoved")
-
- mainloop = gobject.MainLoop()
- mainloop.run()
diff --git a/test/monitor-state b/test/monitor-state
deleted file mode 100755
index b4bd1de0..00000000
--- a/test/monitor-state
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/python
-
-import gobject
-
-import dbus
-import dbus.service
-import dbus.mainloop.glib
-
-internet_path = ""
-
-def get_properties(path):
- element = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Element")
-
- return element.GetProperties()
-
-def element_added(path):
- global internet_path
- properties = get_properties(path)
- if (properties["Type"] == "dhcp"):
- print "Aquiring IP address"
- if (properties["Type"] == "ipv4"):
- print "IP address assigned"
- if (properties["Type"] == "internet"):
- internet_path = path
- print "Succesfully connected"
-
-def element_updated(path):
- properties = get_properties(path)
- if (properties["Type"] == "network" and properties["Enabled"] == 1):
- print "Associated with %s" % (properties["SSID"])
-
-def element_removed(path):
- global internet_path
- if (path == internet_path):
- internet_path = ""
- print "Connection terminated"
-
-if __name__ == '__main__':
- dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
-
- bus = dbus.SystemBus()
-
- bus.add_signal_receiver(element_added,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementAdded")
-
- bus.add_signal_receiver(element_updated,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementUpdated")
-
- bus.add_signal_receiver(element_removed,
- dbus_interface = "org.moblin.connman.Manager",
- signal_name = "ElementRemoved")
-
- mainloop = gobject.MainLoop()
- mainloop.run()