Commit Graph

10 Commits

Author SHA1 Message Date
Emil Velikov
d31f04aa92 test: consistently use /usr/bin/env python3 shebang
Currently we have a mix of /usr/bin/python, /usr/bin/python3 and
/usr/bin/env python3. Use the latter since is the more common way of
handling this, plus it allows people to override the system python (for
what ever reason).

Inspired by a Debian patch, doing a mass /usr/bin/python{,3} conversion.

Cc: Nobuhiro Iwamatsu <iwamatsu@debian.org>
2024-02-12 17:35:33 -05:00
Tedd Ho-Jeong An
7fe27bbf7d test: Add SPDX License Identifier
This patch adds SPDX License Identifier and removes the license text.

-------------------------------------
       License            COUNT
-------------------------------------
 LGPL-2.1-or-later    :     35

License: LGPL-2.1-or-later
   test/agent.py
   test/bluezutils.py
   test/dbusdef.py
   test/example-advertisement
   test/example-endpoint
   test/example-gatt-client
   test/example-gatt-server
   test/example-player
   test/exchange-business-cards
   test/ftp-client
   test/get-managed-objects
   test/get-obex-capabilities
   test/list-devices
   test/list-folders
   test/map-client
   test/monitor-bluetooth
   test/opp-client
   test/pbap-client
   test/sap_client.py
   test/simple-endpoint
   test/simple-obex-agent
   test/simple-player
   test/test-adapter
   test/test-device
   test/test-discovery
   test/test-gatt-profile
   test/test-health
   test/test-health-sink
   test/test-hfp
   test/test-manager
   test/test-mesh
   test/test-nap
   test/test-network
   test/test-profile
   test/test-sap-server
2020-09-21 16:20:26 -07:00
Petri Gynther
7adf8d09b4 test: Python import cleanup
Some test scripts use "from gi.repository import GObject" whereas others
use "import gobject". gi.repository is not always available on embedded
systems, so convert all instances to this format:

try:
  from gi.repository import GObject
except ImportError:
  import gobject as GObject

Also, sort the imports in this order: system, dbus, gobject, bluezutils
2014-01-18 00:38:39 -08:00
Johan Hedberg
c78791b8fe test: Make it possible to call test-network with a "connect" parameter 2012-12-21 10:31:01 +02:00
Johan Hedberg
c85791d312 test: Fix test-network logging after a successful connection 2012-12-21 10:11:24 +02:00
Johan Hedberg
dab3eafc0e Revert "build: Remove test-network"
This reverts commit 9efcb970ce.

Conflicts:
	Makefile.tools
2012-12-21 09:49:12 +02:00
Luiz Augusto von Dentz
9efcb970ce build: Remove test-network
test-network is no longer needed since Network interface does not have
Connect/Disconnect methods anymore and similar functionality is already
provided by test-device.
2012-11-26 17:41:35 +02:00
Steve Langasek
ee56337e41 Update tests to be compatible with gi and python3
This patch makes the python tests source-compatible with python 3, while
leaving the interpreter at python 2 for now.

The tradeoff is that this source is no longer compatible with python
versions < 2.6, and requires gobject-introspection for the glib-based
tests.
2012-06-15 12:32:50 +03:00
Johan Hedberg
a90f0dfe8c Add support for multiple adapters to the test scripts
This patch adds support for specifying which adapter to use through
"-i hciX" (just like hcitool, etc).
2010-06-13 14:24:41 +03:00
Luiz Augusto von Dentz
618258d5f4 Add test-network. 2008-09-09 18:02:27 -03:00