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

Diff of /branches/arrexp_2137_win_merge/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 321 by jgs, Tue Dec 6 04:46:50 2005 UTC
# Line 7  Line 7 
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"  MAIL_RECIPIENTS="jgs@esscc.uq.edu.au"
9    
10    #modules to test
11    TESTS="escript bruce finley"
12    
13    # the python tests to run
14    FINLEY_PYTESTS="ImportTest.py SimpleSolve.py GradTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"
15    ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py test_xml.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
21  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
# Line 80  then Line 89  then
89  fi  fi
90  cd ../..  cd ../..
91    
92  #echo running mk py_test  for module in $TESTS
93  #./mk py_test  do
94  #if [ $? != 0 ]      echo "running python tests for: $module"
95  #then      cd $module/test/python
96  #  echo ./mk py_test failed      if [ "$module" == "finley" ]
97  #  echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS      then
98  #  exit 7          for pytest in $FINLEY_PYTESTS
99  #fi          do
100                echo "Running python test: $pytest"
101                python $pytest
102                if [ $? != 0 ]
103                then
104                  echo Python Testing FAILED for $pytest in module $module
105                  exit 1
106                fi
107            done
108        elif [ "$module" == "escript" ]
109        then
110            for pytest in $ESCRIPT_PYTESTS
111            do
112                echo "Running python test: $pytest"
113                python $pytest
114                if [ $? != 0 ]
115                then
116                  echo Python Testing FAILED for $pytest in module $module
117                  exit 1
118                fi
119            done
120        elif [ "$module" == "bruce" ]
121        then
122            for pytest in $BRUCE_PYTESTS
123            do
124                echo "Running python test: $pytest"
125                python $pytest
126                if [ $? != 0 ]
127                then
128                  echo Python Testing FAILED for $pytest in module $module
129                  exit 1
130                fi
131            done
132        fi
133        cd ../..
134    done
135    
136  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
137  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26