From: Ondrej Lichtner olichtne@redhat.com
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 --- recipes/smoke/lib/task-exec-from.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes/smoke/lib/task-exec-from.xml
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@lists.fedorahosted.org