dual mode - tests
authorimarom <[email protected]>
Mon, 5 Sep 2016 07:22:03 +0000 (10:22 +0300)
committerimarom <[email protected]>
Wed, 7 Sep 2016 11:02:57 +0000 (14:02 +0300)
scripts/exp/pcap_remote_dual-0-ex.erf [new file with mode: 0644]
scripts/exp/remote_test_dual.erf [new file with mode: 0644]
src/gtest/trex_stateless_gtest.cpp

diff --git a/scripts/exp/pcap_remote_dual-0-ex.erf b/scripts/exp/pcap_remote_dual-0-ex.erf
new file mode 100644 (file)
index 0000000..e93e0e8
Binary files /dev/null and b/scripts/exp/pcap_remote_dual-0-ex.erf differ
diff --git a/scripts/exp/remote_test_dual.erf b/scripts/exp/remote_test_dual.erf
new file mode 100644 (file)
index 0000000..26b0b6b
Binary files /dev/null and b/scripts/exp/remote_test_dual.erf differ
index 376d245..9e111b6 100644 (file)
@@ -3658,9 +3658,11 @@ TEST_F(basic_stl, pcap_remote_basic) {
                                                                        10,
                                                                        1,
                                                                        1,
-                                                                       -1);
+                                                                       -1,
+                                                                       false);
     t1.m_msg = push_msg;
 
+
     bool res = t1.init();
     EXPECT_EQ_UINT32(1, res?1:0)<< "pass";
 }
@@ -3679,7 +3681,8 @@ TEST_F(basic_stl, pcap_remote_loop) {
                                                                        1,
                                                                        1,
                                                                        3,
-                                                                       -1);
+                                                                       -1,
+                                                                       false);
     t1.m_msg = push_msg;
 
     bool res = t1.init();
@@ -3700,13 +3703,35 @@ TEST_F(basic_stl, pcap_remote_duration) {
                                                                        100000,
                                                                        1,
                                                                        0,
-                                                                       0.5);
+                                                                       0.5,
+                                                                       false);
     t1.m_msg = push_msg;
 
     bool res = t1.init();
     EXPECT_EQ_UINT32(1, res?1:0)<< "pass";
 }
 
+TEST_F(basic_stl, pcap_remote_dual) {
+
+    CBasicStl t1;
+    CParserOption * po =&CGlobalInfo::m_options;
+    po->preview.setVMode(7);
+    po->preview.setFileWrite(true);
+    po->out_file ="exp/pcap_remote_dual";
+
+    TrexStatelessCpToDpMsgBase *push_msg = new TrexStatelessDpPushPCAP(0,
+                                                                       0,
+                                                                       "exp/remote_test_dual.erf",
+                                                                       10000,
+                                                                       1,
+                                                                       0,
+                                                                       0.5,
+                                                                       true);
+    t1.m_msg = push_msg;
+
+    bool res = t1.init();
+    EXPECT_EQ_UINT32(1, res?1:0)<< "pass";
+}
 
 /********************************************* Itay Tests End *************************************/
 class flow_stat_pkt_parse  : public testing::Test {