Remove now deprecated test scripts
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Dec 2009 21:44:24 +0000 (22:44 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Dec 2009 21:44:24 +0000 (22:44 +0100)
Makefile.am
test/list-connections [deleted file]
test/test-manager

index c5e804b..59de002 100644 (file)
@@ -122,13 +122,13 @@ tools_polkit_test_LDADD = @DBUS_LIBS@
 endif
 
 test_scripts = test/get-state test/list-profiles test/list-services \
-               test/connect-service test/list-connections \
+               test/connect-service test/monitor-services \
                test/select-connection test/list-devices test/enable-device \
                test/disable-device test/start-scanning test/list-networks \
                test/set-passphrase test/set-address test/test-profile \
                test/simple-agent test/show-introspection test/test-compat \
                test/test-manager test/test-connman test/monitor-connman \
-               test/monitor-services test/debug-connman
+               test/debug-connman
 
 if TEST
 testdir = $(pkglibdir)/test
diff --git a/test/list-connections b/test/list-connections
deleted file mode 100755 (executable)
index 655e50a..0000000
+++ /dev/null
@@ -1,27 +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["Connections"]:
-       connection = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Connection")
-
-       properties = connection.GetProperties()
-
-       print "[ %s ]" % (path)
-
-       for key in properties.keys():
-               if key in ["Strength", "Priority"]:
-                       val = int(properties[key])
-               else:
-                       val = str(properties[key])
-               print "    %s = %s" % (key, val)
-
-       print
index 07e3d85..38df8da 100755 (executable)
@@ -14,8 +14,6 @@ def print_properties(key, value):
                interface = "org.moblin.connman.Profile"
        elif key == "Devices":
                interface = "org.moblin.connman.Device"
-       elif key == "Connections":
-               interface = "org.moblin.connman.Connection"
        elif key == "Services":
                interface = "org.moblin.connman.Service"
        else:
@@ -60,7 +58,7 @@ def print_properties(key, value):
                        print "        Services = [ %s]" % (list)
 
 for key in properties.keys():
-       if key in ["Profiles", "Devices", "Connections", "Services"]:
+       if key in ["Profiles", "Devices", "Services"]:
                print_properties(key, properties[key])
        elif key in ["AvailableTechnologies", "EnabledTechnologies",
                                        "ConnectedTechnologies",