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

Diff of /temp/autotest-scons

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

revision 330 by svn, Wed Dec 7 06:31:27 2005 UTC revision 344 by svn, Tue Dec 13 05:17:32 2005 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  # $Id: autotest 162 2005-11-11 00:09:59Z svn $  # $Id: autotest-scons 162 2005-11-11 00:09:59Z svn $
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 finleyTest.py SimpleSolve.py GradTest.py RecTest.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 ArchiveTests.py escriptTest.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"  
15  BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"  BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
16    
17    PWD=`pwd`
18    echo working in: $PWD
19    
20  # define compiler executable and library locations  # define compiler executable and library locations
21  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
22  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
23    
24    # define python location
25    export PATH=/raid2/tools/python-2.3.4/bin:$PATH
26    
27    # set library and openmp settings
28    export LD_LIBRARY_PATH=$PWD/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH
29    export PYTHONPATH=$PWD
30    export OMP_SCHEDULE="dynamic"
31    export OMP_NUM_THREADS=4
32    export OMP_DYNAMIC=TRUE
33    export OMP_NESTED=FALSE
34    
35    FAIL=0
36    
37  echo cd $1  echo cd $1
38  cd $1  cd $1
39  if [ $? != 0 ]  if [ $? != 0 ]
40  then  then
41    echo couldnt cd $1    echo couldnt cd $1
42    echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
43    exit 1    exit 1
44  fi  fi
45    
 echo loading esys setup  
 . ~jgs/bin/scons_setup  
 if [ $? != 0 ]  
 then  
   echo couldnt load scons setup  
   echo "couldnt load scons setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS  
   exit 2  
 fi  
   
46  echo running svn update  echo running svn update
47  svn update  svn update
48  if [ $? != 0 ]  if [ $? != 0 ]
49  then  then
50    echo svn update failed    echo svn update failed
51    echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
52    exit 3    exit 2
53  fi  fi
54    
55  echo running scons debug=1  echo running scons debug=1
# Line 53  scons debug=1 Line 57  scons debug=1
57  if [ $? != 0 ]  if [ $? != 0 ]
58  then  then
59    echo scons failed    echo scons failed
60    echo "scons failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "scons failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
61    exit 5    exit 3
62  fi  fi
63    
64  echo running bruce unit_tests  echo running bruce unit_tests
# Line 63  cd bruce/test Line 67  cd bruce/test
67  if [ $? != 0 ]  if [ $? != 0 ]
68  then  then
69    echo bruce unit_test failed    echo bruce unit_test failed
70    echo "bruce unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "bruce unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
71    exit 6    FAIL=1
72  fi  fi
73  cd ../..  cd ../..
74    
# Line 74  cd escript/test Line 78  cd escript/test
78  if [ $? != 0 ]  if [ $? != 0 ]
79  then  then
80    echo escript unit_test failed    echo escript unit_test failed
81    echo "escript unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "escript unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
82    exit 6    FAIL=1
83  fi  fi
84  cd ../..  cd ../..
85    
# Line 85  cd finley/test Line 89  cd finley/test
89  if [ $? != 0 ]  if [ $? != 0 ]
90  then  then
91    echo finley unit_test failed    echo finley unit_test failed
92    echo "finley unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "finley unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
93    exit 6    FAIL=1
94  fi  fi
95  cd ../..  cd ../..
96    
97  export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH  echo running esysUtils unit_tests
98  export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3  cd esysUtils/test
99  export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib  ./unit_test-scons
100  export PATH=/raid2/tools/python-2.3.4/bin:$PATH  if [ $? != 0 ]
101    then
102      echo esysUtils unit_test failed
103      echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
104      FAIL=1
105    fi
106    cd ../..
107    
108  for module in $TESTS  for module in $TESTS
109  do  do
# Line 108  do Line 118  do
118              if [ $? != 0 ]              if [ $? != 0 ]
119              then              then
120                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
121                exit 1                echo "finley py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
122                  FAIL=1
123              fi              fi
124          done          done
125      elif [ "$module" == "escript" ]      elif [ "$module" == "escript" ]
# Line 120  do Line 131  do
131              if [ $? != 0 ]              if [ $? != 0 ]
132              then              then
133                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
134                exit 1                echo "escript py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
135                  FAIL=1
136              fi              fi
137          done          done
138      elif [ "$module" == "bruce" ]      elif [ "$module" == "bruce" ]
# Line 132  do Line 144  do
144              if [ $? != 0 ]              if [ $? != 0 ]
145              then              then
146                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
147                exit 1                echo "bruce py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
148                  FAIL=1
149              fi              fi
150          done          done
151      fi      fi
152      cd ../../..      cd ../../..
153  done  done
154    
155  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  if [ $FAIL == 0 ]
156    then
157        echo success
158        echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
159    fi
160  exit 0  exit 0

Legend:
Removed from v.330  
changed lines
  Added in v.344

  ViewVC Help
Powered by ViewVC 1.1.26