[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lnst-developers
Subject:    [lnst] smoke tests: add task with exec from command
From:       Jiří Pírko <jirka () fedoraproject ! org>
Date:       2013-10-18 7:04:59
Message-ID: 20131018070459.A63DF60E80 () fedorahosted ! org
[Download RAW message or body]

commit 53c531645459d736c6564707ab21dca4c3269b4f
Author: Ondrej Lichtner <olichtne@redhat.com>
Date:   Thu Oct 17 13:47:08 2013 +0200

    smoke tests: add task with exec from command
    
    We didn't have a smoke test for the exec from functionality, so this
    patch fixes that. The task uses the tcp_conn test tool which we have in
    our repository.
    
    You need to re-generate the smoke tests for this to take effect, use the
    generate-recipes.py script for that.
    
    Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
    Signed-off-by: Jiri Pirko <jiri@resnulli.us>

 recipes/smoke/lib/task-exec-from.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/recipes/smoke/lib/task-exec-from.xml \
b/recipes/smoke/lib/task-exec-from.xml new file mode 100644
index 0000000..2151411
--- /dev/null
+++ b/recipes/smoke/lib/task-exec-from.xml
@@ -0,0 +1,12 @@
+<task>
+    <define>
+        <alias name="my_range" value="10000-10030"/>
+    </define>
+
+    <run bg_id="1" command="./tcp_listen -p {$my_range} -a {ip(2,testiface)} -d" \
from="tcp_conn" host="2"/> +    <ctl_wait seconds="5"/>
+    <run bg_id="2" command="./tcp_connect -p {$my_range} -a {ip(2,testiface)} -d" \
from="tcp_conn" host="1"/> +    <ctl_wait seconds="10"/>
+    <intr bg_id="2" host="1"/>
+    <intr bg_id="1" host="2"/>
+</task>
_______________________________________________
LNST-developers mailing list
LNST-developers@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/lnst-developers


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic