/[escript]/branches/escript3047_with_pastix2995/autotest-scons
ViewVC logotype

Annotation of /branches/escript3047_with_pastix2995/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 683 - (hide annotations)
Mon Mar 27 05:46:50 2006 UTC (13 years, 1 month ago) by robwdcock
Original Path: trunk/autotest-scons
File size: 3287 byte(s)
+ autotest-scons now uses the new build system and launches tests via
scons so it gets the correct environment.

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 679 MAIL_RECIPIENTS="gross@esscc.uq.edu.au elspeth@esscc.uq.edu.au matt@esscc.uq.edu.au robert.woodcock@csiro.au Peter.Hornby@csiro.au"
8 jgs 318
9 jgs 321 # the python tests to run
10 robwdcock 683 BRUCE_PYTESTS="ImportTest.passed BruceTest.passed test_utilOnBruce.py"
11     ESCRIPT_PYTESTS="ImportTest.passed BinaryOps.passed UnaryOps.passed SliceGetting.passed SliceSetting.passed MiscTests.passed ArchiveTests.passed newEscriptTests.passed test_xml.passed insituTests.passed s2.passed"
12     FINLEY_PYTESTS="ImportTest.passed finleyTest.passed SimpleSolve.passed RecTest.passed test_linearPDEsOnFinley.passed test_generators.passed test_visualization_interface.passed test_utilOnFinley.passed"
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 robwdcock 683 # Setup the environment
27     . ${MODULESHOME}/init/sh
28     module load intel_cc.9.0.026
29     export MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6
30     module load boost/1.33.0/python-2.4.1
31     module load python/2.4.1
32     module load numarray/1.3.3
33 jgs 318
34 jgs 470 # set openmp settings
35 svn 344 export OMP_SCHEDULE="dynamic"
36     export OMP_NUM_THREADS=4
37     export OMP_DYNAMIC=TRUE
38     export OMP_NESTED=FALSE
39    
40 jgs 365 echo "===> svn update"
41 svn 320 svn update
42     if [ $? != 0 ]
43     then
44 jgs 365 echo "svn update failed"
45 svn 336 echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
46 svn 344 exit 2
47 svn 320 fi
48 jgs 319
49 jgs 365 echo "===> scons building esys"
50 svn 463 scons
51 svn 320 if [ $? != 0 ]
52     then
53 jgs 365 echo "scons build failed"
54     echo "scons build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
55 svn 344 exit 3
56 svn 320 fi
57    
58 jgs 365 echo "===> building unit_tests"
59 svn 463 scons build_tests
60 jgs 318 if [ $? != 0 ]
61     then
62 jgs 365 echo "unit_test build failed"
63     echo "unit_test build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
64 jgs 361 exit 3
65 jgs 318 fi
66    
67 jgs 365 FAIL=0
68    
69     echo "===> running unit_tests"
70 svn 463 scons run_tests
71 jgs 318 if [ $? != 0 ]
72     then
73 jgs 365 echo "unit_testing failed"
74     echo "unit_test failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
75 svn 344 FAIL=1
76 jgs 318 fi
77    
78 jgs 365 for pytest in $ESCRIPT_PYTESTS
79 jgs 321 do
80 svn 366 echo "===>running escript python test: $pytest"
81 robwdcock 683 scons build/posix/escript/test/python/$pytest
82 jgs 365 if [ $? != 0 ]
83     then
84     echo "python testing failed for $pytest in module $module"
85     echo "escript py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
86     FAIL=1
87     fi
88 jgs 321 done
89 jgs 318
90 jgs 365 for pytest in $FINLEY_PYTESTS
91     do
92 svn 366 echo "running finley python test: $pytest"
93 robwdcock 683 scons build/posix/finley/test/python/$pytest
94 jgs 365 if [ $? != 0 ]
95     then
96     echo "python testing failed for $pytest in module $module"
97     echo "finley py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
98     FAIL=1
99     fi
100     done
101    
102     for pytest in $BRUCE_PYTESTS
103     do
104 svn 366 echo "running bruce python test: $pytest"
105 robwdcock 683 scons build/posix/bruce/test/python/$pytest
106 jgs 365 if [ $? != 0 ]
107     then
108     echo "python testing failed for $pytest in module $module"
109     echo "bruce py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
110     FAIL=1
111     fi
112     done
113    
114 svn 344 if [ $FAIL == 0 ]
115     then
116     echo success
117     echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
118     fi
119 jgs 318 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26