aboutsummaryrefslogtreecommitdiffstats
path: root/docs/gettingstarted/writingdocs/styleguide/iperf-vm.xml
diff options
context:
space:
mode:
authorDamjan Marion <dmarion@me.com>2020-02-12 20:12:55 +0100
committerNeale Ranns <nranns@cisco.com>2020-02-13 09:41:24 +0000
commit11da575089cd73fb75b847d01aee81fb551e8598 (patch)
tree8100b381269223c56c057645a2afa642bc61e96c /docs/gettingstarted/writingdocs/styleguide/iperf-vm.xml
parent98bd75778736d4322db5ee7ecf5c548133e05d0f (diff)
crypto-native: add AArch64 ghash support
Type: improvement Change-Id: I1f204685ea9374389fc24fc53184ce06806beed3 Signed-off-by: Damjan Marion <dmarion@me.com>
Diffstat (limited to 'docs/gettingstarted/writingdocs/styleguide/iperf-vm.xml')
0 files changed, 0 insertions, 0 deletions
/* Literal.Number.Integer.Long */
#!/router/bin/python
from .stl_general_test import CStlGeneral_Test, CTRexScenario
import os, sys
from misc_methods import run_command


class STLExamples_Test(CStlGeneral_Test):
    """This class defines the IMIX testcase of the TRex traffic generator"""

    def explicitSetUp(self):
        # examples connect by their own
        if self.is_connected():
            CTRexScenario.stl_trex.disconnect()

    def explicitTearDown(self):
        # connect back at end of tests
        if not self.is_connected():
            self.stl_trex.connect()

    def test_stl_examples(self):
        examples_dir = '../trex_control_plane/stl/examples'
        examples_to_test = [
                            'stl_imix.py',
                            ]

        for example in examples_to_test:
            self.explicitSetUp()
            return_code, stdout, stderr = run_command("sh -c 'cd %s; %s %s -s %s'" % (examples_dir, sys.executable, example, CTRexScenario.configuration.trex['trex_name']))
            self.explicitTearDown()
            assert return_code == 0, 'example %s failed.\nstdout: %s\nstderr: %s' % (return_code, stdout, stderr)