Remove test scripts for deprecated interfaces
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 20 Jul 2009 14:36:10 +0000 (16:36 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 20 Jul 2009 14:36:10 +0000 (16:36 +0200)
test/Makefile.am
test/connect-network [deleted file]
test/create-network [deleted file]
test/disable-network [deleted file]
test/disconnect-network [deleted file]
test/join-network [deleted file]
test/select-network [deleted file]

index e63f113ed90b466b9847b3c58a42b747b2e56855..32bc04c0d0d00eab6d73b9d95354b190b857abf2 100644 (file)
@@ -2,9 +2,7 @@
 EXTRA_DIST = get-state list-profiles list-services connect-service \
                list-connections select-connection \
                list-devices enable-device disable-device start-scanning \
-               list-networks select-network disable-network create-network \
-               set-passphrase set-address \
-               connect-network disconnect-network join-network \
+               list-networks set-passphrase set-address \
                simple-agent show-introspection test-compat test-manager \
                test-connman monitor-connman monitor-services debug-connman
 
diff --git a/test/connect-network b/test/connect-network
deleted file mode 100755 (executable)
index 37cf60b..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
-       print "Usage: %s <network>" % (sys.argv[0])
-       sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
-       device = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Device")
-
-       properties = device.GetProperties()
-
-       if properties["Type"] not in ["wifi", "wimax",
-                                       "bluetooth", "cellular"]:
-               continue
-
-       for path in properties["Networks"]:
-               network = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Network")
-
-               properties = network.GetProperties()
-
-               dev = path[path.rfind("/") + 1:]
-
-               if "Name" not in properties.keys():
-                       continue
-
-               if dev == sys.argv[1] or properties["Name"] == sys.argv[1]:
-                       print "Connecting %s" % (path)
-                       network.Connect()
diff --git a/test/create-network b/test/create-network
deleted file mode 100755 (executable)
index 32c8ab3..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
-       print "Usage: %s <network>" % (sys.argv[0])
-       sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
-       device = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Device")
-
-       properties = device.GetProperties()
-
-       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
-               continue;
-
-       path = device.CreateNetwork({ "WiFi.SSID": sys.argv[1] });
diff --git a/test/disable-network b/test/disable-network
deleted file mode 100755 (executable)
index 0f26154..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/python
-
-import dbus
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
-       device = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Device")
-
-       properties = device.GetProperties()
-
-       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
-               continue;
-
-       print "[ %s ]" % (path)
-
-       for path in properties["Networks"]:
-               network = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Network")
-
-               properties = network.GetProperties()
-
-               if (properties["Connected"] == dbus.Boolean(1)):
-                       print "Disconnecting %s" % (path)
-                       network.Disconnect()
diff --git a/test/disconnect-network b/test/disconnect-network
deleted file mode 100755 (executable)
index 3bb235a..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
-       print "Usage: %s <network>" % (sys.argv[0])
-       sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
-       device = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Device")
-
-       properties = device.GetProperties()
-
-       if properties["Type"] not in ["wifi", "wimax",
-                                       "bluetooth", "cellular"]:
-               continue
-
-       for path in properties["Networks"]:
-               network = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Network")
-
-               properties = network.GetProperties()
-
-               dev = path[path.rfind("/") + 1:]
-
-               if "Name" not in properties.keys():
-                       continue
-
-               if dev == sys.argv[1] or properties["Name"] == sys.argv[1]:
-                       print "Disconnecting %s" % (path)
-                       network.Disconnect()
diff --git a/test/join-network b/test/join-network
deleted file mode 100755 (executable)
index b5f63c9..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
-       print "Usage: %s <ssid> [passphrase] [security]" % (sys.argv[0])
-       sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
-       device = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Device")
-
-       properties = device.GetProperties()
-
-       if (properties["Type"] != "wifi"):
-               continue;
-
-       print "[ %s ]" % (path)
-       print "Attempting to join %s" % (sys.argv[1])
-
-       if len(sys.argv) > 2:
-               if len(sys.argv) > 3:
-                       security = sys.argv[3]
-               else:
-                       security = "rsn"
-               passphrase = sys.argv[2]
-       else:
-               security = "none"
-               passphrase = ""
-
-       device.JoinNetwork({ "WiFi.Mode": "managed",
-                                       "WiFi.SSID": sys.argv[1],
-                                       "WiFi.Security": security,
-                                       "WiFi.Passphrase": passphrase })
diff --git a/test/select-network b/test/select-network
deleted file mode 100755 (executable)
index 376d9d2..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 2):
-       print "Usage: %s <network>" % (sys.argv[0])
-       sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
-       device = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Device")
-
-       properties = device.GetProperties()
-
-       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
-               continue
-
-       print "[ %s ]" % (path)
-
-       for path in properties["Networks"]:
-               network = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Network")
-
-               properties = network.GetProperties()
-
-               if "Name" not in properties.keys():
-                       continue
-
-               if (properties["Connected"] == dbus.Boolean(1)):
-                       continue
-
-               if (properties["Name"] == sys.argv[1]):
-                       print "Connecting %s" % (path)
-                       network.Connect()