commit 895d6c5aecab8ecc4df2685fbdfa5451c498abc5
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Thu Feb 12 17:47:01 2015 +0100
regression-tests: extend test 25 to include the PktCounter test
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
regression-tests/tests/25/recipe3.xml | 53 +++++++++++++++++++++++++++++++++
regression-tests/tests/25/run.sh | 5 +++
2 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/regression-tests/tests/25/recipe3.xml
b/regression-tests/tests/25/recipe3.xml
new file mode 100644
index 0000000..30452aa
--- /dev/null
+++ b/regression-tests/tests/25/recipe3.xml
@@ -0,0 +1,53 @@
+<lnstrecipe>
+ <network>
+ <host id="tm1">
+ <interfaces>
+ <eth id="phy1" label="net1"/>
+ <veth_pair>
+ <veth id="in" netns="in">
+ <addresses>
+ <address value="192.168.0.3/24"/>
+ </addresses>
+ </veth>
+ <veth id="out"/>
+ </veth_pair>
+ <bridge id="br">
+ <slaves>
+ <slave id="out"/>
+ <slave id="phy1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.0.1/24"/>
+ </addresses>
+ </bridge>
+ </interfaces>
+ </host>
+ <host id="tm2">
+ <interfaces>
+ <eth id="phy1" label="net1">
+ <addresses>
+ <address value="192.168.0.10/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ </network>
+ <task>
+ <run module="PktCounter" host="tm1" netns="in"
bg_id="ctr">
+ <options>
+ <option name="input_netdev_name"
value="{devname(tm1,in)}"/>
+ </options>
+ </run>
+ <run module="PktgenTx" host="tm2">
+ <options>
+ <option name="netdev_name"
value="{devname(tm2,phy1)}"/>
+ <option name="pktgen_option" value="dst {ip(tm1,
in)}"/>
+ <option name="pktgen_option" value="dst_mac
{hwaddr(tm1,in)}"/>
+ <option name="pktgen_option" value="count
1000"/>
+ </options>
+ </run>
+ <ctl_wait seconds="5"/>
+ <intr host="tm1" bg_id="ctr"/>
+ </task>
+</lnstrecipe>
+
diff --git a/regression-tests/tests/25/run.sh b/regression-tests/tests/25/run.sh
index 3efc33a..34c1dc6 100755
--- a/regression-tests/tests/25/run.sh
+++ b/regression-tests/tests/25/run.sh
@@ -12,9 +12,14 @@ lnst-ctl -c lnst-ctl.conf -d run recipe2.xml | tee test.log
rv2=${PIPESTATUS[0]}
log2=`cat test.log`
+lnst-ctl -d run recipe3.xml | tee test.log
+rv3=${PIPESTATUS[0]}
+log3=`cat test.log`
+
print_separator
assert_status "pass" "$rv1"
assert_status "pass" "$rv2"
+assert_status "pass" "$rv3"
rm -f test.log
Show replies by thread