diff options
author | 2016-02-24 14:07:11 -0500 | |
---|---|---|
committer | 2016-02-24 14:07:11 -0500 | |
commit | 42afa885616f4def18f5f1f1ca303efdf742356f (patch) | |
tree | 187412cbca140ee5763172330e88b386705b3454 /scripts/automation/regression/unit_tests | |
parent | 547112ad112a2c3f8792a41e3f41b9d257a2fa7a (diff) |
hltapi : add dst_mac vm; vlan mask variable now can be shared; add 2 more profiles; add consistent_random argument for same random sequence each time
Diffstat (limited to 'scripts/automation/regression/unit_tests')
-rwxr-xr-x | scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py | 32 | ||||
-rw-r--r-- | scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py | 2 |
2 files changed, 18 insertions, 16 deletions
diff --git a/scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py b/scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py index 54daa12f..7b501d97 100755 --- a/scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py +++ b/scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py @@ -475,34 +475,34 @@ TBD self_start: true vm: instructions: - - init_value: 1 - max_value: 7 - min_value: 1 - name: vlan_id0 + - init_value: 0 + max_value: 6 + min_value: 0 + name: dec_2_3_2 op: inc size: 2 step: 2 type: flow_var - - add_value: 0 + - add_value: 1 is_big_endian: true mask: 4095 - name: vlan_id0 + name: dec_2_3_2 pkt_cast_size: 2 pkt_offset: 14 shift: 0 type: write_mask_flow_var - - init_value: 1000 - max_value: 1000 - min_value: 991 - name: vlan_id2 + - init_value: 9 + max_value: 9 + min_value: 0 + name: dec_2_9_1 op: dec size: 2 step: 1 type: flow_var - - add_value: 0 + - add_value: 991 is_big_endian: true mask: 4095 - name: vlan_id2 + name: dec_2_9_1 pkt_cast_size: 2 pkt_offset: 22 shift: 0 @@ -510,7 +510,7 @@ TBD - init_value: 0 max_value: 65535 min_value: 0 - name: vlan_id3 + name: vlan_id_random op: random size: 2 step: 1 @@ -518,12 +518,12 @@ TBD - add_value: 0 is_big_endian: true mask: 4095 - name: vlan_id3 + name: vlan_id_random pkt_cast_size: 2 pkt_offset: 26 shift: 0 type: write_mask_flow_var - split_by_var: vlan_id2 + split_by_var: dec_2_9_1 ''' @@ -621,7 +621,7 @@ TBD def yaml_save_location(self): - return os.devnull + #return os.devnull # debug/deveopment, comment line above return '/tmp/%s.yaml' % self._testMethodName diff --git a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py index 22a63ddd..5ae890ba 100644 --- a/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py +++ b/scripts/automation/regression/unit_tests/functional_tests/stl_basic_tests.py @@ -207,6 +207,8 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test): ['hlt/hlt_david3.py', '-m 1 -l 20', True], ['hlt/hlt_david4.py', '-m 1 -l 20', True], ['hlt/hlt_tcp_ranges.py', '-m 1 -l 20', True], + ['hlt/hlt_udp_ports.py', '-m 1 -l 20', True], + ['hlt/hlt_udp_random_ports.py', '-m 1 -l 20', True], ) for obj in p: |