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

Annotation of /trunk/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 365 - (hide annotations)
Thu Dec 15 05:00:05 2005 UTC (13 years, 4 months ago) by jgs
File size: 3569 byte(s)
formatting changes
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 jgs 365 #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 jgs 321 # the python tests to run
11 jgs 365 BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
12     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"
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 jgs 321
15 jgs 365 echo "===> cd $1"
16 svn 346 cd $1
17     if [ $? != 0 ]
18     then
19 jgs 365 echo "couldnt cd $1"
20 svn 346 echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
21     exit 1
22     fi
23    
24 svn 344 PWD=`pwd`
25 jgs 365 echo "===> working in: $PWD"
26 jgs 321
27 jgs 318 # define compiler executable and library locations
28     export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
29     export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
30    
31 svn 344 # define python location
32     export PATH=/raid2/tools/python-2.3.4/bin:$PATH
33    
34     # set library and openmp settings
35     export LD_LIBRARY_PATH=$PWD/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH
36     export PYTHONPATH=$PWD
37     export OMP_SCHEDULE="dynamic"
38     export OMP_NUM_THREADS=4
39     export OMP_DYNAMIC=TRUE
40     export OMP_NESTED=FALSE
41    
42 jgs 365 echo "===> svn update"
43 svn 320 svn update
44     if [ $? != 0 ]
45     then
46 jgs 365 echo "svn update failed"
47 svn 336 echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
48 svn 344 exit 2
49 svn 320 fi
50 jgs 319
51 jgs 365 echo "===> scons building esys"
52 svn 320 scons debug=1
53     if [ $? != 0 ]
54     then
55 jgs 365 echo "scons build failed"
56     echo "scons build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
57 svn 344 exit 3
58 svn 320 fi
59    
60 jgs 365 echo "===> building unit_tests"
61 jgs 361 scons debug=1 build_tests
62 jgs 318 if [ $? != 0 ]
63     then
64 jgs 365 echo "unit_test build failed"
65     echo "unit_test build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
66 jgs 361 exit 3
67 jgs 318 fi
68    
69 jgs 365 FAIL=0
70    
71     echo "===> running unit_tests"
72 jgs 361 scons debug=1 run_tests
73 jgs 318 if [ $? != 0 ]
74     then
75 jgs 365 echo "unit_testing failed"
76     echo "unit_test failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
77 svn 344 FAIL=1
78 jgs 318 fi
79    
80 jgs 365 echo "===> running python tests for escript"
81     cd escript/test/python
82     for pytest in $ESCRIPT_PYTESTS
83 jgs 321 do
84 jgs 365 echo "running python test: $pytest"
85     python $pytest
86     if [ $? != 0 ]
87     then
88     echo "python testing failed for $pytest in module $module"
89     echo "escript py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
90     FAIL=1
91     fi
92 jgs 321 done
93 jgs 365 cd ../../..
94 jgs 318
95 jgs 365 echo "===> running python tests for finley"
96     cd finley/test/python
97     for pytest in $FINLEY_PYTESTS
98     do
99     echo "running python test: $pytest"
100     python $pytest
101     if [ $? != 0 ]
102     then
103     echo "python testing failed for $pytest in module $module"
104     echo "finley py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
105     FAIL=1
106     fi
107     done
108     cd ../../..
109    
110     echo "===> running python tests for bruce"
111     cd bruce/test/python
112     for pytest in $BRUCE_PYTESTS
113     do
114     echo "running python test: $pytest"
115     python $pytest
116     if [ $? != 0 ]
117     then
118     echo "python testing failed for $pytest in module $module"
119     echo "bruce py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
120     FAIL=1
121     fi
122     done
123     cd ../../..
124    
125 svn 344 if [ $FAIL == 0 ]
126     then
127     echo success
128     echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
129     fi
130 jgs 318 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26