/[escript]/branches/domexper/autotest-scons
ViewVC logotype

Diff of /branches/domexper/autotest-scons

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

revision 336 by svn, Thu Dec 8 23:34:44 2005 UTC revision 361 by jgs, Thu Dec 15 02:04:58 2005 UTC
# Line 3  Line 3 
3  # $Id: autotest-scons 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"
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    
   
 # 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 ]
# Line 30  then Line 24  then
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-scons 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  echo running svn update  # 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 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-scons 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 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 5    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  
 if [ $? != 0 ]  
 then  
   echo bruce unit_test failed  
   echo "bruce unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
   exit 6  
 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  
   exit 6  
 fi  
 cd ../..  
   
 echo running finley unit_tests  
 cd finley/test  
 ./unit_test-scons  
67  if [ $? != 0 ]  if [ $? != 0 ]
68  then  then
69    echo finley unit_test failed    echo  unit_test build failed
70    echo "finley 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    exit 6    exit 3
72  fi  fi
73  cd ../..  
74    echo running unit_tests
75  echo running esysUtils unit_tests  scons debug=1 run_tests
 cd esysUtils/test  
 ./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    exit 6    FAIL=1
81  fi  fi
 cd ../..  
   
 export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH  
 export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3  
 export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib  
 export PATH=/raid2/tools/python-2.3.4/bin:$PATH  
82    
83  for module in $TESTS  for module in $TESTS
84  do  do
# Line 119  do Line 93  do
93              if [ $? != 0 ]              if [ $? != 0 ]
94              then              then
95                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
96                echo "finley py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS                echo "finley py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
97                exit 1                FAIL=1
98              fi              fi
99          done          done
100      elif [ "$module" == "escript" ]      elif [ "$module" == "escript" ]
# Line 132  do Line 106  do
106              if [ $? != 0 ]              if [ $? != 0 ]
107              then              then
108                echo Python Testing FAILED for $pytest in module $module                echo Python Testing FAILED for $pytest in module $module
109                echo "escript py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS                echo "escript py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
110                exit 1                FAIL=1
111              fi              fi
112          done          done
113      elif [ "$module" == "bruce" ]      elif [ "$module" == "bruce" ]
# Line 145  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 "bruce py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS                echo "bruce py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
123                exit 1                FAIL=1
124              fi              fi
125          done          done
126      fi      fi
127      cd ../../..      cd ../../..
128  done  done
129    
130  echo success  if [ $FAIL == 0 ]
131  echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  then
132        echo success
133        echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
134    fi
135  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26