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

Annotation of /trunk/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 520 - (hide annotations)
Tue Feb 14 05:45:11 2006 UTC (13 years, 5 months ago) by gross
File size: 3388 byte(s)
obsolet
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 469 MAIL_RECIPIENTS="jgs@esscc.uq.edu.au gross@esscc.uq.edu.au elspeth@esscc.uq.edu.au matt@esscc.uq.edu.au"
8 jgs 318
9 jgs 321 # the python tests to run
10 jgs 365 BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
11 gross 520 ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py ArchiveTests.py newEscriptTests.py DataVariableTests.py test_xml.py insituTests.py s2.py"
12 gross 445 FINLEY_PYTESTS="ImportTest.py finleyTest.py SimpleSolve.py RecTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"
13 jgs 321
14 jgs 365 echo "===> cd $1"
15 svn 346 cd $1
16     if [ $? != 0 ]
17     then
18 jgs 365 echo "couldnt cd $1"
19 svn 346 echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
20     exit 1
21     fi
22    
23 svn 344 PWD=`pwd`
24 jgs 365 echo "===> working in: $PWD"
25 jgs 321
26 jgs 318 # define compiler executable and library locations
27     export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
28     export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
29    
30 svn 344 # define python location
31     export PATH=/raid2/tools/python-2.3.4/bin:$PATH
32    
33 jgs 470 # set library and python paths
34 svn 344 export LD_LIBRARY_PATH=$PWD/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH
35     export PYTHONPATH=$PWD
36 jgs 470
37     # set openmp settings
38 svn 344 export OMP_SCHEDULE="dynamic"
39     export OMP_NUM_THREADS=4
40     export OMP_DYNAMIC=TRUE
41     export OMP_NESTED=FALSE
42    
43 jgs 365 echo "===> svn update"
44 svn 320 svn update
45     if [ $? != 0 ]
46     then
47 jgs 365 echo "svn update failed"
48 svn 336 echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
49 svn 344 exit 2
50 svn 320 fi
51 jgs 319
52 jgs 365 echo "===> scons building esys"
53 svn 463 scons
54 svn 320 if [ $? != 0 ]
55     then
56 jgs 365 echo "scons build failed"
57     echo "scons build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
58 svn 344 exit 3
59 svn 320 fi
60    
61 jgs 365 echo "===> building unit_tests"
62 svn 463 scons build_tests
63 jgs 318 if [ $? != 0 ]
64     then
65 jgs 365 echo "unit_test build failed"
66     echo "unit_test build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
67 jgs 361 exit 3
68 jgs 318 fi
69    
70 jgs 365 FAIL=0
71    
72     echo "===> running unit_tests"
73 svn 463 scons run_tests
74 jgs 318 if [ $? != 0 ]
75     then
76 jgs 365 echo "unit_testing failed"
77     echo "unit_test failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
78 svn 344 FAIL=1
79 jgs 318 fi
80    
81 jgs 365 cd escript/test/python
82     for pytest in $ESCRIPT_PYTESTS
83 jgs 321 do
84 svn 366 echo "===>running escript python test: $pytest"
85 jgs 365 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 cd finley/test/python
96     for pytest in $FINLEY_PYTESTS
97     do
98 svn 366 echo "running finley python test: $pytest"
99 jgs 365 python $pytest
100     if [ $? != 0 ]
101     then
102     echo "python testing failed for $pytest in module $module"
103     echo "finley py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
104     FAIL=1
105     fi
106     done
107     cd ../../..
108    
109     cd bruce/test/python
110     for pytest in $BRUCE_PYTESTS
111     do
112 svn 366 echo "running bruce python test: $pytest"
113 jgs 365 python $pytest
114     if [ $? != 0 ]
115     then
116     echo "python testing failed for $pytest in module $module"
117     echo "bruce py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
118     FAIL=1
119     fi
120     done
121     cd ../../..
122    
123 svn 344 if [ $FAIL == 0 ]
124     then
125     echo success
126     echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
127     fi
128 jgs 318 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26