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

Diff of /branches/arrexp_2137_win/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 720 by gross, Wed Apr 12 23:58:02 2006 UTC revision 721 by elspeth, Sat Apr 29 06:59:59 2006 UTC
# Line 12  Line 12 
12  # An explicit testing script for esys using the scons build system  # An explicit testing script for esys using the scons build system
13    
14  # list of users to email test results to  # list of users to email test results to
15  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"  # currently disabled during testing.
16    # 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"
17    MAIL_RECIPIENTS="elspeth@esscc.uq.edu.au"
18    
19  # the python tests to run  # the python tests to run
20  BRUCE_PYTESTS="ImportTest.passed BruceTest.passed test_utilOnBruce.py"  BRUCE_PYTESTS="ImportTest.passed BruceTest.passed test_utilOnBruce.py"
21  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"  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"
22  FINLEY_PYTESTS="ImportTest.passed finleyTest.passed SimpleSolve.passed RecTest.passed test_linearPDEsOnFinley.passed test_generators.passed test_visualization_interface.passed test_utilOnFinley.passed"  FINLEY_PYTESTS="ImportTest.passed finleyTest.passed SimpleSolve.passed RecTest.passed test_linearPDEsOnFinley.passed test_generators.passed test_visualization_interface.passed test_utilOnFinley.passed"
23    
24    # Changed slightly to cope with new script, so it doesn't stomp all over previous iterations
25    
26  echo "===> cd $1"  echo "===> cd $1"
27  cd $1  cd $1
28  if [ $? != 0 ]  if [ $? != 0 ]
# Line 28  then Line 32  then
32    exit 1    exit 1
33  fi  fi
34    
35    # this is for the automated script
36    echo "===> change up a directory"
37    cd ..
38    echo "===> make a sandbox and work in that"
39    mkdir sandbox
40    cd sandbox
41    
42  PWD=`pwd`  PWD=`pwd`
43  echo "===> working in: $PWD"  echo "===> working in: $PWD"
44    
45  # Setup the environment  # Setup the environment
46    echo "loading modules"
47  . ${MODULESHOME}/init/sh  . ${MODULESHOME}/init/sh
48  module load intel_cc.9.0.026  module load intel_cc.9.0.026
49  export MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6  export MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6
# Line 42  module load numarray/1.3.3 Line 54  module load numarray/1.3.3
54  # set openmp settings  # set openmp settings
55  export OMP_NUM_THREADS=4  export OMP_NUM_THREADS=4
56    
57  echo "===> svn update"  # doesn't appear to work - don't know why.
58  svn update  #echo "===> svn update"
59    #svn update
60    #if [ $? != 0 ]
61    #then
62    #  echo "svn update failed"
63    #  echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
64    #  exit 2
65    #fi
66    
67    # Need to test this bit yet.
68    echo "==> removing previous checkout"
69    rm -rf trunk/
70    ls
71    # This works - temporarily removed to speed up testing.
72    echo "==> svn checkout"
73    svn checkout svn+ssh://ess/esys13/trunk
74  if [ $? != 0 ]  if [ $? != 0 ]
75  then  then
76    echo "svn update failed"      echo "svn checkout failed"
77    echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS      echo "svn checkout failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
78    exit 2      exit 2
79  fi  fi
80    
81    echo "==> change to trunk"
82    ls trunk
83    cd trunk
84    
85    # This bit works. Commented out to speed up testing.
86  echo "===> scons building esys"  echo "===> scons building esys"
87  scons  scons
88  if [ $? != 0 ]  if [ $? != 0 ]
# Line 60  then Line 92  then
92    exit 3    exit 3
93  fi  fi
94    
95    # This bit works. Commented out to speed up testing.
96  echo "===> building unit_tests"  echo "===> building unit_tests"
97  scons build_all_tests  scons build_all_tests
98  if [ $? != 0 ]  if [ $? != 0 ]
# Line 71  fi Line 104  fi
104    
105  FAIL=0  FAIL=0
106    
107  echo "===> running unit_tests"  #echo "===> running all tests"
108  scons run_all_tests  #scons all_tests
109  if [ $? != 0 ]  if [ $? != 0 ]
110  then  then
111    echo "run_all_tests failed"    echo "all_tests failed"
112    echo "run_all_tests failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "all_tests failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
113    exit 4    exit 4
114  fi  fi

Legend:
Removed from v.720  
changed lines
  Added in v.721

  ViewVC Help
Powered by ViewVC 1.1.26