summaryrefslogtreecommitdiffstats
path: root/src/gtest
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-05-10 17:49:25 +0300
committerHanoh Haim <hhaim@cisco.com>2016-05-10 17:49:25 +0300
commit2d37b9f98020a4458aaad1f3fd05ca5e408213e0 (patch)
tree3a8cd16eb748711b72df37c6f7eea4842d73290a /src/gtest
parent996f2451dba01f534420418eaac2856510682757 (diff)
parent63bf6aba10075a03fe6609369c1c7008afb85ba7 (diff)
merge from master
Diffstat (limited to 'src/gtest')
-rw-r--r--src/gtest/trex_stateless_gtest.cpp64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/gtest/trex_stateless_gtest.cpp b/src/gtest/trex_stateless_gtest.cpp
index 11070f5c..50f8e5ec 100644
--- a/src/gtest/trex_stateless_gtest.cpp
+++ b/src/gtest/trex_stateless_gtest.cpp
@@ -3611,6 +3611,70 @@ TEST_F(basic_stl, vm_split_client_var) {
}
+TEST_F(basic_stl, pcap_remote_basic) {
+
+ CBasicStl t1;
+ CParserOption * po =&CGlobalInfo::m_options;
+ po->preview.setVMode(7);
+ po->preview.setFileWrite(true);
+ po->out_file ="exp/pcap_remote_basic";
+
+ TrexStatelessCpToDpMsgBase *push_msg = new TrexStatelessDpPushPCAP(0,
+ 0,
+ "exp/remote_test.cap",
+ 10,
+ 1,
+ 1,
+ -1);
+ t1.m_msg = push_msg;
+
+ bool res = t1.init();
+ EXPECT_EQ_UINT32(1, res?1:0)<< "pass";
+}
+
+TEST_F(basic_stl, pcap_remote_loop) {
+
+ CBasicStl t1;
+ CParserOption * po =&CGlobalInfo::m_options;
+ po->preview.setVMode(7);
+ po->preview.setFileWrite(true);
+ po->out_file ="exp/pcap_remote_loop";
+
+ TrexStatelessCpToDpMsgBase *push_msg = new TrexStatelessDpPushPCAP(0,
+ 0,
+ "exp/remote_test.cap",
+ 1,
+ 1,
+ 3,
+ -1);
+ t1.m_msg = push_msg;
+
+ bool res = t1.init();
+ EXPECT_EQ_UINT32(1, res?1:0)<< "pass";
+}
+
+TEST_F(basic_stl, pcap_remote_duration) {
+
+ CBasicStl t1;
+ CParserOption * po =&CGlobalInfo::m_options;
+ po->preview.setVMode(7);
+ po->preview.setFileWrite(true);
+ po->out_file ="exp/pcap_remote_duration";
+
+ TrexStatelessCpToDpMsgBase *push_msg = new TrexStatelessDpPushPCAP(0,
+ 0,
+ "exp/remote_test.cap",
+ 100000,
+ 1,
+ 0,
+ 0.5);
+ t1.m_msg = push_msg;
+
+ bool res = t1.init();
+ EXPECT_EQ_UINT32(1, res?1:0)<< "pass";
+}
+
+
/********************************************* Itay Tests End *************************************/
class rx_stat_pkt_parse : public testing::Test {
protected: