diff mbox series

[2/2] tests/pipeline: added test case for validate instruction

Message ID 20221129060241.901035-3-yogesh.jangra@intel.com (mailing list archive)
State Accepted
Headers show
Series added test case for validate instruction | expand

Checks

Context Check Description
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Jangra, Yogesh Nov. 29, 2022, 6:02 a.m. UTC
Added a new test case to the pipeline test suite. This test
case will verify the validate instruction with mov instruction.

Signed-off-by: Yogesh Jangra <yogesh.jangra@intel.com>
---
 tests/TestSuite_pipeline.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff mbox series

Patch

diff --git a/tests/TestSuite_pipeline.py b/tests/TestSuite_pipeline.py
index 4ecea73d..de04bc44 100644
--- a/tests/TestSuite_pipeline.py
+++ b/tests/TestSuite_pipeline.py
@@ -2450,6 +2450,19 @@  class TestPipeline(TestCase):
         self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)
         self.dut.send_expect("^C", "# ", 20)
 
+    def test_validate_002(self):
+
+        cli_file = "/tmp/pipeline/validate_002/validate_002.cli"
+        self.run_dpdk_app(cli_file)
+
+        in_pcap = ["pipeline/validate_002/pcap_files/in_1.txt"] * 4
+        out_pcap = ["pipeline/validate_002/pcap_files/out_1.txt"] * 4
+        filters = ["vlan 2"] * 4
+        tx_port = [0, 1, 2, 3]
+        rx_port = [0, 1, 2, 3]
+        self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)
+        self.dut.send_expect("^C", "# ", 20)
+
     def test_table_002(self):
 
         cli_file = "/tmp/pipeline/table_002/table_002.cli"