Commit Graph

200 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
ca09780607 unit/AVDTP: Add /TP/SIG/SMG/BV-09-C test
Verify that the IUT (INT) is able to issue a valid set configuration
command for remote SEP and reports the replied confirmation.
2013-11-25 16:50:39 +02:00
Luiz Augusto von Dentz
1a95d1ffc5 unit/AVDTP: Add /TP/SIG/SMG/BV-08-C test
Verify that the IUT (ACP) reports the reception of a valid query for
remote SEP capabilities and replies the returned capabilities.
2013-11-25 16:50:39 +02:00
Luiz Augusto von Dentz
498f18c908 unit/AVDTP: Add /TP/SIG/SMG/BV-07-C test
Verify that the IUT (INT) is able to issue a valid query for remote SEP
capabilities and reports the replied ones.
2013-11-25 16:50:39 +02:00
Luiz Augusto von Dentz
9b2143fa11 unit/AVDTP: Add /TP/SIG/SMG/BV-06-C test
Verify that the IUT (ACP) reports the reception of a valid stream
discover command and replies the returned list of SEPs and media types.
2013-11-25 16:50:39 +02:00
Luiz Augusto von Dentz
328074fc15 unit/AVDTP: Add /TP/SIG/SMG/BV-05-C test
Verify that the IUT (INT) is able to issue a valid stream discover command
and report the replied SEPs and media types.
2013-11-25 16:50:39 +02:00
Johan Hedberg
08da3d9f96 Revert "unit/sdp: Check that correct packet received in recv"
This reverts commit b9981c4fa1. Some tests
have intentionally incorrect PDU lengths, so trying to be strict in the
check is wrong.
2013-10-17 11:49:06 +03:00
Andrei Emeltchenko
b9981c4fa1 unit/sdp: Check that correct packet received in recv 2013-10-16 13:20:23 +03:00
Szymon Janc
b68ae057e3 unit: Remove not needed functions from test-sdp
SDP code no longer depends on adapter code.
2013-09-23 10:46:37 +03:00
Luiz Augusto von Dentz
194360a4de unit: Add gdbus/client_force_disconnect
This tests if watches created using g_dbus_proxy_set_removed_watch works
when the service disconnects from the bus.
2013-09-12 13:54:56 +03:00
Luiz Augusto von Dentz
90f13d3025 unit: Add gdbus/client_proxy_removed
This tests if watches created using g_dbus_proxy_set_removed_watch works
when the interface is removed.
2013-09-12 13:54:56 +03:00
Luiz Augusto von Dentz
5cd3828dba unit: Add gdbus/client_check_order 2013-09-09 17:35:30 +03:00
Marcel Holtmann
6d89e266f1 unit: Add test case for link layer CRC functions 2013-08-21 23:14:18 -07:00
Lucas De Marchi
0f2f27611c unit: Get rid of gchar
Use plain char instead of gchar.
2013-05-02 09:04:21 +03:00
Lucas De Marchi
4a20451782 unit: Get rid of gint
Use plain int instead of gint. In glib gint is always a typedef to int,
so it's safe to use it even for callbacks with glib.
2013-05-01 09:08:57 +03:00
Luiz Augusto von Dentz
1eb95195cf unit: Add gdbus/client_string_changed 2013-02-28 15:03:24 +02:00
Luiz Augusto von Dentz
2adcb4bca9 unit: Add gdbus/client_set_string_property 2013-02-28 15:03:22 +02:00
Anderson Lizardo
accf3e8144 unit: Add tests for sdp_get_server_ver() 2013-02-18 10:01:53 +02:00
Anderson Lizardo
78ca13b4f7 unit: Add tests for sdp_get_profile_descs() 2013-02-18 10:01:50 +02:00
Anderson Lizardo
429cee00a5 unit: Add tests for sdp_get_lang_attr() 2013-02-18 09:59:39 +02:00
Anderson Lizardo
a9544b8062 unit: Add initial SDP library unit tests
These tests will cover all public SDP library API not covered yet by the
tests in test-sdp.c (which focus on the SDP server).
2013-02-18 09:55:03 +02:00
Johan Hedberg
c2e5d1ff16 unit: Fix gobex GPL version reference
These files (like everything else in the tree) should be GPL 2 or later
instead of GPL 2 only.
2013-02-15 16:19:54 +02:00
Marcel Holtmann
fbd7494672 unit: Add extracted UUID string list to each test case 2013-01-27 06:04:18 +01:00
Marcel Holtmann
9553437865 unit: Compare UUID list from EIR data 2013-01-27 06:04:11 +01:00
Marcel Holtmann
d00eeba33b unit: Print UUID list from EIR parsing in verbose mode 2013-01-27 05:36:49 +01:00
Marcel Holtmann
1939c1f2d5 unit: Add inquiry data from Nokia Reaction BH-907 headset for testing 2013-01-27 05:20:57 +01:00
Marcel Holtmann
45e206e859 unit: Include tests for TX power from EIR and AD 2013-01-27 05:20:16 +01:00
Marcel Holtmann
bebc286724 unit: Add inquiry data from Gigaset SL400H and SL910 for teseting 2013-01-25 01:57:37 +01:00
Marcel Holtmann
7921f73379 unit: Add advertising data from Wahoo scale for testing 2013-01-23 15:24:23 -08:00
Luiz Augusto von Dentz
ce3b4e0817 unit: Add gdbus/client_get_uint64_property 2013-01-18 13:33:43 +02:00
Luiz Augusto von Dentz
3cbdf5607d unit: Add gdbus/client_get_array_property 2013-01-18 13:33:43 +02:00
Luiz Augusto von Dentz
84bf1800e3 unit: Add gdbus/client_get_boolean_property 2013-01-18 13:33:43 +02:00
Luiz Augusto von Dentz
ecb4a6c9d1 unit: Add gdbus/client_get_string_property 2013-01-18 13:33:43 +02:00
Luiz Augusto von Dentz
e0ef7d52a1 unit: Add gdbus/client_get_dict_property 2013-01-18 13:33:42 +02:00
Marcel Holtmann
89176f5763 unit: Add advertising data from MIO Alpha heartrate watch for testing 2013-01-16 10:50:17 -08:00
Anderson Lizardo
53da9df4da unit: Add tests for SDP integer Data Elements
SDP_DATA_NIL does not have a value, but its sdp_data_t val field is
zeroed by memset(), so just treat it as UINT8 with zero value to
simplify checking (and not require a separate macro.)

SDP_BOOL is handled by SDP library as a INT8.

SDP_UINT128/SDP_INT128 are just byte arrays converted to host order, so
use memcmp() to compare them (converting from host to network order
first.)
2013-01-16 14:35:07 +02:00
Anderson Lizardo
cc291810aa unit: Add {TEXT,URL}_STR{8,16} tests for sdp_extract_attr()
These tests are for valid data. Other tests might be added later to
check for error paths, but will require separate macros.

{TEXT,URL}_STR32 cannot be tested with the same macros because
sdp_extract_attr() does not support them. They will be tested
separately with other SDP library functions.

As example of failure output, if commit
504a0cf46a is reverted for testing, the
STR16 test will fail with:

ERROR:unit/test-sdp.c:776:test_sdp_de_attr: assertion failed
(test->input_size == size): (7 == 11)
2013-01-16 14:35:05 +02:00
Marcel Holtmann
58ac0d24a0 unit: Add advertising data from Citizen Proximity watch for testing 2013-01-12 19:00:10 -08:00
Marcel Holtmann
97a841008c unit: Providing empty info() implementation is no longer needed 2013-01-10 20:06:14 -08:00
Anderson Lizardo
7699549b26 unit: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
2013-01-10 15:12:32 +02:00
Anderson Lizardo
e90c260d7d unit: Avoid D-Bus calling _exit() during SDP tests
While running tests, the D-Bus library was set to call _exit() when the
client leaves the bus. This caused the second test to be interrupted
without providing a PASS/FAIL result. This was confirmed by running
test-sdp with DBUS_VERBOSE=1.

This commit disables this behavior, which does not exist on BlueZ
because g_dbus_set_disconnect_function() implicitly does this.
2013-01-10 14:29:07 +02:00
Anderson Lizardo
6600b2585b unit: Print D-Bus error message in verbose mode
If g_dbus_setup_private() fails (e.g. a session bus is not available,
and there is no X11 for dbus-launch to work), the tests are silently
skipped.

With this commit, the D-Bus error message is also printed if verbose
mode is enabled. The test is still skipped as before.
2013-01-09 17:22:46 -08:00
Marcel Holtmann
38c4c17d55 unit: Add advertising data from Cookoo watch for testing 2013-01-09 11:35:33 -08:00
Anderson Lizardo
47f40b5584 unit: Rename x_pdu() macro on SDP test program
Using the "raw_data" name makes sense, given the macro is just casting
input (raw) data. It will also be reused in other tests with raw input
data.

Also fix this minor checkpatch.pl error:

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in
parenthesis
+#define raw_data(args...) (const unsigned char[]) { args }
2013-01-09 11:09:37 -08:00
Anderson Lizardo
c71f05f6a1 unit: Reuse define_test() macro for /TP/SERVER/BRW/* tests
This is made possible by adding the mtu parameter, given
/TP/SERVER/BRW/* tests use MTU of 672.
2013-01-09 11:08:02 -08:00
Syam Sidhardhan
4c4872c0bd unit: Replace g_test_fail() with g_assert_not_reached()
g_test_fail() is introduced in Glib v2.30 and we are using Glib v2.28 as
the minimum requirement for the build. This patch resolves the
compilation error that happen with Glib v2.28.

Error log:
  CC     unit/test-mgmt.o
unit/test-mgmt.c: In function ‘check_actions’:
unit/test-mgmt.c💯2: error: implicit declaration of
    function ‘g_test_fail’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [unit/test-mgmt.o] Error 1
make: *** [all] Error 2
2013-01-09 11:13:59 +02:00
Johan Hedberg
8aa2d757f5 unit: Fix hardcoded test for complete name in EIR 2013-01-09 10:27:05 +02:00
Marcel Holtmann
989cd2fd81 unit: Add advertising data from Wahoo BlueSC for testing 2013-01-08 22:30:01 -08:00
Marcel Holtmann
040000d653 unit: Add inquiry data from Nike+ FuelBand for testing 2013-01-08 20:10:02 -08:00
Marcel Holtmann
85f5c707b4 unit: Add inquiry data from iPhone 5 and iPad mini for testing 2013-01-08 20:05:53 -08:00
Marcel Holtmann
b3e78d7eec unit: Add inquiry data from MacBook Air for testing 2013-01-08 19:45:28 -08:00