diff options
author | Mohamed Abbas <mohamed.abbas@intel.com> | 2009-12-08 11:53:11 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-09 00:37:12 +0100 |
commit | 27b121c316da5974d3f7f6beea3f414729ebb6d5 (patch) | |
tree | 4f415ba77ed6aed51a3f23599e823f7fa3793e36 /test | |
parent | a9df6fbb83f94f629913da48d8ea95342689f9c4 (diff) | |
download | connman-27b121c316da5974d3f7f6beea3f414729ebb6d5.tar.gz connman-27b121c316da5974d3f7f6beea3f414729ebb6d5.tar.bz2 connman-27b121c316da5974d3f7f6beea3f414729ebb6d5.zip |
Update test scripts to support provider connections
Diffstat (limited to 'test')
-rwxr-xr-x | test/monitor-services | 2 | ||||
-rwxr-xr-x | test/test-manager | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/test/monitor-services b/test/monitor-services index 1d2b44e8..a334d99c 100755 --- a/test/monitor-services +++ b/test/monitor-services @@ -10,7 +10,7 @@ def property_changed(name, value, path, interface): ipath = path[path.rfind("/") + 1:] if iface not in ["Service"]: return - if name in ["Profiles", "Services", + if name in ["Profiles", "Services", "Providers", "Devices", "Networks", "Connections"]: val = "[" for i in value: diff --git a/test/test-manager b/test/test-manager index 38df8da6..a41d6570 100755 --- a/test/test-manager +++ b/test/test-manager @@ -16,6 +16,8 @@ def print_properties(key, value): interface = "org.moblin.connman.Device" elif key == "Services": interface = "org.moblin.connman.Service" + elif key == "Providers": + interface = "org.moblin.connman.Provider" else: return @@ -28,7 +30,7 @@ def print_properties(key, value): properties = obj.GetProperties() for key in properties.keys(): - if key in ["Networks", "Services"]: + if key in ["Networks", "Services", "Providers"]: continue if key in ["Powered", "Scanning", "Connected", @@ -56,9 +58,16 @@ def print_properties(key, value): val = str(path) list = list + val[val.rfind("/") + 1:] + " " print " Services = [ %s]" % (list) + if "Providers" in properties.keys(): + list = "" + for path in properties["Providers"]: + val = str(path) + list = list + val[val.rfind("/") + 1:] + " " + print " Providers = [ %s]" % (list) + for key in properties.keys(): - if key in ["Profiles", "Devices", "Services"]: + if key in ["Profiles", "Devices", "Services", "Providers"]: print_properties(key, properties[key]) elif key in ["AvailableTechnologies", "EnabledTechnologies", "ConnectedTechnologies", |