/[escript]/branches/schroedinger_upto1946/autotest-scons
ViewVC logotype

Diff of /branches/schroedinger_upto1946/autotest-scons

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

revision 321 by jgs, Tue Dec 6 04:46:50 2005 UTC revision 331 by svn, Wed Dec 7 06:46:24 2005 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 cochrane@esscc.uq.edu.au elspeth@esscc.uq.edu.au matt@esscc.uq.edu.au"  MAIL_RECIPIENTS="jgs@esscc.uq.edu.au gross@esscc.uq.edu.au cochrane@esscc.uq.edu.au elspeth@esscc.uq.edu.au matt@esscc.uq.edu.au"
 MAIL_RECIPIENTS="jgs@esscc.uq.edu.au"  
8    
9  #modules to test  #modules to test
10  TESTS="escript bruce finley"  TESTS="escript bruce finley"
11    
12  # the python tests to run  # the python tests to run
13  FINLEY_PYTESTS="ImportTest.py SimpleSolve.py GradTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"  FINLEY_PYTESTS="ImportTest.py SimpleSolve.py GradTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"
14  ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py test_xml.py"  #ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py test_xml.py"
15    ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py"
16  BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"  BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
17    
18    
# Line 89  then Line 89  then
89  fi  fi
90  cd ../..  cd ../..
91    
92    export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH
93    export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3
94    export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib
95    export PATH=/raid2/tools/python-2.3.4/bin:$PATH
96    
97  for module in $TESTS  for module in $TESTS
98  do  do
99      echo "running python tests for: $module"      echo "running python tests for: $module"
# Line 102  do Line 107  do
107              if [ $? != 0 ]              if [ $? != 0 ]
108              then              then
109                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
110                  echo "finley py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
111                exit 1                exit 1
112              fi              fi
113          done          done
# Line 114  do Line 120  do
120              if [ $? != 0 ]              if [ $? != 0 ]
121              then              then
122                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
123                  echo "escript py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
124                exit 1                exit 1
125              fi              fi
126          done          done
# Line 126  do Line 133  do
133              if [ $? != 0 ]              if [ $? != 0 ]
134              then              then
135                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
136                  echo "bruce py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
137                exit 1                exit 1
138              fi              fi
139          done          done
140      fi      fi
141      cd ../..      cd ../../..
142  done  done
143    
144  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS

Legend:
Removed from v.321  
changed lines
  Added in v.331

  ViewVC Help
Powered by ViewVC 1.1.26