2 # Copyright (C) 2010-2021 EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # Author : Guillaume Boulant (EDF)
24 # This script should be executed in a SALOME shell session,
25 # for example the shell obtained from the command runSession
26 # provided by the SALOME application.
28 # This list contains the filenames where test suites are to be
29 # executed. The path are defined relative to the PYTHON installation
30 # directory of the SALOME module.
33 unittests/usecase_meshJobManager.py \
36 INSTALL_DIR=@CMAKE_INSTALL_PREFIX@
37 PYTHON_DIR=$INSTALL_DIR/lib/python@PYTHON_VERSION@/site-packages/salome
38 PYTHONPATH=$PYTHON_DIR:$PYTHONPATH
42 while getopts 'ql' OPTION
46 l) for f in $listfiles; do echo $f; done; exit 0;;
47 ?) printf "Usage: %s: [-q] [-l]\n" $(basename $0) >&2; exit 2;;
50 shift $(($OPTIND - 1))
53 package_path="salome/smesh/spadder"
55 for file in $listfiles; do
56 # Uncomment this line (and comment the next one) to display
57 # the start line of a test and not only the result:
58 python $package_path/$file 2>&$stderr | grep '^\[TEST'
59 #python $package_path/$file $filter | grep '^\[TEST' | grep -v 'test in progress'