Fill protocol packs from recovered USB CTS, Type-C FTS, DVI 1.0, and IEEE 802.3-2012 Section Two (2.74.0).
NUMERIC rows cite document title, revision, section/table, and page. USB Zdiff, Type-C Rp/Rd, 10BASE-T, and 1000BASE-T stay UNKNOWN. PDFs are not in git.
This commit is contained in:
@@ -84,15 +84,21 @@ def test_usb2_and_usb_c_unknown_with_usbif_needed_document_no_90ohm():
|
||||
or p.id.startswith("usb-")
|
||||
]
|
||||
assert usb_ifaces
|
||||
blob = json.dumps([c.model_dump() for p in usb_ifaces for c in p.constraints])
|
||||
assert "90" not in blob
|
||||
z_blob = json.dumps([
|
||||
c.model_dump() for p in usb_ifaces for c in p.constraints
|
||||
if c.parameter == "differential_impedance"
|
||||
])
|
||||
assert "90" not in z_blob
|
||||
for p in usb_ifaces:
|
||||
for c in p.constraints:
|
||||
assert c.value is None
|
||||
assert c.value_kind != "NUMERIC"
|
||||
if c.parameter == "differential_impedance":
|
||||
assert c.value is None
|
||||
assert c.value_kind != "NUMERIC"
|
||||
if c.value_kind in {"UNKNOWN", "MISSING_SOURCE"}:
|
||||
assert c.needed_document
|
||||
assert "USB-IF" in c.needed_document or "specification" in c.needed_document.lower()
|
||||
assert "USB-IF" in c.needed_document or "specification" in c.needed_document.lower() or "Specification" in c.needed_document
|
||||
if p.logical_protocol_id == "usb-c" and c.parameter in {"rp", "rd"}:
|
||||
assert c.value_kind == "UNKNOWN"
|
||||
over = next(p for p in cat.physical_interfaces if p.id == "usb-c-usb2-receptacle")
|
||||
assert over.logical_protocol_id == "usb2-hs"
|
||||
assert over.connector == "Type-C"
|
||||
@@ -202,8 +208,8 @@ def test_mini_hdmi_is_connector_not_protocol_id():
|
||||
def test_ethernet_hdmi_skeletons_unknown_needed_document():
|
||||
cat = load_catalog()
|
||||
for lid in (
|
||||
"10base-t", "100base-tx", "1000base-t", "2.5gbase-t", "5gbase-t",
|
||||
"10gbase-t", "sgmii", "1000base-x", "100base-fx", "10gbase-r",
|
||||
"10base-t", "1000base-t", "2.5gbase-t", "5gbase-t",
|
||||
"10gbase-t", "sgmii", "1000base-x", "10gbase-r",
|
||||
"hdmi-1.4", "hdmi-2.0", "hdmi-frl",
|
||||
):
|
||||
ifaces = [p for p in cat.physical_interfaces if p.logical_protocol_id == lid]
|
||||
@@ -218,7 +224,7 @@ def test_ethernet_hdmi_skeletons_unknown_needed_document():
|
||||
if lid.startswith("hdmi"):
|
||||
assert "HDMI" in c.needed_document
|
||||
else:
|
||||
assert "IEEE" in c.needed_document or "PHY" in (c.needed_document or "")
|
||||
assert "IEEE" in c.needed_document or "PHY" in (c.needed_document or "") or "SGMII" in (c.needed_document or "")
|
||||
tmds = next(p for p in cat.physical_interfaces if p.id == "hdmi-1.4-tmds-type-a")
|
||||
frl = next(p for p in cat.physical_interfaces if p.id == "hdmi-frl-pcb")
|
||||
assert tmds.logical_protocol_id != frl.logical_protocol_id
|
||||
|
||||
Reference in New Issue
Block a user