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

Annotation of /trunk/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 339 - (hide annotations)
Mon Dec 12 04:22:19 2005 UTC (13 years, 4 months ago) by jgs
File size: 4647 byte(s)
add extra tests to list of python tests to run
keep going with tests even once one test fails

1 jgs 318 #!/bin/bash
2    
3 svn 336 # $Id: autotest-scons 162 2005-11-11 00:09:59Z svn $
4 jgs 318 # An explicit testing script for esys using the scons build system
5    
6 svn 336
7 jgs 318 # list of users to email test results to
8 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"
9 jgs 318
10 svn 336 # modules to test
11 jgs 321 TESTS="escript bruce finley"
12    
13     # the python tests to run
14 jgs 339 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 ArchiveTests.py escriptTest.py newEscriptTests.py DataVariableTests.py test_xml.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 svn 336 echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
29 jgs 318 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 svn 336 echo "couldnt load scons setup" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
38 jgs 318 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 svn 336 echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
47 svn 320 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 svn 336 echo "scons failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
56 svn 320 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 svn 336 echo "bruce unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
66 jgs 339 #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 svn 336 echo "escript unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
77 jgs 339 #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 svn 336 echo "finley unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
88 jgs 339 #exit 6
89 jgs 319 fi
90 svn 320 cd ../..
91 jgs 318
92 svn 336 echo running esysUtils unit_tests
93     cd esysUtils/test
94     ./unit_test-scons
95     if [ $? != 0 ]
96     then
97     echo esysUtils unit_test failed
98     echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
99 jgs 339 #exit 6
100 svn 336 fi
101     cd ../..
102    
103 svn 330 export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH
104     export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3
105     export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib
106     export PATH=/raid2/tools/python-2.3.4/bin:$PATH
107    
108 jgs 321 for module in $TESTS
109     do
110     echo "running python tests for: $module"
111     cd $module/test/python
112     if [ "$module" == "finley" ]
113     then
114     for pytest in $FINLEY_PYTESTS
115     do
116     echo "Running python test: $pytest"
117     python $pytest
118     if [ $? != 0 ]
119     then
120     echo Python Testing FAILED for $pytest in module $module
121 svn 336 echo "finley py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
122 jgs 339 #exit 1
123 jgs 321 fi
124     done
125     elif [ "$module" == "escript" ]
126     then
127     for pytest in $ESCRIPT_PYTESTS
128     do
129     echo "Running python test: $pytest"
130     python $pytest
131     if [ $? != 0 ]
132     then
133     echo Python Testing FAILED for $pytest in module $module
134 svn 336 echo "escript py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
135 jgs 339 #exit 1
136 jgs 321 fi
137     done
138     elif [ "$module" == "bruce" ]
139     then
140     for pytest in $BRUCE_PYTESTS
141     do
142     echo "Running python test: $pytest"
143     python $pytest
144     if [ $? != 0 ]
145     then
146     echo Python Testing FAILED for $pytest in module $module
147 svn 336 echo "bruce py_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
148 jgs 339 #exit 1
149 jgs 321 fi
150     done
151     fi
152 svn 330 cd ../../..
153 jgs 321 done
154 jgs 318
155 svn 336 echo success
156     echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
157 jgs 318 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26