/[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 331 by svn, Wed Dec 7 06:46:24 2005 UTC revision 336 by svn, Thu Dec 8 23:34:44 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
# Line 25  cd $1 Line 26  cd $1
26  if [ $? != 0 ]  if [ $? != 0 ]
27  then  then
28    echo couldnt cd $1    echo couldnt cd $1
29    echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
30    exit 1    exit 1
31  fi  fi
32    
# Line 34  echo loading esys setup Line 35  echo loading esys setup
35  if [ $? != 0 ]  if [ $? != 0 ]
36  then  then
37    echo couldnt load scons setup    echo couldnt load scons setup
38    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
39    exit 2    exit 2
40  fi  fi
41    
# Line 43  svn update Line 44  svn update
44  if [ $? != 0 ]  if [ $? != 0 ]
45  then  then
46    echo svn update failed    echo svn update failed
47    echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
48    exit 3    exit 3
49  fi  fi
50    
# Line 52  scons debug=1 Line 53  scons debug=1
53  if [ $? != 0 ]  if [ $? != 0 ]
54  then  then
55    echo scons failed    echo scons failed
56    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
57    exit 5    exit 5
58  fi  fi
59    
# Line 62  cd bruce/test Line 63  cd bruce/test
63  if [ $? != 0 ]  if [ $? != 0 ]
64  then  then
65    echo bruce unit_test failed    echo bruce unit_test failed
66    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
67    exit 6    exit 6
68  fi  fi
69  cd ../..  cd ../..
# Line 73  cd escript/test Line 74  cd escript/test
74  if [ $? != 0 ]  if [ $? != 0 ]
75  then  then
76    echo escript unit_test failed    echo escript unit_test failed
77    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
78    exit 6    exit 6
79  fi  fi
80  cd ../..  cd ../..
# Line 84  cd finley/test Line 85  cd finley/test
85  if [ $? != 0 ]  if [ $? != 0 ]
86  then  then
87    echo finley unit_test failed    echo finley unit_test failed
88    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
89      exit 6
90    fi
91    cd ../..
92    
93    echo running esysUtils unit_tests
94    cd esysUtils/test
95    ./unit_test-scons
96    if [ $? != 0 ]
97    then
98      echo esysUtils unit_test failed
99      echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
100    exit 6    exit 6
101  fi  fi
102  cd ../..  cd ../..
# Line 107  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                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
123                exit 1                exit 1
124              fi              fi
125          done          done
# Line 120  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                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
136                exit 1                exit 1
137              fi              fi
138          done          done
# Line 133  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                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
149                exit 1                exit 1
150              fi              fi
151          done          done
# Line 141  do Line 153  do
153      cd ../../..      cd ../../..
154  done  done
155    
156  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  echo success
157    echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
158  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26