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

Diff of /branches/arrexp_2137_win_merge/autotest-scons

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

revision 700 by gross, Thu Apr 6 00:13:40 2006 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    #
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 $  # $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    
# Line 27  echo "===> working in: $PWD" Line 35  echo "===> working in: $PWD"
35  . ${MODULESHOME}/init/sh  . ${MODULESHOME}/init/sh
36  module load intel_cc.9.0.026  module load intel_cc.9.0.026
37  export MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6  export MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6
 module load boost/1.33.0/python-2.4.1  
38  module load python/2.4.1  module load python/2.4.1
39    module load boost/1.33.0/python-2.4.1
40  module load numarray/1.3.3  module load numarray/1.3.3
41    
42  # set openmp settings  # set openmp settings
# Line 53  then Line 61  then
61  fi  fi
62    
63  echo "===> building unit_tests"  echo "===> building unit_tests"
64  scons build_tests  scons build_all_tests
65  if [ $? != 0 ]  if [ $? != 0 ]
66  then  then
67    echo "unit_test build failed"    echo "build_tests failed"
68    echo "unit_test build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "build_tests failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
69    exit 3    exit 3
70  fi  fi
71    
72  FAIL=0  FAIL=0
73    
74  echo "===> running unit_tests"  echo "===> running unit_tests"
75  scons run_tests  scons run_all_tests
76  if [ $? != 0 ]  if [ $? != 0 ]
77  then  then
78    echo "unit_testing failed"    echo "run_all_tests failed"
79    echo "unit_test failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "run_all_tests failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
80    FAIL=1    exit 4
 fi  
   
 exit  
 for pytest in $ESCRIPT_PYTESTS  
 do  
   echo "===>running escript python test: $pytest"  
   scons build/posix/escript/test/python/$pytest  
   if [ $? != 0 ]  
   then  
     echo "python testing failed for $pytest in module $module"  
     echo "escript py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
     FAIL=1  
   fi  
 done  
   
 for pytest in $FINLEY_PYTESTS  
 do  
   echo "running finley python test: $pytest"  
   scons build/posix/finley/test/python/$pytest  
   if [ $? != 0 ]  
   then  
     echo "python testing failed for $pytest in module $module"  
     echo "finley py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
     FAIL=1  
   fi  
 done  
   
 for pytest in $BRUCE_PYTESTS  
 do  
   echo "running bruce python test: $pytest"  
   scons build/posix/bruce/test/python/$pytest  
   if [ $? != 0 ]  
   then  
     echo "python testing failed for $pytest in module $module"  
     echo "bruce py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
     FAIL=1  
   fi  
 done  
   
 if [ $FAIL == 0 ]  
 then  
     echo success  
     echo "success" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
81  fi  fi
 exit 0  

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

  ViewVC Help
Powered by ViewVC 1.1.26