#!/bin/bash
#
#    Project: The EDNA Kernel
#             http://www.edna-site.org
#
#    File: "$Id: EDActionExecuteSystemCommand.py 664 2009-05-06 13:05:34Z svensson $"
#
#    Copyright (C) 2008-2009 European Synchrotron Radiation Facility
#                            Grenoble, France
#
#    Principal authors: Marie-Francoise Incardona (incardon@esrf.fr)
#                       Olof Svensson (svensson@esrf.fr) 
#
#    This program 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 3 of the License, or
#    (at your option) any later version.
#
#    This program 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 General Public License
#    and the GNU Lesser General Public License  along with this program.  
#    If not, see <http://www.gnu.org/licenses/>.
#


if [ -z "${EDNA_HOME}" ]; then
  echo ""
  echo "Cannot start the EDNA test launcher:"
  echo "Make sure that \$EDNA_HOME is set up before running edna-test-launcher."
  echo "Example:"
  echo "\$ export EDNA_HOME=/<path>/<to>/edna"
  echo "Please read the INSTALL.txt file under the \"\$EDNA_HOME/kernel\" directory for more details"
  echo ""
  exit 1
fi

# Set up the PYTHONPATH
export PYTHONPATH=${EDNA_HOME}/libraries/20090518-PyAALib-JyAALib-111/modules:${EDNA_HOME}/kernel/src:${EDNA_HOME}/kernel/tests/src

python ${EDNA_HOME}/kernel/tests/src/EDTestLauncherMain.py --verbose $*
