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

Diff of /trunk/autotest-scons

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

revision 318 by jgs, Tue Dec 6 02:25:26 2005 UTC revision 707 by gross, Wed Apr 12 23:58:02 2006 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    #          Copyright 2006 by ACcESS MNRF
3  # $Id: autotest 162 2005-11-11 00:09:59Z svn $  #
4    #              http://www.access.edu.au
5    #       Primary Business: Queensland, Australia
6    #  Licensed under the Open Software License version 3.0
7    #     http://www.opensource.org/licenses/osl-3.0.php
8    #
9    #
10    #
11    # $Id: autotest-scons 162 2005-11-11 00:09:59Z svn $
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="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"  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"
16    
17  # define compiler executable and library locations  # the python tests to run
18  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  BRUCE_PYTESTS="ImportTest.passed BruceTest.passed test_utilOnBruce.py"
19  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib  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"
20    FINLEY_PYTESTS="ImportTest.passed finleyTest.passed SimpleSolve.passed RecTest.passed test_linearPDEsOnFinley.passed test_generators.passed test_visualization_interface.passed test_utilOnFinley.passed"
21    
22  echo cd $1  echo "===> cd $1"
23  cd $1  cd $1
24  if [ $? != 0 ]  if [ $? != 0 ]
25  then  then
26    echo couldnt cd $1    echo "couldnt cd $1"
27    echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
28    exit 1    exit 1
29  fi  fi
30    
31  echo loading esys setup  PWD=`pwd`
32  . ~jgs/bin/scons_setup  echo "===> working in: $PWD"
33    
34    # Setup the environment
35    . ${MODULESHOME}/init/sh
36    module load intel_cc.9.0.026
37    export MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6
38    module load python/2.4.1
39    module load boost/1.33.0/python-2.4.1
40    module load numarray/1.3.3
41    
42    # set openmp settings
43    export OMP_NUM_THREADS=4
44    
45    echo "===> svn update"
46    svn update
47  if [ $? != 0 ]  if [ $? != 0 ]
48  then  then
49    echo couldnt load scons setup    echo "svn update failed"
50    echo "couldnt load scons setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
51    exit 2    exit 2
52  fi  fi
53    
54  echo running svn update  echo "===> scons building esys"
55  svn update  scons
56  if [ $? != 0 ]  if [ $? != 0 ]
57  then  then
58    echo svn update failed    echo "scons build failed"
59    echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "scons build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
60    exit 3    exit 3
61  fi  fi
62    
63  echo running scons debug=1  echo "===> building unit_tests"
64  scons debug=1  scons build_all_tests
65  if [ $? != 0 ]  if [ $? != 0 ]
66  then  then
67    echo scons failed    echo "build_tests failed"
68    echo "scons failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo "build_tests failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
69    exit 5    exit 3
70  fi  fi
71    
72  #echo running mk unit_test  FAIL=0
 #./mk unit_test  
 #if [ $? != 0 ]  
 #then  
 #  echo ./mk unit_test failed  
 #  echo "./mk unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS  
 #  exit 6  
 #fi  
   
 #echo running mk py_test  
 #./mk py_test  
 #if [ $? != 0 ]  
 #then  
 #  echo ./mk py_test failed  
 #  echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS  
 #  exit 7  
 #fi  
73    
74  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  echo "===> running unit_tests"
75  exit 0  scons run_all_tests
76    if [ $? != 0 ]
77    then
78      echo "run_all_tests failed"
79      echo "run_all_tests failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
80      exit 4
81    fi

Legend:
Removed from v.318  
changed lines
  Added in v.707

  ViewVC Help
Powered by ViewVC 1.1.26