summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-09-05 10:22:03 +0300
committerimarom <imarom@cisco.com>2016-09-07 14:02:57 +0300
commitd508420652d613fdc87f6af746fd1372cd2ae7d2 (patch)
tree139bad1ceccba804a09bb2032d416371a8669e47 /src
parente67bfa5d5dbb73927f917431147be2e07d064457 (diff)
dual mode - tests
Diffstat (limited to 'src')
-rw-r--r--src/gtest/trex_stateless_gtest.cpp31
1 files changed, 28 insertions, 3 deletions
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 {