From d6aace74c65a056225346d78d1b3da82aff5cb15 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 26 Nov 2012 16:36:42 +0200 Subject: [PATCH] build: Remove test-input test-audio is no longer needed since the Input interface is now removed and similar functionality is already provided by test-device. --- Makefile.tools | 2 +- test/test-input | 47 ----------------------------------------------- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100755 test/test-input diff --git a/Makefile.tools b/Makefile.tools index 23754a69c..fdc0dec9b 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -204,7 +204,7 @@ EXTRA_DIST += test/sap_client.py test/hsplay test/hsmicro \ test/test-discovery test/test-manager test/test-adapter \ test/test-device test/test-service test/test-network \ test/simple-agent test/simple-service test/simple-endpoint \ - test/test-input test/test-sap-server \ + test/test-sap-server \ test/test-oob test/test-attrib test/test-proximity \ test/test-thermometer test/test-profile test/test-health \ test/test-health-sink test/service-record.dtd \ diff --git a/test/test-input b/test/test-input deleted file mode 100755 index 110cbefaf..000000000 --- a/test/test-input +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/python - -from __future__ import absolute_import, print_function, unicode_literals - -import sys -import dbus -from optparse import OptionParser, make_option - -bus = dbus.SystemBus() - -manager = dbus.Interface(bus.get_object("org.bluez", "/"), "org.bluez.Manager") - -option_list = [ - make_option("-i", "--device", action="store", - type="string", dest="dev_id"), - ] -parser = OptionParser(option_list=option_list) - -(options, args) = parser.parse_args() - -if options.dev_id: - adapter_path = manager.FindAdapter(options.dev_id) -else: - adapter_path = manager.DefaultAdapter() - -adapter = dbus.Interface(bus.get_object("org.bluez", adapter_path), - "org.bluez.Adapter") - -if len(args) < 2: - print("""Usage: %s - - connect - disconnect - """ % sys.argv[0]) - sys.exit(1) - -device = adapter.FindDevice(args[1]) -input = dbus.Interface(bus.get_object("org.bluez", device), - "org.bluez.Input") - -if args[0] == "connect": - input.Connect() -elif args[0] == "disconnect": - input.Disconnect() -else: - print("Unknown command") - sys.exit(1) -- 2.47.3