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

Annotation of /trunk/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 344 - (hide annotations)
Tue Dec 13 05:17:32 2005 UTC (13 years, 7 months ago) by svn
File size: 4606 byte(s)
now report name of python tests scripts which fail
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     # 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 svn 336 # modules to test
10 jgs 321 TESTS="escript bruce finley"
11    
12     # the python tests to run
13 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"
14     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"
15 jgs 321 BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
16    
17 svn 344 PWD=`pwd`
18     echo working in: $PWD
19 jgs 321
20 jgs 318 # define compiler executable and library locations
21     export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
22     export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
23    
24 svn 344 # define python location
25     export PATH=/raid2/tools/python-2.3.4/bin:$PATH
26    
27     # set library and openmp settings
28     export LD_LIBRARY_PATH=$PWD/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH
29     export PYTHONPATH=$PWD
30     export OMP_SCHEDULE="dynamic"
31     export OMP_NUM_THREADS=4
32     export OMP_DYNAMIC=TRUE
33     export OMP_NESTED=FALSE
34    
35     FAIL=0
36    
37 jgs 318 echo cd $1
38     cd $1
39     if [ $? != 0 ]
40     then
41     echo couldnt cd $1
42 svn 336 echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
43 jgs 318 exit 1
44     fi
45    
46 svn 320 echo running svn update
47     svn update
48     if [ $? != 0 ]
49     then
50     echo svn update failed
51 svn 336 echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
52 svn 344 exit 2
53 svn 320 fi
54 jgs 319
55 svn 320 echo running scons debug=1
56     scons debug=1
57     if [ $? != 0 ]
58     then
59     echo scons failed
60 svn 336 echo "scons failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
61 svn 344 exit 3
62 svn 320 fi
63    
64 jgs 319 echo running bruce unit_tests
65     cd bruce/test
66 svn 320 ./unit_test-scons
67 jgs 318 if [ $? != 0 ]
68     then
69 jgs 319 echo bruce unit_test failed
70 svn 336 echo "bruce unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
71 svn 344 FAIL=1
72 jgs 318 fi
73 svn 320 cd ../..
74 jgs 318
75 jgs 319 echo running escript unit_tests
76     cd escript/test
77 svn 320 ./unit_test-scons
78 jgs 318 if [ $? != 0 ]
79     then
80 jgs 319 echo escript unit_test failed
81 svn 336 echo "escript unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
82 svn 344 FAIL=1
83 jgs 318 fi
84 svn 320 cd ../..
85 jgs 318
86 jgs 319 echo running finley unit_tests
87     cd finley/test
88 svn 320 ./unit_test-scons
89 jgs 319 if [ $? != 0 ]
90     then
91     echo finley unit_test failed
92 svn 336 echo "finley unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
93 svn 344 FAIL=1
94 jgs 319 fi
95 svn 320 cd ../..
96 jgs 318
97 svn 336 echo running esysUtils unit_tests
98     cd esysUtils/test
99     ./unit_test-scons
100     if [ $? != 0 ]
101     then
102     echo esysUtils unit_test failed
103     echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
104 svn 344 FAIL=1
105 svn 336 fi
106     cd ../..
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 344 echo "finley py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
122     FAIL=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 344 echo "escript py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
135     FAIL=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 344 echo "bruce py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
148     FAIL=1
149 jgs 321 fi
150     done
151     fi
152 svn 330 cd ../../..
153 jgs 321 done
154 jgs 318
155 svn 344 if [ $FAIL == 0 ]
156     then
157     echo success
158     echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
159     fi
160 jgs 318 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26