/[escript]/trunk/autotest-scons
ViewVC logotype

Diff of /trunk/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 469 by svn, Fri Jan 27 00:00:44 2006 UTC revision 700 by gross, Thu Apr 6 00:13:40 2006 UTC
# Line 4  Line 4 
4  # An explicit testing script for esys using the scons build system  # An explicit testing script for esys using the scons build system
5    
6  # list of users to email test results to  # list of users to email test results to
7  MAIL_RECIPIENTS="jgs@esscc.uq.edu.au gross@esscc.uq.edu.au elspeth@esscc.uq.edu.au matt@esscc.uq.edu.au"  MAIL_RECIPIENTS="gross@esscc.uq.edu.au elspeth@esscc.uq.edu.au matt@esscc.uq.edu.au robert.woodcock@csiro.au Peter.Hornby@csiro.au"
8    
9  # the python tests to run  # the python tests to run
10  BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"  BRUCE_PYTESTS="ImportTest.passed BruceTest.passed test_utilOnBruce.py"
11  ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py ArchiveTests.py newEscriptTests.py DataVariableTests.py test_xml.py insituTests.py pdetoolsTest.py s2.py"  ESCRIPT_PYTESTS="ImportTest.passed BinaryOps.passed UnaryOps.passed SliceGetting.passed SliceSetting.passed MiscTests.passed ArchiveTests.passed newEscriptTests.passed test_xml.passed insituTests.passed s2.passed"
12  FINLEY_PYTESTS="ImportTest.py finleyTest.py SimpleSolve.py RecTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"  FINLEY_PYTESTS="ImportTest.passed finleyTest.passed SimpleSolve.passed RecTest.passed test_linearPDEsOnFinley.passed test_generators.passed test_visualization_interface.passed test_utilOnFinley.passed"
13    
14  echo "===> cd $1"  echo "===> cd $1"
15  cd $1  cd $1
# Line 23  fi Line 23  fi
23  PWD=`pwd`  PWD=`pwd`
24  echo "===> working in: $PWD"  echo "===> working in: $PWD"
25    
26  # define compiler executable and library locations  # Setup the environment
27  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  . ${MODULESHOME}/init/sh
28  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib  module load intel_cc.9.0.026
29    export MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6
30  # define python location  module load boost/1.33.0/python-2.4.1
31  export PATH=/raid2/tools/python-2.3.4/bin:$PATH  module load python/2.4.1
32    module load numarray/1.3.3
33  # set library and openmp settings  
34  export LD_LIBRARY_PATH=$PWD/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH  # set openmp settings
 export PYTHONPATH=$PWD  
 export OMP_SCHEDULE="dynamic"  
35  export OMP_NUM_THREADS=4  export OMP_NUM_THREADS=4
 export OMP_DYNAMIC=TRUE  
 export OMP_NESTED=FALSE  
36    
37  echo "===> svn update"  echo "===> svn update"
38  svn update  svn update
# Line 76  then Line 72  then
72    FAIL=1    FAIL=1
73  fi  fi
74    
75  cd escript/test/python  exit
76  for pytest in $ESCRIPT_PYTESTS  for pytest in $ESCRIPT_PYTESTS
77  do  do
78    echo "===>running escript python test: $pytest"    echo "===>running escript python test: $pytest"
79    python $pytest    scons build/posix/escript/test/python/$pytest
80    if [ $? != 0 ]    if [ $? != 0 ]
81    then    then
82      echo "python testing failed for $pytest in module $module"      echo "python testing failed for $pytest in module $module"
# Line 88  do Line 84  do
84      FAIL=1      FAIL=1
85    fi    fi
86  done  done
 cd ../../..  
87    
 cd finley/test/python  
88  for pytest in $FINLEY_PYTESTS  for pytest in $FINLEY_PYTESTS
89  do  do
90    echo "running finley python test: $pytest"    echo "running finley python test: $pytest"
91    python $pytest    scons build/posix/finley/test/python/$pytest
92    if [ $? != 0 ]    if [ $? != 0 ]
93    then    then
94      echo "python testing failed for $pytest in module $module"      echo "python testing failed for $pytest in module $module"
# Line 102  do Line 96  do
96      FAIL=1      FAIL=1
97    fi    fi
98  done  done
 cd ../../..  
99    
 cd bruce/test/python  
100  for pytest in $BRUCE_PYTESTS  for pytest in $BRUCE_PYTESTS
101  do  do
102    echo "running bruce python test: $pytest"    echo "running bruce python test: $pytest"
103    python $pytest    scons build/posix/bruce/test/python/$pytest
104    if [ $? != 0 ]    if [ $? != 0 ]
105    then    then
106      echo "python testing failed for $pytest in module $module"      echo "python testing failed for $pytest in module $module"
# Line 116  do Line 108  do
108      FAIL=1      FAIL=1
109    fi    fi
110  done  done
 cd ../../..  
111    
112  if [ $FAIL == 0 ]  if [ $FAIL == 0 ]
113  then  then

Legend:
Removed from v.469  
changed lines
  Added in v.700

  ViewVC Help
Powered by ViewVC 1.1.26