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

Diff of /trunk/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 346 by svn, Tue Dec 13 05:31:48 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"
8  MAIL_RECIPIENTS="jgs@esscc.uq.edu.au"  MAIL_RECIPIENTS="jgs@esscc.uq.edu.au"
9    
10  #modules to test  # modules to test
11  TESTS="escript bruce finley"  TESTS="escript bruce finley"
12    
13  # the python tests to run  # 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"  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"
15  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"
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    
   
 # define compiler executable and library locations  
 export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  
 export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib  
   
18  echo cd $1  echo cd $1
19  cd $1  cd $1
20  if [ $? != 0 ]  if [ $? != 0 ]
21  then  then
22    echo couldnt cd $1    echo couldnt cd $1
23    echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
24    exit 1    exit 1
25  fi  fi
26    
27  echo loading esys setup  PWD=`pwd`
28  . ~jgs/bin/scons_setup  echo working in: $PWD
29  if [ $? != 0 ]  
30  then  # define compiler executable and library locations
31    echo couldnt load scons setup  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
32    echo "couldnt load scons setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
33    exit 2  
34  fi  # define python location
35    export PATH=/raid2/tools/python-2.3.4/bin:$PATH
36    
37    # set library and openmp settings
38    export LD_LIBRARY_PATH=$PWD/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH
39    export PYTHONPATH=$PWD
40    export OMP_SCHEDULE="dynamic"
41    export OMP_NUM_THREADS=4
42    export OMP_DYNAMIC=TRUE
43    export OMP_NESTED=FALSE
44    
45    FAIL=0
46    
47  echo running svn update  echo running svn update
48  svn update  svn update
49  if [ $? != 0 ]  if [ $? != 0 ]
50  then  then
51    echo svn update failed    echo svn update failed
52    echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
53    exit 3    exit 2
54  fi  fi
55    
56  echo running scons debug=1  echo running scons debug=1
# Line 52  scons debug=1 Line 58  scons debug=1
58  if [ $? != 0 ]  if [ $? != 0 ]
59  then  then
60    echo scons failed    echo scons failed
61    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
62    exit 5    exit 3
63  fi  fi
64    
65  echo running bruce unit_tests  echo running bruce unit_tests
# Line 62  cd bruce/test Line 68  cd bruce/test
68  if [ $? != 0 ]  if [ $? != 0 ]
69  then  then
70    echo bruce unit_test failed    echo bruce unit_test failed
71    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
72    exit 6    FAIL=1
73  fi  fi
74  cd ../..  cd ../..
75    
# Line 73  cd escript/test Line 79  cd escript/test
79  if [ $? != 0 ]  if [ $? != 0 ]
80  then  then
81    echo escript unit_test failed    echo escript unit_test failed
82    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
83    exit 6    FAIL=1
84  fi  fi
85  cd ../..  cd ../..
86    
# Line 84  cd finley/test Line 90  cd finley/test
90  if [ $? != 0 ]  if [ $? != 0 ]
91  then  then
92    echo finley unit_test failed    echo finley unit_test failed
93    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
94    exit 6    FAIL=1
95    fi
96    cd ../..
97    
98    echo running esysUtils unit_tests
99    cd esysUtils/test
100    ./unit_test-scons
101    if [ $? != 0 ]
102    then
103      echo esysUtils unit_test failed
104      echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
105      FAIL=1
106  fi  fi
107  cd ../..  cd ../..
108    
# Line 102  do Line 119  do
119              if [ $? != 0 ]              if [ $? != 0 ]
120              then              then
121                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
122                exit 1                echo "finley py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
123                  FAIL=1
124              fi              fi
125          done          done
126      elif [ "$module" == "escript" ]      elif [ "$module" == "escript" ]
# Line 114  do Line 132  do
132              if [ $? != 0 ]              if [ $? != 0 ]
133              then              then
134                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
135                exit 1                echo "escript py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
136                  FAIL=1
137              fi              fi
138          done          done
139      elif [ "$module" == "bruce" ]      elif [ "$module" == "bruce" ]
# Line 126  do Line 145  do
145              if [ $? != 0 ]              if [ $? != 0 ]
146              then              then
147                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
148                exit 1                echo "bruce py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
149                  FAIL=1
150              fi              fi
151          done          done
152      fi      fi
153      cd ../..      cd ../../..
154  done  done
155    
156  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  if [ $FAIL == 0 ]
157    then
158        echo success
159        echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
160    fi
161  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26