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

Diff of /branches/arrayview_from_1695_trunk/autotest-scons

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

revision 320 by svn, Tue Dec 6 04:35:27 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"
8  MAIL_RECIPIENTS="jgs@esscc.uq.edu.au"  
9    #modules to test
10    TESTS="escript bruce finley"
11    
12    # 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"
14    #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"
17    
18    
19  # define compiler executable and library locations  # define compiler executable and library locations
20  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
# Line 80  then Line 89  then
89  fi  fi
90  cd ../..  cd ../..
91    
92  #echo running mk py_test  export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH
93  #./mk py_test  export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3
94  #if [ $? != 0 ]  export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib
95  #then  export PATH=/raid2/tools/python-2.3.4/bin:$PATH
96  #  echo ./mk py_test failed  
97  #  echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS  for module in $TESTS
98  #  exit 7  do
99  #fi      echo "running python tests for: $module"
100        cd $module/test/python
101        if [ "$module" == "finley" ]
102        then
103            for pytest in $FINLEY_PYTESTS
104            do
105                echo "Running python test: $pytest"
106                python $pytest
107                if [ $? != 0 ]
108                then
109                  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
112                fi
113            done
114        elif [ "$module" == "escript" ]
115        then
116            for pytest in $ESCRIPT_PYTESTS
117            do
118                echo "Running python test: $pytest"
119                python $pytest
120                if [ $? != 0 ]
121                then
122                  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
125                fi
126            done
127        elif [ "$module" == "bruce" ]
128        then
129            for pytest in $BRUCE_PYTESTS
130            do
131                echo "Running python test: $pytest"
132                python $pytest
133                if [ $? != 0 ]
134                then
135                  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
138                fi
139            done
140        fi
141        cd ../../..
142    done
143    
144  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
145  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26