diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-20 16:36:10 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-20 16:36:10 +0200 |
commit | 12077f58cb4b55eb24fde45bd337fb0a85303ed5 (patch) | |
tree | 14b238504e49fa3ba6767bf183adc6f2e42f38fd | |
parent | 49c3cd3a8bb28f0d95e49fa522b20ff1ea331390 (diff) | |
download | connman-12077f58cb4b55eb24fde45bd337fb0a85303ed5.tar.gz connman-12077f58cb4b55eb24fde45bd337fb0a85303ed5.tar.bz2 connman-12077f58cb4b55eb24fde45bd337fb0a85303ed5.zip |
Remove test scripts for deprecated interfaces
-rw-r--r-- | test/Makefile.am | 4 | ||||
-rwxr-xr-x | test/connect-network | 40 | ||||
-rwxr-xr-x | test/create-network | 26 | ||||
-rwxr-xr-x | test/disable-network | 31 | ||||
-rwxr-xr-x | test/disconnect-network | 40 | ||||
-rwxr-xr-x | test/join-network | 42 | ||||
-rwxr-xr-x | test/select-network | 42 |
7 files changed, 1 insertions, 224 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index e63f113e..32bc04c0 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 index 37cf60bd..00000000 --- a/test/connect-network +++ /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 index 32c8ab30..00000000 --- a/test/create-network +++ /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 index 0f261549..00000000 --- a/test/disable-network +++ /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 index 3bb235af..00000000 --- a/test/disconnect-network +++ /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 index b5f63c97..00000000 --- a/test/join-network +++ /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 index 376d9d2b..00000000 --- a/test/select-network +++ /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() |