From: imarom Date: Mon, 5 Sep 2016 07:22:03 +0000 (+0300) Subject: dual mode - tests X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=d508420652d613fdc87f6af746fd1372cd2ae7d2;p=trex.git dual mode - tests --- diff --git a/scripts/exp/pcap_remote_dual-0-ex.erf b/scripts/exp/pcap_remote_dual-0-ex.erf new file mode 100644 index 00000000..e93e0e8b 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 index 00000000..26b0b6b4 Binary files /dev/null and b/scripts/exp/remote_test_dual.erf differ diff --git a/src/gtest/trex_stateless_gtest.cpp b/src/gtest/trex_stateless_gtest.cpp index 376d2454..9e111b61 100644 --- a/src/gtest/trex_stateless_gtest.cpp +++ b/src/gtest/trex_stateless_gtest.cpp @@ -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 {