Searched refs:CTRexScenario (Results 1 - 22 of 22) sorted by relevance

/trex/scripts/automation/regression/stateless_tests/
H A Dstl_general_test.py3 from trex import CTRexScenario namespace
13 self.stl_trex = CTRexScenario.stl_trex if CTRexScenario.stl_trex else 'mock'
16 if CTRexScenario.stl_init_error:
17 self.skip(CTRexScenario.stl_init_error)
40 CTRexScenario.stl_trex.remove_all_captures()
41 CTRexScenario.stl_ports_map = stl_map_ports(self.stl_trex)
42 if self.verify_bidirectional(CTRexScenario.stl_ports_map):
63 return CTRexScenario.stl_trex.get_port_count()
67 return CTRexScenario
[all...]
H A Dtrex_client_pkg_test.py2 from .stl_general_test import CStlGeneral_Test, CTRexScenario namespace
13 if CTRexScenario.stl_trex.is_connected():
14 CTRexScenario.stl_trex.disconnect()
19 if not CTRexScenario.stl_trex.is_connected():
20 CTRexScenario.stl_trex.connect()
25 'cd %s' % CTRexScenario.scripts_path,
H A Dstl_examples_test.py2 from .stl_general_test import CStlGeneral_Test, CTRexScenario namespace
13 CTRexScenario.stl_trex.disconnect()
28 return_code, stdout, stderr = run_command("sh -c 'cd %s; %s %s -s %s'" % (examples_dir, sys.executable, example, CTRexScenario.configuration.trex['trex_name']))
H A Dstl_benchmark_test.py2 from .stl_general_test import CStlGeneral_Test, CTRexScenario namespace
13 critical_test = CTRexScenario.setup_name in ('kiwi02', 'trex08', 'trex09') # temporary patch, this test needs to be fixed
35 profile = STLProfile.load(os.path.join(CTRexScenario.scripts_path, profile_bench['name']), **kwargs)
H A Dstl_client_test.py2 from .stl_general_test import CStlGeneral_Test, CTRexScenario namespace
12 profiles_path = os.path.join(CTRexScenario.scripts_path, 'stl/')
24 if self.is_virt_nics or CTRexScenario.setup_name == 'trex21':
32 if self.is_loopback and not (self.is_virt_nics or CTRexScenario.setup_name == 'trex21'):
37 assert 'bi' in CTRexScenario.stl_ports_map
39 self.c = CTRexScenario.stl_trex
41 self.tx_port, self.rx_port = CTRexScenario.stl_ports_map['bi'][0]
52 if CTRexScenario.stl_init_error:
56 CTRexScenario.stl_trex.connect()
251 print('\nProfile: %s' % profile[len(CTRexScenario
[all...]
H A Dstl_capture_test.py2 from .stl_general_test import CStlGeneral_Test, CTRexScenario namespace
26 assert 'bi' in CTRexScenario.stl_ports_map
28 self.c = CTRexScenario.stl_trex
30 self.tx_port, self.rx_port = CTRexScenario.stl_ports_map['bi'][0]
40 self.nic_adds_vlan = CTRexScenario.setup_name in ['trex11']
45 if CTRexScenario.stl_init_error:
49 CTRexScenario.stl_trex.connect()
H A Dstl_rx_test.py2 from .stl_general_test import CStlGeneral_Test, CTRexScenario namespace
106 assert 'bi' in CTRexScenario.stl_ports_map
108 self.c = CTRexScenario.stl_trex
110 self.tx_port, self.rx_port = CTRexScenario.stl_ports_map['bi'][0]
173 if CTRexScenario.setup_name == 'trex25':
206 if CTRexScenario.stl_init_error:
210 CTRexScenario.stl_trex.connect()
512 all_ports=list(CTRexScenario.stl_ports_map['map'].keys());
570 all_ports = list(CTRexScenario.stl_ports_map['map'].keys());
649 s_port = CTRexScenario
[all...]
H A Dstl_performance_test.py2 from .stl_general_test import CStlGeneral_Test, CTRexScenario namespace
115 self.c = CTRexScenario.stl_trex
377 machine_name = CTRexScenario.setup_name,
/trex/scripts/automation/regression/stateful_tests/
H A Dtrex_general_test.py29 from trex import CTRexScenario namespace
55 if CTRexScenario.is_test_list:
58 self.configuration = CTRexScenario.configuration
59 self.benchmark = CTRexScenario.benchmark
60 self.trex = CTRexScenario.trex
61 self.stl_trex = CTRexScenario.stl_trex
62 self.trex_crashed = CTRexScenario.trex_crashed
63 self.modes = CTRexScenario.modes
64 self.GAManager = CTRexScenario.GAManager
65 self.elk = CTRexScenario
[all...]
H A Dtrex_client_pkg_test.py2 from .trex_general_test import CTRexGeneral_Test, CTRexScenario namespace
13 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
20 'cd %s' % CTRexScenario.scripts_path,
H A Dtrex_client_cfg_test.py2 from .trex_general_test import CTRexGeneral_Test, CTRexScenario namespace
18 if CTRexScenario.setup_name == 'kiwi02':
26 if not CTRexScenario.router_cfg['no_dut_config']:
54 if not CTRexScenario.router_cfg['no_dut_config']:
H A Dtrex_ipv6_test.py2 from .trex_general_test import CTRexGeneral_Test, CTRexScenario namespace
22 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
60 if not CTRexScenario.router_cfg['no_dut_config']:
H A Dtrex_imix_test.py2 from .trex_general_test import CTRexGeneral_Test, CTRexScenario namespace
24 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
53 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
85 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
116 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
163 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
196 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
231 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
263 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
H A Dtrex_nbar_test.py2 from .trex_general_test import CTRexGeneral_Test, CTRexScenario namespace
60 if not CTRexScenario.router_cfg['no_dut_config']:
93 if not CTRexScenario.router_cfg['no_dut_config']:
H A Dtrex_vlan_test.py2 from .trex_general_test import CTRexGeneral_Test, CTRexScenario namespace
20 if not CTRexScenario.router_cfg['no_dut_config']:
H A Dtrex_rx_test.py2 from .trex_general_test import CTRexGeneral_Test, CTRexScenario namespace
90 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
124 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
158 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
193 if not self.is_loopback and not CTRexScenario.router_cfg['no_dut_config']:
229 if not CTRexScenario.router_cfg['no_dut_config']:
H A Dtrex_nat_test.py2 from .trex_general_test import CTRexGeneral_Test, CTRexScenario namespace
24 if not CTRexScenario.router_cfg['no_dut_config']:
106 if not CTRexScenario.router_cfg['no_dut_config']:
/trex/scripts/automation/regression/functional_tests/
H A Dcpp_gtests_test.py4 from trex import CTRexScenario namespace
36 bp_sim = os.path.join(CTRexScenario.scripts_path, 'bp-sim-64')
37 ret, out = run_command('%s --ut' % bp_sim, cwd = CTRexScenario.scripts_path)
44 ret, out = run_command(os.path.join(CTRexScenario.scripts_path, 'run-gtest-clean'), cwd = CTRexScenario.scripts_path)
52 ret, out = run_command(os.path.join(CTRexScenario.scripts_path, cmd), cwd = CTRexScenario.scripts_path)
57 compare_caps(output = os.path.join(CTRexScenario.scripts_path, 'generated/bp_sim_dns_vlans_gen.pcap'),
H A Dtrex_cfg_creator_test.py6 from trex import CTRexScenario namespace
7 sys.path.append(CTRexScenario.scripts_path)
9 sys.path.remove(CTRexScenario.scripts_path)
697 if CTRexScenario.scripts_path in sys.path:
698 sys.path.remove(CTRexScenario.scripts_path)
H A Dstl_basic_tests.py9 from trex import CTRexScenario namespace
97 self.scripts_path = CTRexScenario.scripts_path
/trex/scripts/automation/regression/
H A Dtrex_unit_test.py41 from trex import CTRexScenario namespace
73 return result and (not CTRexScenario.test or list(filter(lambda t: t in getattr(method, '__name__', ''), CTRexScenario.test.split(','))))
79 return result and (not CTRexScenario.test or list(filter(lambda t: t in getattr(function, '__name__', ''), CTRexScenario.test.split(','))))
211 elk = CTRexScenario.elk
234 elk = CTRexScenario.elk
258 elk = CTRexScenario.elk
360 CTRexScenario.test = options.test
367 if CTRexScenario
[all...]
H A Dtrex.py17 class CTRexScenario: class in inherits:
52 assert(CTRexScenario.elk_info)
53 d = copy.deepcopy(CTRexScenario.elk_info);
63 CTRexScenario.global_cfg = yaml.safe_load(f.read())

Completed in 15 milliseconds