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

Diff of /trunk/autotest-scons

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

revision 319 by jgs, Tue Dec 6 04:25:37 2005 UTC revision 331 by svn, Wed Dec 7 06:46:24 2005 UTC
# Line 6  Line 6 
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    
9    #modules to test
10    TESTS="escript bruce finley"
11    
12    # the python tests to run
13    FINLEY_PYTESTS="ImportTest.py SimpleSolve.py GradTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"
14    #ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py test_xml.py"
15    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"
17    
18    
19  # define compiler executable and library locations  # define compiler executable and library locations
20  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
21  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
# Line 28  then Line 38  then
38    exit 2    exit 2
39  fi  fi
40    
41  #echo running svn update  echo running svn update
42  #svn update  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 results" $MAIL_RECIPIENTS
47  #  exit 3    exit 3
48  #fi  fi
49  ##  
50  #echo running scons debug=1  echo running scons debug=1
51  #scons debug=1  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 logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
56  #  exit 5    exit 5
57  #fi  fi
58    
59  echo running bruce unit_tests  echo running bruce unit_tests
60  cd bruce/test  cd bruce/test
61  ./unit_test  ./unit_test-scons
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 logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
66    exit 6    exit 6
67  fi  fi
68  cd ..  cd ../..
69    
70  echo running escript unit_tests  echo running escript unit_tests
71  cd escript/test  cd escript/test
72  ./unit_test  ./unit_test-scons
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 logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
77    exit 6    exit 6
78  fi  fi
79  cd ..  cd ../..
80    
81  echo running finley unit_tests  echo running finley unit_tests
82  cd finley/test  cd finley/test
83  ./unit_test  ./unit_test-scons
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 logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
88    exit 6    exit 6
89  fi  fi
90  cd ..  cd ../..
91    
92  #echo running mk py_test  export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH
93  #./mk py_test  export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3
94  #if [ $? != 0 ]  export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib
95  #then  export PATH=/raid2/tools/python-2.3.4/bin:$PATH
96  #  echo ./mk py_test failed  
97  #  echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS  for module in $TESTS
98  #  exit 7  do
99  #fi      echo "running python tests for: $module"
100        cd $module/test/python
101        if [ "$module" == "finley" ]
102        then
103            for pytest in $FINLEY_PYTESTS
104            do
105                echo "Running python test: $pytest"
106                python $pytest
107                if [ $? != 0 ]
108                then
109                  echo Python Testing FAILED for $pytest in module $module
110                  echo "finley py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
111                  exit 1
112                fi
113            done
114        elif [ "$module" == "escript" ]
115        then
116            for pytest in $ESCRIPT_PYTESTS
117            do
118                echo "Running python test: $pytest"
119                python $pytest
120                if [ $? != 0 ]
121                then
122                  echo Python Testing FAILED for $pytest in module $module
123                  echo "escript py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
124                  exit 1
125                fi
126            done
127        elif [ "$module" == "bruce" ]
128        then
129            for pytest in $BRUCE_PYTESTS
130            do
131                echo "Running python test: $pytest"
132                python $pytest
133                if [ $? != 0 ]
134                then
135                  echo Python Testing FAILED for $pytest in module $module
136                  echo "bruce py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
137                  exit 1
138                fi
139            done
140        fi
141        cd ../../..
142    done
143    
144  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
145  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26