build: Remove unused list-profiles test script
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 10 Dec 2011 10:28:45 +0000 (12:28 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 10 Dec 2011 10:28:45 +0000 (12:28 +0200)
Makefile.am
test/list-profiles [deleted file]

index d5a76f9..ad9f70d 100644 (file)
@@ -189,7 +189,7 @@ unit_test_session_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ -ldl
 unit_objects += $(unit_test_session_OBJECTS)
 endif
 
-test_scripts = test/get-state test/list-profiles test/list-services \
+test_scripts = test/get-state test/list-services \
                test/connect-service test/monitor-services test/set-address \
                test/simple-agent test/show-introspection test/test-compat \
                test/test-manager test/test-connman test/monitor-connman \
diff --git a/test/list-profiles b/test/list-profiles
deleted file mode 100755 (executable)
index b9b9103..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/python
-
-import dbus
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("net.connman", "/"),
-                                       "net.connman.Manager")
-
-properties = manager.GetProperties()
-
-active = properties["ActiveProfile"]
-
-for path in properties["Profiles"]:
-       if (active == path):
-               print "[ %s ]  <== active" % (path)
-       else:
-               print "[ %s ]" % (path)
-
-       profile = dbus.Interface(bus.get_object("net.connman", path),
-                                               "net.connman.Profile")
-
-       properties = profile.GetProperties()
-       for key in properties.keys():
-               if key in ["Services"]:
-                       list = ""
-                       for path in properties["Services"]:
-                               val = str(path)
-                               list = list + val[val.rfind("/") + 1:] + " "
-                       print "    Services = [ %s]" % (list)
-               else:
-                       print "    %s = %s" % (key, properties[key])
-
-       print