Return-Path: From: Mikel Astiz To: linux-bluetooth@vger.kernel.org Cc: Mikel Astiz Subject: [RFC BlueZ v1 01/13] test: Remove obsolete test script Date: Thu, 6 Jun 2013 10:21:33 +0200 Message-Id: <1370506905-19641-2-git-send-email-mikel.astiz.oss@gmail.com> In-Reply-To: <1370506905-19641-1-git-send-email-mikel.astiz.oss@gmail.com> References: <1370506905-19641-1-git-send-email-mikel.astiz.oss@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Mikel Astiz The interface was removed some time ago making the test script useless, so just remove it from the codebase. --- Makefile.tools | 2 +- test/simple-service | 128 ---------------------------------------------------- 2 files changed, 1 insertion(+), 129 deletions(-) delete mode 100755 test/simple-service diff --git a/Makefile.tools b/Makefile.tools index acd403e..b48b02f 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -240,7 +240,7 @@ test_scripts += test/sap_client.py test/bluezutils.py \ test/dbusdef.py test/monitor-bluetooth test/list-devices \ test/test-discovery test/test-manager test/test-adapter \ test/test-device test/simple-agent \ - test/simple-service test/simple-endpoint test/test-sap-server \ + test/simple-endpoint test/test-sap-server \ test/test-proximity test/test-network \ test/test-thermometer test/test-profile test/test-health \ test/test-health-sink test/service-record.dtd \ diff --git a/test/simple-service b/test/simple-service deleted file mode 100755 index 02d7648..0000000 --- a/test/simple-service +++ /dev/null @@ -1,128 +0,0 @@ -#!/usr/bin/python - -from __future__ import absolute_import, print_function, unicode_literals - -import sys -import time -import dbus -import bluezutils - -xml = ' \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -' - -bus = dbus.SystemBus() - -if len(sys.argv) > 1: - path = bluezutils.find_adapter(sys.argv[1]).object_path -else: - path = bluezutils.find_adapter().object_path - -service = dbus.Interface(bus.get_object("org.bluez", path), - "org.bluez.Service") - -handle = service.AddRecord(xml) - -print("Service record with handle 0x%04x added" % (handle)) - -print("Press CTRL-C to remove service record") - -try: - time.sleep(1000) - print("Terminating session") -except: - pass - -service.RemoveRecord(dbus.UInt32(handle)) -- 1.8.1.4