#!/bin/sh

WORKDIR=$HOME/Project/Xyce__Work/

# SERIAL first:
XYCE=$WORKDIR/Xyce_dev/BUILD/rancilio_gcc346_32_SERIAL/src/Xyce
BASELINEDIR=$WORKDIR/baseline_tests_SERIAL/
STATUSDIR=$WORKDIR/status_tests_SERIAL/
XYCE_REGRESSION=$WORKDIR/Xyce_Regression
\rm -rf $STATUSDIR
./run_xyce_regression --saveoutput --fulldiff=$BASELINEDIR --output=$STATUSDIR $XYCE --fulldiffregex=$XYCE_REGRESSION/TestScripts/fulldiffregex.txt --faillist=failing_tests  $*
echo "find $STATUSDIR -name '*.diff' -and -not -empty"
find $STATUSDIR -name '*.diff' -and -not -empty

# PARALLEL second:
#XYCE="/opt/mpich-icc-10.1/bin/mpirun -np 2 $WORKDIR/Xyce/BUILD/rancilio_icc101_64_MPICH/src/Xyce"
#BASELINEDIR=$WORKDIR/CLEAN/baseline_tests_MPICH/
#STATUSDIR=$WORKDIR/status_tests_MPICH/
#XYCE_REGRESSION=$WORKDIR/Xyce_Regression
#\rm -rf $STATUSDIR
#./run_xyce_regression --taglist="+parallel+nightly" --saveoutput --fulldiff=$BASELINEDIR --output=$STATUSDIR "$XYCE" --fulldiffregex=$XYCE_REGRESSION/TestScripts/fulldiffregex.txt --faillist=failing_tests  $*
#echo "find $STATUSDIR -name '*.diff' -and -not -empty"
#find $STATUSDIR -name '*.diff' -and -not -empty

