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

Annotation of /temp/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 331 - (hide annotations)
Wed Dec 7 06:46:24 2005 UTC (13 years, 4 months ago) by svn
Original Path: trunk/autotest-scons
File size: 4330 byte(s)
fix list of mail recipients
1 jgs 318 #!/bin/bash
2    
3     # $Id: autotest 162 2005-11-11 00:09:59Z svn $
4     # An explicit testing script for esys using the scons build system
5    
6     # list of users to email test results to
7 svn 331 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 jgs 318
9 jgs 321 #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 svn 330 #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 jgs 321 BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
17    
18    
19 jgs 318 # define compiler executable and library locations
20     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
22    
23     echo cd $1
24     cd $1
25     if [ $? != 0 ]
26     then
27     echo couldnt cd $1
28     echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS
29     exit 1
30     fi
31    
32     echo loading esys setup
33     . ~jgs/bin/scons_setup
34     if [ $? != 0 ]
35     then
36     echo couldnt load scons setup
37     echo "couldnt load scons setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS
38     exit 2
39     fi
40    
41 svn 320 echo running svn update
42     svn update
43     if [ $? != 0 ]
44     then
45     echo svn update failed
46     echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
47     exit 3
48     fi
49 jgs 319
50 svn 320 echo running scons debug=1
51     scons debug=1
52     if [ $? != 0 ]
53     then
54     echo scons failed
55     echo "scons failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
56     exit 5
57     fi
58    
59 jgs 319 echo running bruce unit_tests
60     cd bruce/test
61 svn 320 ./unit_test-scons
62 jgs 318 if [ $? != 0 ]
63     then
64 jgs 319 echo bruce unit_test failed
65     echo "bruce unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
66     exit 6
67 jgs 318 fi
68 svn 320 cd ../..
69 jgs 318
70 jgs 319 echo running escript unit_tests
71     cd escript/test
72 svn 320 ./unit_test-scons
73 jgs 318 if [ $? != 0 ]
74     then
75 jgs 319 echo escript unit_test failed
76     echo "escript unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
77     exit 6
78 jgs 318 fi
79 svn 320 cd ../..
80 jgs 318
81 jgs 319 echo running finley unit_tests
82     cd finley/test
83 svn 320 ./unit_test-scons
84 jgs 319 if [ $? != 0 ]
85     then
86     echo finley unit_test failed
87     echo "finley unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
88     exit 6
89     fi
90 svn 320 cd ../..
91 jgs 318
92 svn 330 export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH
93     export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3
94     export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib
95     export PATH=/raid2/tools/python-2.3.4/bin:$PATH
96    
97 jgs 321 for module in $TESTS
98     do
99     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 svn 331 echo "finley py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
111 jgs 321 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 svn 331 echo "escript py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
124 jgs 321 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 svn 331 echo "bruce py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
137 jgs 321 exit 1
138     fi
139     done
140     fi
141 svn 330 cd ../../..
142 jgs 321 done
143 jgs 318
144     echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
145     exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26