Salome HOME
Increment version: 8.5.0
[modules/yacs.git] / src / evalyfx_swig / test1.py
index e52a597baf0681317a56cd5487ac0cfce2fb19c4..6a28ed1f22d9538b39014037d8b343e73e796be1 100644 (file)
@@ -1,3 +1,22 @@
+# Copyright (C) 2015-2016  CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
 # bug revealed by otgui on 8/2/16. Several lock/unlock session. test1.xml is Cogeneration.xml.
 
 def buildScheme(fname):
@@ -24,6 +43,7 @@ fname="test1.xml"
 import evalyfx
 session=evalyfx.YACSEvalSession()
 session.launch()
+buildScheme(fname)
 efx=evalyfx.YACSEvalYFX.BuildFromFile(fname)
 efx.setParallelizeStatus(False)
 inps=efx.getFreeInputPorts()
@@ -33,6 +53,7 @@ for inp in inps:
 efx.lockPortsForEvaluation(inps,outps)
 rss=efx.giveResources()
 rss[0][0].setWantedMachine("localhost")
+assert(rss.isInteractive())
 a,b=efx.run(session) ; assert(a)
 efx.unlockAll()
 for ii,inp in enumerate(inps):