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

Annotation of /temp/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 346 - (hide annotations)
Tue Dec 13 05:31:48 2005 UTC (13 years, 4 months ago) by svn
Original Path: trunk/autotest-scons
File size: 4645 byte(s)
fix setting of working directory
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 346 #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 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 svn 346 echo cd $1
19     cd $1
20     if [ $? != 0 ]
21     then
22     echo couldnt cd $1
23     echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
24     exit 1
25     fi
26    
27 svn 344 PWD=`pwd`
28     echo working in: $PWD
29 jgs 321
30 jgs 318 # define compiler executable and library locations
31     export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
32     export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
33    
34 svn 344 # define python location
35     export PATH=/raid2/tools/python-2.3.4/bin:$PATH
36    
37     # set library and openmp settings
38     export LD_LIBRARY_PATH=$PWD/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH
39     export PYTHONPATH=$PWD
40     export OMP_SCHEDULE="dynamic"
41     export OMP_NUM_THREADS=4
42     export OMP_DYNAMIC=TRUE
43     export OMP_NESTED=FALSE
44    
45     FAIL=0
46    
47 svn 320 echo running svn update
48     svn update
49     if [ $? != 0 ]
50     then
51     echo svn update failed
52 svn 336 echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
53 svn 344 exit 2
54 svn 320 fi
55 jgs 319
56 svn 320 echo running scons debug=1
57     scons debug=1
58     if [ $? != 0 ]
59     then
60     echo scons failed
61 svn 336 echo "scons failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
62 svn 344 exit 3
63 svn 320 fi
64    
65 jgs 319 echo running bruce unit_tests
66     cd bruce/test
67 svn 320 ./unit_test-scons
68 jgs 318 if [ $? != 0 ]
69     then
70 jgs 319 echo bruce unit_test failed
71 svn 336 echo "bruce unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
72 svn 344 FAIL=1
73 jgs 318 fi
74 svn 320 cd ../..
75 jgs 318
76 jgs 319 echo running escript unit_tests
77     cd escript/test
78 svn 320 ./unit_test-scons
79 jgs 318 if [ $? != 0 ]
80     then
81 jgs 319 echo escript unit_test failed
82 svn 336 echo "escript unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
83 svn 344 FAIL=1
84 jgs 318 fi
85 svn 320 cd ../..
86 jgs 318
87 jgs 319 echo running finley unit_tests
88     cd finley/test
89 svn 320 ./unit_test-scons
90 jgs 319 if [ $? != 0 ]
91     then
92     echo finley unit_test failed
93 svn 336 echo "finley unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
94 svn 344 FAIL=1
95 jgs 319 fi
96 svn 320 cd ../..
97 jgs 318
98 svn 336 echo running esysUtils unit_tests
99     cd esysUtils/test
100     ./unit_test-scons
101     if [ $? != 0 ]
102     then
103     echo esysUtils unit_test failed
104     echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
105 svn 344 FAIL=1
106 svn 336 fi
107     cd ../..
108    
109 jgs 321 for module in $TESTS
110     do
111     echo "running python tests for: $module"
112     cd $module/test/python
113     if [ "$module" == "finley" ]
114     then
115     for pytest in $FINLEY_PYTESTS
116     do
117     echo "Running python test: $pytest"
118     python $pytest
119     if [ $? != 0 ]
120     then
121     echo Python Testing FAILED for $pytest in module $module
122 svn 344 echo "finley py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
123     FAIL=1
124 jgs 321 fi
125     done
126     elif [ "$module" == "escript" ]
127     then
128     for pytest in $ESCRIPT_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 svn 344 echo "escript py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
136     FAIL=1
137 jgs 321 fi
138     done
139     elif [ "$module" == "bruce" ]
140     then
141     for pytest in $BRUCE_PYTESTS
142     do
143     echo "Running python test: $pytest"
144     python $pytest
145     if [ $? != 0 ]
146     then
147     echo Python Testing FAILED for $pytest in module $module
148 svn 344 echo "bruce py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
149     FAIL=1
150 jgs 321 fi
151     done
152     fi
153 svn 330 cd ../../..
154 jgs 321 done
155 jgs 318
156 svn 344 if [ $FAIL == 0 ]
157     then
158     echo success
159     echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
160     fi
161 jgs 318 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26