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

Annotation of /branches/windows_from_1456_trunk_1544_merged_in_old/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 700 - (hide annotations)
Thu Apr 6 00:13:40 2006 UTC (13 years, 5 months ago) by gross
Original Path: trunk/autotest-scons
File size: 3214 byte(s)
A few changes in the build mechanism and the file structure so scons can build release tar files:

  * paso/src/Solver has been moved to paso/src 
  * all test_.py are now run_.py files and are assumed to be passing python tests. they can run by 
    scons py_tests and are part of the release test set
  * escript/py_src/test_ are moved to escript/test/python and are installed in to the build directory 
    (rather then the PYTHONPATH).
  * all py files in test/python which don't start with run_ or test_ are now 'local_py_tests'. they are installed i
    by not run automatically.
  * CppUnitTest is now treated as a escript module (against previous decisions).
  * scons realse builds nor tar/zip files with relvant source code (src and tests in seperate files)

the python tests don't pass yet due to path problems.


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_NUM_THREADS=4
36    
37 jgs 365 echo "===> svn update"
38 svn 320 svn update
39     if [ $? != 0 ]
40     then
41 jgs 365 echo "svn update failed"
42 svn 336 echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
43 svn 344 exit 2
44 svn 320 fi
45 jgs 319
46 jgs 365 echo "===> scons building esys"
47 svn 463 scons
48 svn 320 if [ $? != 0 ]
49     then
50 jgs 365 echo "scons build failed"
51     echo "scons build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
52 svn 344 exit 3
53 svn 320 fi
54    
55 jgs 365 echo "===> building unit_tests"
56 svn 463 scons build_tests
57 jgs 318 if [ $? != 0 ]
58     then
59 jgs 365 echo "unit_test build failed"
60     echo "unit_test build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
61 jgs 361 exit 3
62 jgs 318 fi
63    
64 jgs 365 FAIL=0
65    
66     echo "===> running unit_tests"
67 svn 463 scons run_tests
68 jgs 318 if [ $? != 0 ]
69     then
70 jgs 365 echo "unit_testing failed"
71     echo "unit_test failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
72 svn 344 FAIL=1
73 jgs 318 fi
74    
75 gross 700 exit
76 jgs 365 for pytest in $ESCRIPT_PYTESTS
77 jgs 321 do
78 svn 366 echo "===>running escript python test: $pytest"
79 robwdcock 683 scons build/posix/escript/test/python/$pytest
80 jgs 365 if [ $? != 0 ]
81     then
82     echo "python testing failed for $pytest in module $module"
83     echo "escript py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
84     FAIL=1
85     fi
86 jgs 321 done
87 jgs 318
88 jgs 365 for pytest in $FINLEY_PYTESTS
89     do
90 svn 366 echo "running finley python test: $pytest"
91 robwdcock 683 scons build/posix/finley/test/python/$pytest
92 jgs 365 if [ $? != 0 ]
93     then
94     echo "python testing failed for $pytest in module $module"
95     echo "finley py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
96     FAIL=1
97     fi
98     done
99    
100     for pytest in $BRUCE_PYTESTS
101     do
102 svn 366 echo "running bruce python test: $pytest"
103 robwdcock 683 scons build/posix/bruce/test/python/$pytest
104 jgs 365 if [ $? != 0 ]
105     then
106     echo "python testing failed for $pytest in module $module"
107     echo "bruce py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
108     FAIL=1
109     fi
110     done
111    
112 svn 344 if [ $FAIL == 0 ]
113     then
114     echo success
115     echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
116     fi
117 jgs 318 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26