/[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 330 by svn, Wed Dec 7 06:31:27 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"
9    
10    #modules to test
11    TESTS="escript bruce finley"
12    
13    # 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"
15    #ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py test_xml.py"
16    ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py"
17    BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
18    
19    
20  # define compiler executable and library locations  # define compiler executable and library locations
21  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
# Line 28  then Line 39  then
39    exit 2    exit 2
40  fi  fi
41    
42  #echo running svn update  echo running svn update
43  #svn update  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 results" $MAIL_RECIPIENTS
48  #  exit 3    exit 3
49  #fi  fi
50  ##  
51  #echo running scons debug=1  echo running scons debug=1
52  #scons debug=1  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 logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
57  #  exit 5    exit 5
58  #fi  fi
59    
60  echo running bruce unit_tests  echo running bruce unit_tests
61  cd bruce/test  cd bruce/test
62  ./unit_test  ./unit_test-scons
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 logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
67    exit 6    exit 6
68  fi  fi
69  cd ..  cd ../..
70    
71  echo running escript unit_tests  echo running escript unit_tests
72  cd escript/test  cd escript/test
73  ./unit_test  ./unit_test-scons
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 logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
78    exit 6    exit 6
79  fi  fi
80  cd ..  cd ../..
81    
82  echo running finley unit_tests  echo running finley unit_tests
83  cd finley/test  cd finley/test
84  ./unit_test  ./unit_test-scons
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 logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
89    exit 6    exit 6
90  fi  fi
91  cd ..  cd ../..
92    
93  #echo running mk py_test  export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH
94  #./mk py_test  export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3
95  #if [ $? != 0 ]  export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib
96  #then  export PATH=/raid2/tools/python-2.3.4/bin:$PATH
97  #  echo ./mk py_test failed  
98  #  echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS  for module in $TESTS
99  #  exit 7  do
100  #fi      echo "running python tests for: $module"
101        cd $module/test/python
102        if [ "$module" == "finley" ]
103        then
104            for pytest in $FINLEY_PYTESTS
105            do
106                echo "Running python test: $pytest"
107                python $pytest
108                if [ $? != 0 ]
109                then
110                  echo Python Testing FAILED for $pytest in module $module
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                  exit 1
124                fi
125            done
126        elif [ "$module" == "bruce" ]
127        then
128            for pytest in $BRUCE_PYTESTS
129            do
130                echo "Running python test: $pytest"
131                python $pytest
132                if [ $? != 0 ]
133                then
134                  echo Python Testing FAILED for $pytest in module $module
135                  exit 1
136                fi
137            done
138        fi
139        cd ../../..
140    done
141    
142  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
143  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26