Skip to content

Commit e548f31

Browse files
author
Federico Fissore
committed
Added another macos system profiler test
1 parent 5fc1d77 commit e548f31

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

app/test/processing/app/macosx/SystemProfilerParserTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,10 @@ public void shouldCorrectlyParse() throws Exception {
2828

2929
assertEquals("0X2341_0X0041", new SystemProfilerParser().extractVIDAndPID(output, "/dev/cu.usbmodem04101"));
3030
assertEquals("0X2341_0X0041", new SystemProfilerParser().extractVIDAndPID(output, "/dev/tty.usbmodem04101"));
31+
32+
output = TestHelper.inputStreamToString(SystemProfilerParserTest.class.getResourceAsStream("system_profiler_output5.txt"));
33+
34+
assertEquals("0X2341_0X8041", new SystemProfilerParser().extractVIDAndPID(output, "/dev/cu.usbmodem06201"));
35+
assertEquals("0X2341_0X8041", new SystemProfilerParser().extractVIDAndPID(output, "/dev/tty.usbmodem06201"));
3136
}
3237
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
USB:
2+
3+
USB Hi-Speed Bus:
4+
5+
Host Controller Location: Built-in USB
6+
Host Controller Driver: AppleUSBEHCI
7+
PCI Device ID: 0x0d9d
8+
PCI Revision ID: 0x00a2
9+
PCI Vendor ID: 0x10de
10+
Bus Number: 0x24
11+
12+
FaceTime Camera (Built-in):
13+
14+
Product ID: 0x850a
15+
Vendor ID: 0x05ac (Apple Inc.)
16+
Version: 6.26
17+
Serial Number: CCGB1KY362DF9KL0
18+
Speed: Up to 480 Mb/sec
19+
Manufacturer: Apple Inc.
20+
Location ID: 0x24600000 / 2
21+
Current Available (mA): 500
22+
Current Required (mA): 500
23+
24+
USB Hi-Speed Bus:
25+
26+
Host Controller Location: Built-in USB
27+
Host Controller Driver: AppleUSBEHCI
28+
PCI Device ID: 0x0d9d
29+
PCI Revision ID: 0x00a2
30+
PCI Vendor ID: 0x10de
31+
Bus Number: 0x26
32+
33+
USB Bus:
34+
35+
Host Controller Location: Built-in USB
36+
Host Controller Driver: AppleUSBOHCI
37+
PCI Device ID: 0x0d9c
38+
PCI Revision ID: 0x00a1
39+
PCI Vendor ID: 0x10de
40+
Bus Number: 0x04
41+
42+
BRCM2070 Hub:
43+
44+
Product ID: 0x4500
45+
Vendor ID: 0x0a5c (Broadcom Corp.)
46+
Version: 1.00
47+
Speed: Up to 12 Mb/sec
48+
Manufacturer: Apple Inc.
49+
Location ID: 0x04500000 / 3
50+
Current Available (mA): 500
51+
Current Required (mA): 94
52+
53+
Bluetooth USB Host Controller:
54+
55+
Product ID: 0x821b
56+
Vendor ID: 0x05ac (Apple Inc.)
57+
Version: 0.41
58+
Speed: Up to 12 Mb/sec
59+
Manufacturer: Apple Inc.
60+
Location ID: 0x04530000 / 6
61+
Current Available (mA): 500
62+
Current Required (mA): 0
63+
64+
Apple Internal Keyboard / Trackpad:
65+
66+
Product ID: 0x0242
67+
Vendor ID: 0x05ac (Apple Inc.)
68+
Version: 1.07
69+
Speed: Up to 12 Mb/sec
70+
Manufacturer: Apple Inc.
71+
Location ID: 0x04300000 / 2
72+
Current Available (mA): 500
73+
Current Required (mA): 40
74+
75+
USB Bus:
76+
77+
Host Controller Location: Built-in USB
78+
Host Controller Driver: AppleUSBOHCI
79+
PCI Device ID: 0x0d9c
80+
PCI Revision ID: 0x00a1
81+
PCI Vendor ID: 0x10de
82+
Bus Number: 0x06
83+
84+
Arduino Yun:
85+
86+
Product ID: 0x8041
87+
Vendor ID: 0x2341
88+
Version: 1.00
89+
Speed: Up to 12 Mb/sec
90+
Manufacturer: Arduino LLC
91+
Location ID: 0x06200000 / 2
92+
Current Available (mA): 500
93+
Current Required (mA): 500
94+

0 commit comments

Comments
 (0)