Salome HOME
Copyright update 2022
[modules/yacs.git] / src / yacsloader_swig / Test / runUnitTest.sh
old mode 100644 (file)
new mode 100755 (executable)
index 49926df..403aba8
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright (C) 2006-2015  CEA/DEN, EDF R&D
+# Copyright (C) 2006-2022  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
 # script used by "salome test" command
 ../yacsloader/echoSrv &
 pidecho=$!
-echo $pidecho > "/tmp/YACSTEST_PidEcho"
+
+# give some time for echoSrv to start...
+sleep 3
 
 export TESTCOMPONENT_ROOT_DIR=`pwd`/../runtime
 
-python -m unittest discover
+#python3 -m unittest discover
+MODULES_TO_TEST="testEdit testExec testLoader testSave "
+
+python3 -m unittest $MODULES_TO_TEST
 ret=$?
 echo "exec status salome_test_driver " $ret
 
-kill -9 `cat "/tmp/YACSTEST_PidEcho"`
+kill -9 $pidecho
 
-exit $ret
\ No newline at end of file
+exit $ret