certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] applications/HLA_TestsSuite dtest_Interactive_F...


From: certi-cvs
Subject: [certi-cvs] applications/HLA_TestsSuite dtest_Interactive_F...
Date: Wed, 24 Jun 2009 08:22:31 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     Pierre Siron <siron>    09/06/24 08:22:31

Modified files:
        HLA_TestsSuite : dtest_Interactive_Federate.py 

Log message:
        A new test of the zero lookahead (using the InteractiveFederate),
        this file should be renamed in dtest_zero_lookahead.py
        (see  DOC/test-zero_lookahead.odp for a detailed description)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_TestsSuite/dtest_Interactive_Federate.py?cvsroot=certi&r1=1.1&r2=1.2

Patches:
Index: dtest_Interactive_Federate.py
===================================================================
RCS file: 
/sources/certi/applications/HLA_TestsSuite/dtest_Interactive_Federate.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- dtest_Interactive_Federate.py       21 Apr 2009 14:40:43 -0000      1.1
+++ dtest_Interactive_Federate.py       24 Jun 2009 08:22:30 -0000      1.2
@@ -110,6 +110,36 @@
 
 firstFederate.addRunStep("expectFromCommand",pattern="Choisissez une action :")
 
firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,"ACTION"+firstFederate.name)
+firstFederate.addRunStep("sendToCommand",string="ml\n")
+firstFederate.addRunStep("sendToCommand",string="0\n")
+firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,firstFederate.name+"
 has zero lookahead")
+
+firstFederate.addRunStep("expectFromCommand",pattern="Choisissez une action :")
+firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,"ACTION"+firstFederate.name)
+firstFederate.addRunStep("sendToCommand",string="tara\n")
+firstFederate.addRunStep("sendToCommand",string="1\n")
+firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,firstFederate.name+"
 has requested advance request of 1 as available")
+firstFederate.addRunStep("barrier","After TAR and TARA")
+
+firstFederate.addRunStep("sendToCommand",string="qlbts\n")
+firstFederate.addRunStep("expectFromCommand",pattern="LBTS=1.0001")
+firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,firstFederate.name+"
 has LBTS > 1")
+firstFederate.addRunStep("sendToCommand",string="t\n")
+firstFederate.addRunStep("expectFromCommand",pattern="timeAdvanceGrant")
+firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,firstFederate.name+"
 time advance granted to 1")
+firstFederate.addRunStep("barrier","Wait before an interaction exchange")
+
+firstFederate.addRunStep("sendToCommand",string="si\n")
+firstFederate.addRunStep("sendToCommand",string="1\n")
+firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,firstFederate.name+"
 can send an interaction with timestamp 1")
+firstFederate.addRunStep("barrier","Wait after an interaction exchange")
+
+firstFederate.addRunStep("sendToCommand",string="tar\n")
+firstFederate.addRunStep("sendToCommand",string="2\n")
+firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,firstFederate.name+"
 has requested advance request of 2")
+
+firstFederate.addRunStep("expectFromCommand",pattern="Choisissez une action :")
+firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,"ACTION"+firstFederate.name)
 firstFederate.addRunStep("sendToCommand",string="rfe\n")
 firstFederate.addRunStep("expectFromCommand",pattern="federation quittee")
 
firstFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,firstFederate.name+"
 has quit federation")
@@ -138,15 +168,47 @@
                                bourne_shell_cmd="source 
"+certi_home+"/share/scripts/myCERTI_env.sh "+rtig_param['host'])
 otherFederate.addRunStep("runCommand",command=federate_param['path']+" 
"+otherFederate.name)
 otherFederate.addRunStep("expectFromCommand",pattern="Voulez-vous un preambule 
automatique.*")
-otherFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,"Second 
Federate started and has joined federation")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,"Second 
Federate started and has joined federation")
 otherFederate.addRunStep("sendToCommand",string="y\n")
 otherFederate.addRunStep("barrier","Wait others...")
 
 otherFederate.addRunStep("expectFromCommand",pattern="Choisissez une action :")
-otherFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,"ACTION"+firstFederate.name)
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,"ACTION"+otherFederate.name)
+otherFederate.addRunStep("sendToCommand",string="ml\n")
+otherFederate.addRunStep("sendToCommand",string="0\n")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,otherFederate.name+"
 has zero lookahead")
+
+otherFederate.addRunStep("expectFromCommand",pattern="Choisissez une action :")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,"ACTION"+otherFederate.name)
+otherFederate.addRunStep("sendToCommand",string="tar\n")
+otherFederate.addRunStep("sendToCommand",string="1\n")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,otherFederate.name+"
 has requested advance request of 1")
+otherFederate.addRunStep("barrier","After TAR and TARA")
+
+otherFederate.addRunStep("sendToCommand",string="ql\n")
+otherFederate.addRunStep("expectFromCommand",pattern="Lookahead=0.0001")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,otherFederate.name+"
 has Lookahead > 0")
+otherFederate.addRunStep("barrier","Wait before an interaction exchange")
+
+otherFederate.addRunStep("expectFromCommand",pattern="Choisissez une action :")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,"ACTION"+otherFederate.name)
+otherFederate.addRunStep("sendToCommand",string="t\n")
+otherFederate.addRunStep("expectFromCommand",pattern="receiveInteraction")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,otherFederate.name+"
 has received an interaction")
+otherFederate.addRunStep("barrier","Wait after an interaction exchange")
+
+otherFederate.addRunStep("sendToCommand",string="t\n")
+otherFederate.addRunStep("expectFromCommand",pattern="timeAdvanceGrant")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,otherFederate.name+"
 time advance granted")
+otherFederate.addRunStep("sendToCommand",string="ql\n")
+otherFederate.addRunStep("expectFromCommand",pattern="Lookahead=0")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,otherFederate.name+"
 lookahead back to 0")
+
+otherFederate.addRunStep("expectFromCommand",pattern="Choisissez une action :")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,"ACTION"+otherFederate.name)
 otherFederate.addRunStep("sendToCommand",string="rfe\n")
 otherFederate.addRunStep("expectFromCommand",pattern="federation quittee")
-otherFederate.addRunStep("ok",firstFederate.getFutureLastStepStatus,firstFederate.name+"
 has quit federation")
+otherFederate.addRunStep("ok",otherFederate.getFutureLastStepStatus,otherFederate.name+"
 has quit federation")
 
 otherFederate.addRunStep("barrier","Wait before DFE")
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]