From bdf0af3b2ec5ba67c2152688417a17b12cc7b2af Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 26 Nov 2012 16:32:43 +0200 Subject: [PATCH] build: Remove test-audio test-audio is no longer needed since the Audio interface is now removed and similar functionality is already provided by test-device. --- Makefile.tools | 2 +- test/test-audio | 53 ------------------------------------------------- 2 files changed, 1 insertion(+), 54 deletions(-) delete mode 100755 test/test-audio diff --git a/Makefile.tools b/Makefile.tools index 74fee7264..23754a69c 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-audio test/test-input test/test-sap-server \ + test/test-input 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-audio b/test/test-audio deleted file mode 100755 index e3022640f..000000000 --- a/test/test-audio +++ /dev/null @@ -1,53 +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"), - make_option("-f", "--interface", action="store", - type="string", dest="dev_if"), - ] -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() - -if options.dev_if: - interface = "org.bluez." + options.dev_if -else: - interface = "org.bluez.Audio" - -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]) -audio = dbus.Interface(bus.get_object("org.bluez", device), interface) - -if args[0] == "connect": - audio.Connect() -elif args[0] == "disconnect": - audio.Disconnect() -else: - print("Unknown command") - sys.exit(1) -- 2.47.3