1- From 08eb08f64150fd93b178069d1109116cf90720de Mon Sep 17 00:00:00 2001
1+ From caf3690c0258119900c91d9595ad7c71896a580c Mon Sep 17 00:00:00 2001
22From: Maximilian Luz <
[email protected] >
33Date: Sat, 1 Jun 2019 21:17:15 +0200
44Subject: [PATCH 02/11] Add support for Intel Management Engine bus
@@ -7,26 +7,13 @@ Add support for devices connected via the Intel Management Engine (MEI).
77This is required to support IPTS based devices, such as (among others)
88the Microsoft Surface Books, Surface Pro 5 and 6, and Surface Laptops.
99---
10- data/test_data_files.py | 2 +-
1110 libwacom/libwacom-database.c | 4 ++++
1211 libwacom/libwacom.c | 5 +++++
1312 libwacom/libwacom.h | 1 +
1413 test/test-tablet-validity.c | 1 +
14+ test/test_data_files.py | 2 +-
1515 5 files changed, 12 insertions(+), 1 deletion(-)
1616
17- diff --git a/data/test_data_files.py b/data/test_data_files.py
18- index 26d274f..bc92658 100755
19- --- a/data/test_data_files.py
20- +++ b/data/test_data_files.py
21- @@ -34,7 +34,7 @@ def test_device_match(tabletfile):
22- continue
23-
24- bus, vid, pid = match.split(':')[:3] # skip the name part of the match
25- - assert bus in ['usb', 'bluetooth', 'i2c', 'serial', 'virt'], f'{tabletfile}: unknown bus type'
26- + assert bus in ['usb', 'bluetooth', 'i2c', 'serial', 'virt', 'mei'], f'{tabletfile}: unknown bus type'
27- assert re.match('[0-9a-f]{4}', vid), f'{tabletfile}: {vid} must be lowercase hex'
28- assert re.match('[0-9a-f]{4}', pid), f'{tabletfile}: {pid} must be lowercase hex'
29-
3017diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c
3118index 3c7d0de..28c0ac5 100644
3219--- a/libwacom/libwacom-database.c
@@ -96,6 +83,19 @@ index da5fe07..6b45597 100644
9683 g_assert_cmpint(vid, >, 0);
9784 g_assert_cmpint(pid, >, 0);
9885 break;
86+ diff --git a/test/test_data_files.py b/test/test_data_files.py
87+ index 734463f..c9c6312 100755
88+ --- a/test/test_data_files.py
89+ +++ b/test/test_data_files.py
90+ @@ -41,7 +41,7 @@ def test_device_match(tabletfile):
91+ continue
92+
93+ bus, vid, pid = match.split(':')[:3] # skip the name part of the match
94+ - assert bus in ['usb', 'bluetooth', 'i2c', 'serial', 'virt'], f'{tabletfile}: unknown bus type'
95+ + assert bus in ['usb', 'bluetooth', 'i2c', 'serial', 'virt', 'mei'], f'{tabletfile}: unknown bus type'
96+ assert re.match('[0-9a-f]{4}', vid), f'{tabletfile}: {vid} must be lowercase hex'
97+ assert re.match('[0-9a-f]{4}', pid), f'{tabletfile}: {pid} must be lowercase hex'
98+
9999- -
100- 2.31.1
100+ 2.32.0
101101
0 commit comments