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

Diff of /trunk/autotest-scons

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

revision 331 by svn, Wed Dec 7 06:46:24 2005 UTC revision 339 by jgs, Mon Dec 12 04:22:19 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    
7  # list of users to email test results to  # list of users to email test results to
8  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"
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"
 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 25  cd $1 Line 25  cd $1
25  if [ $? != 0 ]  if [ $? != 0 ]
26  then  then
27    echo couldnt cd $1    echo couldnt cd $1
28    echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
29    exit 1    exit 1
30  fi  fi
31    
# Line 34  echo loading esys setup Line 34  echo loading esys setup
34  if [ $? != 0 ]  if [ $? != 0 ]
35  then  then
36    echo couldnt load scons setup    echo couldnt load scons setup
37    echo "couldnt load scons setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "couldnt load scons setup" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
38    exit 2    exit 2
39  fi  fi
40    
# Line 43  svn update Line 43  svn update
43  if [ $? != 0 ]  if [ $? != 0 ]
44  then  then
45    echo svn update failed    echo svn update failed
46    echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
47    exit 3    exit 3
48  fi  fi
49    
# Line 52  scons debug=1 Line 52  scons debug=1
52  if [ $? != 0 ]  if [ $? != 0 ]
53  then  then
54    echo scons failed    echo scons failed
55    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
56    exit 5    exit 5
57  fi  fi
58    
# Line 62  cd bruce/test Line 62  cd bruce/test
62  if [ $? != 0 ]  if [ $? != 0 ]
63  then  then
64    echo bruce unit_test failed    echo bruce unit_test failed
65    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
66    exit 6    #exit 6
67  fi  fi
68  cd ../..  cd ../..
69    
# Line 73  cd escript/test Line 73  cd escript/test
73  if [ $? != 0 ]  if [ $? != 0 ]
74  then  then
75    echo escript unit_test failed    echo escript unit_test failed
76    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
77    exit 6    #exit 6
78  fi  fi
79  cd ../..  cd ../..
80    
# Line 84  cd finley/test Line 84  cd finley/test
84  if [ $? != 0 ]  if [ $? != 0 ]
85  then  then
86    echo finley unit_test failed    echo finley unit_test failed
87    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
88    exit 6    #exit 6
89    fi
90    cd ../..
91    
92    echo running esysUtils unit_tests
93    cd esysUtils/test
94    ./unit_test-scons
95    if [ $? != 0 ]
96    then
97      echo esysUtils unit_test failed
98      echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
99      #exit 6
100  fi  fi
101  cd ../..  cd ../..
102    
# Line 107  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                echo "finley py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS                echo "finley py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
122                exit 1                #exit 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                echo "escript py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS                echo "escript py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
135                exit 1                #exit 1
136              fi              fi
137          done          done
138      elif [ "$module" == "bruce" ]      elif [ "$module" == "bruce" ]
# Line 133  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                echo "bruce py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS                echo "bruce py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
148                exit 1                #exit 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  echo success
156    echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
157  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26