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

Diff of /trunk/autotest-scons

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

revision 346 by svn, Tue Dec 13 05:31:48 2005 UTC revision 361 by jgs, Thu Dec 15 02:04:58 2005 UTC
# Line 4  Line 4 
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"
# Line 44  export OMP_NESTED=FALSE Line 44  export OMP_NESTED=FALSE
44    
45  FAIL=0  FAIL=0
46    
47  echo running svn update  echo svn update
48  svn update  svn update
49  if [ $? != 0 ]  if [ $? != 0 ]
50  then  then
# Line 53  then Line 53  then
53    exit 2    exit 2
54  fi  fi
55    
56  echo running scons debug=1  echo building scons debug=1
57  scons debug=1  scons debug=1
58  if [ $? != 0 ]  if [ $? != 0 ]
59  then  then
60    echo scons failed    echo scons build failed
61    echo "scons failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "scons build failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
62    exit 3    exit 3
63  fi  fi
64    
65  echo running bruce unit_tests  echo building unit_tests
66  cd bruce/test  scons debug=1 build_tests
 ./unit_test-scons  
67  if [ $? != 0 ]  if [ $? != 0 ]
68  then  then
69    echo bruce unit_test failed    echo  unit_test build failed
70    echo "bruce unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "unit_test build failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
71    FAIL=1    exit 3
 fi  
 cd ../..  
   
 echo running escript unit_tests  
 cd escript/test  
 ./unit_test-scons  
 if [ $? != 0 ]  
 then  
   echo escript unit_test failed  
   echo "escript unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
   FAIL=1  
 fi  
 cd ../..  
   
 echo running finley unit_tests  
 cd finley/test  
 ./unit_test-scons  
 if [ $? != 0 ]  
 then  
   echo finley unit_test failed  
   echo "finley unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
   FAIL=1  
72  fi  fi
 cd ../..  
73    
74  echo running esysUtils unit_tests  echo running unit_tests
75  cd esysUtils/test  scons debug=1 run_tests
 ./unit_test-scons  
76  if [ $? != 0 ]  if [ $? != 0 ]
77  then  then
78    echo esysUtils unit_test failed    echo unit_testing failed
79    echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
80    FAIL=1    FAIL=1
81  fi  fi
 cd ../..  
82    
83  for module in $TESTS  for module in $TESTS
84  do  do

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

  ViewVC Help
Powered by ViewVC 1.1.26