Skip to content

Commit 553ef6e

Browse files
author
Federico Fissore
committed
More tests on maxosx system profiler output
1 parent fa04bd7 commit 553ef6e

File tree

3 files changed

+211
-0
lines changed

3 files changed

+211
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,15 @@ public void shouldCorrectlyParse() throws Exception {
1818

1919
assertEquals("0X2341_0X8036", new SystemProfilerParser().extractVIDAndPID(output, "/dev/cu.usbmodemfd131"));
2020
assertEquals("0X2341_0X8036", new SystemProfilerParser().extractVIDAndPID(output, "/dev/tty.usbmodemfd131"));
21+
22+
output = TestHelper.inputStreamToString(SystemProfilerParserTest.class.getResourceAsStream("system_profiler_output3.txt"));
23+
24+
assertEquals("0X2341_0X8041", new SystemProfilerParser().extractVIDAndPID(output, "/dev/cu.usbmodemfd121"));
25+
assertEquals("0X2341_0X8041", new SystemProfilerParser().extractVIDAndPID(output, "/dev/tty.usbmodemfd121"));
26+
27+
output = TestHelper.inputStreamToString(SystemProfilerParserTest.class.getResourceAsStream("system_profiler_output4.txt"));
28+
29+
assertEquals("0X2341_0X0041", new SystemProfilerParser().extractVIDAndPID(output, "/dev/cu.usbmodem04101"));
30+
assertEquals("0X2341_0X0041", new SystemProfilerParser().extractVIDAndPID(output, "/dev/tty.usbmodem04101"));
2131
}
2232
}
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
USB:
2+
3+
USB High-Speed Bus:
4+
5+
Host Controller Location: Built-in USB
6+
Host Controller Driver: AppleUSBEHCI
7+
PCI Device ID: 0x1c2d
8+
PCI Revision ID: 0x0005
9+
PCI Vendor ID: 0x8086
10+
Bus Number: 0xfa
11+
12+
FaceTime HD Camera (Built-in):
13+
14+
Product ID: 0x8509
15+
Vendor ID: 0x05ac (Apple Inc.)
16+
Version: 5,16
17+
Serial Number: CC2B8Q0794DG6LL0
18+
Speed: Up to 480 Mb/sec
19+
Manufacturer: Apple Inc.
20+
Location ID: 0xfa200000 / 3
21+
Current Available (mA): 500
22+
Current Required (mA): 500
23+
24+
Hub:
25+
26+
Product ID: 0x2513
27+
Vendor ID: 0x0424 (SMSC)
28+
Version: b.b3
29+
Speed: Up to 480 Mb/sec
30+
Location ID: 0xfa100000 / 2
31+
Current Available (mA): 500
32+
Current Required (mA): 2
33+
34+
BRCM2070 Hub:
35+
36+
Product ID: 0x4500
37+
Vendor ID: 0x0a5c (Broadcom Corp.)
38+
Version: 1,00
39+
Speed: Up to 12 Mb/sec
40+
Manufacturer: Apple Inc.
41+
Location ID: 0xfa110000 / 5
42+
Current Available (mA): 500
43+
Current Required (mA): 94
44+
45+
Bluetooth USB Host Controller:
46+
47+
Product ID: 0x821a
48+
Vendor ID: 0x05ac (Apple Inc.)
49+
Version: 0,37
50+
Speed: Up to 12 Mb/sec
51+
Manufacturer: Apple Inc.
52+
Location ID: 0xfa113000 / 7
53+
Current Available (mA): 500
54+
Current Required (mA): 0
55+
56+
Apple Internal Keyboard / Trackpad:
57+
58+
Product ID: 0x0253
59+
Vendor ID: 0x05ac (Apple Inc.)
60+
Version: 1,18
61+
Speed: Up to 12 Mb/sec
62+
Manufacturer: Apple Inc.
63+
Location ID: 0xfa120000 / 4
64+
Current Available (mA): 500
65+
Current Required (mA): 40
66+
67+
USB High-Speed Bus:
68+
69+
Host Controller Location: Built-in USB
70+
Host Controller Driver: AppleUSBEHCI
71+
PCI Device ID: 0x1c26
72+
PCI Revision ID: 0x0005
73+
PCI Vendor ID: 0x8086
74+
Bus Number: 0xfd
75+
76+
Hub:
77+
78+
Product ID: 0x2513
79+
Vendor ID: 0x0424 (SMSC)
80+
Version: b.b3
81+
Speed: Up to 480 Mb/sec
82+
Location ID: 0xfd100000 / 2
83+
Current Available (mA): 500
84+
Current Required (mA): 2
85+
86+
Arduino Yun:
87+
88+
Product ID: 0x8041
89+
Vendor ID: 0x2341
90+
Version: 1,00
91+
Speed: Up to 12 Mb/sec
92+
Manufacturer: Arduino LLC
93+
Location ID: 0xfd120000 / 4
94+
Current Available (mA): 500
95+
Current Required (mA): 500
96+
97+
IR Receiver:
98+
99+
Product ID: 0x8242
100+
Vendor ID: 0x05ac (Apple Inc.)
101+
Version: 0,16
102+
Speed: Up to 1.5 Mb/sec
103+
Manufacturer: Apple Computer, Inc.
104+
Location ID: 0xfd110000 / 3
105+
Current Available (mA): 500
106+
Current Required (mA): 100
107+
Lines changed: 94 additions & 0 deletions
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: 0x0aa9
8+
PCI Revision ID: 0x00b1
9+
PCI Vendor ID: 0x10de
10+
Bus Number: 0x26
11+
12+
USB Hi-Speed Bus:
13+
14+
Host Controller Location: Built-in USB
15+
Host Controller Driver: AppleUSBEHCI
16+
PCI Device ID: 0x0aa6
17+
PCI Revision ID: 0x00b1
18+
PCI Vendor ID: 0x10de
19+
Bus Number: 0x24
20+
21+
Built-in iSight:
22+
23+
Product ID: 0x8507
24+
Vendor ID: 0x05ac (Apple Inc.)
25+
Version: 4,41
26+
Serial Number: 8JA34290MAKP3A00
27+
Speed: Up to 480 Mb/sec
28+
Manufacturer: Apple Inc.
29+
Location ID: 0x24400000 / 2
30+
Current Available (mA): 500
31+
Current Required (mA): 500
32+
33+
USB Bus:
34+
35+
Host Controller Location: Built-in USB
36+
Host Controller Driver: AppleUSBOHCI
37+
PCI Device ID: 0x0aa7
38+
PCI Revision ID: 0x00b1
39+
PCI Vendor ID: 0x10de
40+
Bus Number: 0x06
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: 0x06100000 / 2
50+
Current Available (mA): 500
51+
Current Required (mA): 94
52+
53+
Bluetooth USB Host Controller:
54+
55+
Product ID: 0x8218
56+
Vendor ID: 0x05ac (Apple Inc.)
57+
Version: 0,41
58+
Speed: Up to 12 Mb/sec
59+
Manufacturer: Apple Inc.
60+
Location ID: 0x06130000 / 3
61+
Current Available (mA): 500
62+
Current Required (mA): 0
63+
64+
USB Bus:
65+
66+
Host Controller Location: Built-in USB
67+
Host Controller Driver: AppleUSBOHCI
68+
PCI Device ID: 0x0aa5
69+
PCI Revision ID: 0x00b1
70+
PCI Vendor ID: 0x10de
71+
Bus Number: 0x04
72+
73+
Arduino Yun :
74+
75+
Product ID: 0x0041
76+
Vendor ID: 0x2341
77+
Version: 0,01
78+
Speed: Up to 12 Mb/sec
79+
Manufacturer: Arduino LLC
80+
Location ID: 0x04100000 / 3
81+
Current Available (mA): 500
82+
Current Required (mA): 100
83+
84+
Apple Internal Keyboard / Trackpad:
85+
86+
Product ID: 0x0237
87+
Vendor ID: 0x05ac (Apple Inc.)
88+
Version: 0,81
89+
Speed: Up to 12 Mb/sec
90+
Manufacturer: Apple Inc.
91+
Location ID: 0x04600000 / 2
92+
Current Available (mA): 500
93+
Current Required (mA): 40
94+

0 commit comments

Comments
 (0)