All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] unit/test-hog: Add TC/HGDC/HH/BV-08-I test
@ 2015-03-17 11:18 Mariusz Skamra
  2015-03-17 11:18 ` [PATCH 2/2] unit/test-hog: Add TC/HGRF/HH/BV-18-I test Mariusz Skamra
  0 siblings, 1 reply; 2+ messages in thread
From: Mariusz Skamra @ 2015-03-17 11:18 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Mariusz Skamra

Verify that all Protocol Mode characteristics can be discovered
by a HID Host IUT.
---
 unit/test-hog.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/unit/test-hog.c b/unit/test-hog.c
index 2a25d09..c6107ee 100644
--- a/unit/test-hog.c
+++ b/unit/test-hog.c
@@ -437,5 +437,22 @@ int main(int argc, char *argv[])
 		raw_pdu(0x0a, 0x0a, 0x00),
 		raw_pdu(0x0b, 0x19, 0x2a));
 
+	define_test("/TP/HGDC/HH/BV-08-I", test_hog,
+		raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
+		raw_pdu(0x11, 0x06, 0x01, 0x00, 0x04, 0x00, 0x12,
+			0x18, 0x05, 0x00, 0x08, 0x00, 0x12, 0x18),
+		raw_pdu(0x10, 0x09, 0x00, 0xff, 0xff, 0x00, 0x28),
+		raw_pdu(0x01, 0x10, 0x09, 0x00, 0x0a),
+		raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x03, 0x28),
+		raw_pdu(0x09, 0x07, 0x03, 0x00, 0x06, 0x04, 0x00,
+			0x4e, 0x2a),
+		raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x02, 0x28),
+		raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
+		raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x02, 0x28),
+		raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a),
+		raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x03, 0x28),
+		raw_pdu(0x09, 0x07, 0x07, 0x00, 0x06, 0x08, 0x00,
+			0x4e, 0x2a));
+
 	return tester_run();
 }
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] unit/test-hog: Add TC/HGRF/HH/BV-18-I test
  2015-03-17 11:18 [PATCH 1/2] unit/test-hog: Add TC/HGDC/HH/BV-08-I test Mariusz Skamra
@ 2015-03-17 11:18 ` Mariusz Skamra
  0 siblings, 0 replies; 2+ messages in thread
From: Mariusz Skamra @ 2015-03-17 11:18 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Mariusz Skamra

Verify that all Protocol Mode characteristics can be read by HID
Host IUT.
---
 unit/test-hog.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/unit/test-hog.c b/unit/test-hog.c
index c6107ee..9fb3896 100644
--- a/unit/test-hog.c
+++ b/unit/test-hog.c
@@ -454,5 +454,26 @@ int main(int argc, char *argv[])
 		raw_pdu(0x09, 0x07, 0x07, 0x00, 0x06, 0x08, 0x00,
 			0x4e, 0x2a));
 
+	define_test("/TP/HGRF/HH/BV-18-I", test_hog,
+		raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
+		raw_pdu(0x11, 0x06, 0x01, 0x00, 0x04, 0x00, 0x12,
+			0x18, 0x05, 0x00, 0x08, 0x00, 0x12, 0x18),
+		raw_pdu(0x10, 0x09, 0x00, 0xff, 0xff, 0x00, 0x28),
+		raw_pdu(0x01, 0x10, 0x09, 0x00, 0x0a),
+		raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x03, 0x28),
+		raw_pdu(0x09, 0x07, 0x03, 0x00, 0x06, 0x04, 0x00,
+			0x4e, 0x2a),
+		raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x02, 0x28),
+		raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
+		raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x02, 0x28),
+		raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a),
+		raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x03, 0x28),
+		raw_pdu(0x09, 0x07, 0x07, 0x00, 0x06, 0x08, 0x00,
+			0x4e, 0x2a),
+		raw_pdu(0x0a, 0x04, 0x00),
+		raw_pdu(0x0b, 0x01),
+		raw_pdu(0x0a, 0x08, 0x00),
+		raw_pdu(0x0b, 0x01));
+
 	return tester_run();
 }
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-17 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-17 11:18 [PATCH 1/2] unit/test-hog: Add TC/HGDC/HH/BV-08-I test Mariusz Skamra
2015-03-17 11:18 ` [PATCH 2/2] unit/test-hog: Add TC/HGRF/HH/BV-18-I test Mariusz Skamra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.