From 424c620a3248b8850d839997d08336a7cf15818d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 7 Dec 2009 22:44:24 +0100 Subject: [PATCH] Remove now deprecated test scripts --- Makefile.am | 4 ++-- test/list-connections | 27 --------------------------- test/test-manager | 4 +--- 3 files changed, 3 insertions(+), 32 deletions(-) delete mode 100755 test/list-connections diff --git a/Makefile.am b/Makefile.am index c5e804b..59de002 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 655e50a..0000000 --- a/test/list-connections +++ /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 diff --git a/test/test-manager b/test/test-manager index 07e3d85..38df8da 100755 --- a/test/test-manager +++ b/test/test-manager @@ -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", -- 2.7.4