MCPcopy Create free account
hub / github.com/F-Stack/f-stack / __init__

Method __init__

dpdk/dts/framework/test_suite.py:68–96  ·  view source on GitHub ↗
(
        self,
        sut_node: SutNode,
        tg_node: TGNode,
        test_cases: list[str],
        func: bool,
        build_target_result: BuildTargetResult,
    )

Source from the content-addressed store, hash-verified

66 _tg_ip_address_egress: Union[IPv4Interface, IPv6Interface]
67
68 def __init__(
69 self,
70 sut_node: SutNode,
71 tg_node: TGNode,
72 test_cases: list[str],
73 func: bool,
74 build_target_result: BuildTargetResult,
75 ):
76 self.sut_node = sut_node
77 self.tg_node = tg_node
78 self._logger = getLogger(self.__class__.__name__)
79 self._test_cases_to_run = test_cases
80 self._test_cases_to_run.extend(SETTINGS.test_cases)
81 self._func = func
82 self._result = build_target_result.add_test_suite(self.__class__.__name__)
83 self._port_links = []
84 self._process_links()
85 self._sut_port_ingress, self._tg_port_egress = (
86 self._port_links[0].sut_port,
87 self._port_links[0].tg_port,
88 )
89 self._sut_port_egress, self._tg_port_ingress = (
90 self._port_links[1].sut_port,
91 self._port_links[1].tg_port,
92 )
93 self._sut_ip_address_ingress = ip_interface("192.168.100.2/24")
94 self._sut_ip_address_egress = ip_interface("192.168.101.2/24")
95 self._tg_ip_address_egress = ip_interface("192.168.100.3/24")
96 self._tg_ip_address_ingress = ip_interface("192.168.101.3/24")
97
98 def _process_links(self) -> None:
99 for sut_port in self.sut_node.ports:

Callers

nothing calls this directly

Calls 3

_process_linksMethod · 0.95
getLoggerFunction · 0.85
add_test_suiteMethod · 0.80

Tested by

no test coverage detected