Update of /cvsroot/jsbsim/JSBSim/tests
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17636/tests
Modified Files:
CheckScripts.py
Log Message:
Now executes the 30 first seconds of each script with the floating point exceptions enabled. This allowed to catch more errors in the scripts.
Index: CheckScripts.py
===================================================================
RCS file: /cvsroot/jsbsim/JSBSim/tests/CheckScripts.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** CheckScripts.py 19 Jun 2016 09:26:22 -0000 1.6
--- CheckScripts.py 26 Jun 2016 20:38:14 -0000 1.7
***************
*** 21,25 ****
import fpectl
! from JSBSim_utils import JSBSimTestCase, CreateFDM, RunTest
--- 21,25 ----
import fpectl
! from JSBSim_utils import JSBSimTestCase, CreateFDM, RunTest, ExecuteUntil
***************
*** 28,36 ****
fpectl.turnon_sigfpe()
! for s in self.script_list():
fdm = CreateFDM(self.sandbox)
! self.assertTrue(fdm.load_script(s),
! msg="Failed to load script %s" % (s,))
! fdm.run_ic()
del fdm
--- 28,42 ----
fpectl.turnon_sigfpe()
! for s in self.script_list(['737_cruise_steady_turn_simplex.xml']):
fdm = CreateFDM(self.sandbox)
! try:
! self.assertTrue(fdm.load_script(s),
! msg="Failed to load script %s" % (s,))
!
! fdm.run_ic()
! ExecuteUntil(fdm, 30.)
!
! except Exception as e:
! self.fail("Script %s failed:\n%s" % (s, e.args[0]))
del fdm
|