summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Makefile.am4
-rwxr-xr-xtest/connect-network40
-rwxr-xr-xtest/create-network26
-rwxr-xr-xtest/disable-network31
-rwxr-xr-xtest/disconnect-network40
-rwxr-xr-xtest/join-network42
-rwxr-xr-xtest/select-network42
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()