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

Diff of /trunk/autotest-scons

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

revision 344 by svn, Tue Dec 13 05:17:32 2005 UTC revision 463 by svn, Wed Jan 25 00:06:47 2006 UTC
# Line 6  Line 6 
6  # list of users to email test results to  # list of users to email test results to
7  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="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"
8    
 # modules to test  
 TESTS="escript bruce finley"  
   
9  # the python tests to run  # the python tests to run
 FINLEY_PYTESTS="ImportTest.py finleyTest.py SimpleSolve.py GradTest.py RecTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"  
 ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py ArchiveTests.py escriptTest.py newEscriptTests.py DataVariableTests.py test_xml.py"  
10  BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"  BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
11    ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py ArchiveTests.py newEscriptTests.py DataVariableTests.py test_xml.py insituTests.py pdetoolsTest.py s2.py"
12    FINLEY_PYTESTS="ImportTest.py finleyTest.py SimpleSolve.py RecTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"
13    
14    echo "===> cd $1"
15    cd $1
16    if [ $? != 0 ]
17    then
18      echo "couldnt cd $1"
19      echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
20      exit 1
21    fi
22    
23  PWD=`pwd`  PWD=`pwd`
24  echo working in: $PWD  echo "===> working in: $PWD"
25    
26  # define compiler executable and library locations  # define compiler executable and library locations
27  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
# Line 32  export OMP_NUM_THREADS=4 Line 38  export OMP_NUM_THREADS=4
38  export OMP_DYNAMIC=TRUE  export OMP_DYNAMIC=TRUE
39  export OMP_NESTED=FALSE  export OMP_NESTED=FALSE
40    
41  FAIL=0  echo "===> svn update"
   
 echo cd $1  
 cd $1  
 if [ $? != 0 ]  
 then  
   echo couldnt cd $1  
   echo "couldnt cd $1" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
   exit 1  
 fi  
   
 echo running svn update  
42  svn update  svn update
43  if [ $? != 0 ]  if [ $? != 0 ]
44  then  then
45    echo svn update failed    echo "svn update failed"
46    echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "svn update failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
47    exit 2    exit 2
48  fi  fi
49    
50  echo running scons debug=1  echo "===> scons building esys"
51  scons debug=1  scons
52  if [ $? != 0 ]  if [ $? != 0 ]
53  then  then
54    echo scons failed    echo "scons build failed"
55    echo "scons failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "scons build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
56    exit 3    exit 3
57  fi  fi
58    
59  echo running bruce unit_tests  echo "===> building unit_tests"
60  cd bruce/test  scons build_tests
 ./unit_test-scons  
61  if [ $? != 0 ]  if [ $? != 0 ]
62  then  then
63    echo bruce unit_test failed    echo "unit_test build failed"
64    echo "bruce unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "unit_test build failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
65    FAIL=1    exit 3
66  fi  fi
 cd ../..  
67    
68  echo running escript unit_tests  FAIL=0
 cd escript/test  
 ./unit_test-scons  
 if [ $? != 0 ]  
 then  
   echo escript unit_test failed  
   echo "escript unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
   FAIL=1  
 fi  
 cd ../..  
69    
70  echo running finley unit_tests  echo "===> running unit_tests"
71  cd finley/test  scons run_tests
 ./unit_test-scons  
72  if [ $? != 0 ]  if [ $? != 0 ]
73  then  then
74    echo finley unit_test failed    echo "unit_testing failed"
75    echo "finley unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    echo "unit_test failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
76    FAIL=1    FAIL=1
77  fi  fi
 cd ../..  
78    
79  echo running esysUtils unit_tests  cd escript/test/python
80  cd esysUtils/test  for pytest in $ESCRIPT_PYTESTS
81  ./unit_test-scons  do
82  if [ $? != 0 ]    echo "===>running escript python test: $pytest"
83  then    python $pytest
84    echo esysUtils unit_test failed    if [ $? != 0 ]
85    echo "esysUtils unit_test failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS    then
86    FAIL=1      echo "python testing failed for $pytest in module $module"
87  fi      echo "escript py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
88  cd ../..      FAIL=1
89      fi
90    done
91    cd ../../..
92    
93    cd finley/test/python
94    for pytest in $FINLEY_PYTESTS
95    do
96      echo "running finley python test: $pytest"
97      python $pytest
98      if [ $? != 0 ]
99      then
100        echo "python testing failed for $pytest in module $module"
101        echo "finley py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
102        FAIL=1
103      fi
104    done
105    cd ../../..
106    
107  for module in $TESTS  cd bruce/test/python
108    for pytest in $BRUCE_PYTESTS
109  do  do
110      echo "running python tests for: $module"    echo "running bruce python test: $pytest"
111      cd $module/test/python    python $pytest
112      if [ "$module" == "finley" ]    if [ $? != 0 ]
113      then    then
114          for pytest in $FINLEY_PYTESTS      echo "python testing failed for $pytest in module $module"
115          do      echo "bruce py_test: $pytest failed" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS
116              echo "Running python test: $pytest"      FAIL=1
117              python $pytest    fi
             if [ $? != 0 ]  
             then  
               echo Python Testing FAILED for $pytest in module $module  
               echo "finley py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
               FAIL=1  
             fi  
         done  
     elif [ "$module" == "escript" ]  
     then  
         for pytest in $ESCRIPT_PYTESTS  
         do  
             echo "Running python test: $pytest"  
             python $pytest  
             if [ $? != 0 ]  
             then  
               echo Python Testing FAILED for $pytest in module $module  
               echo "escript py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
               FAIL=1  
             fi  
         done  
     elif [ "$module" == "bruce" ]  
     then  
         for pytest in $BRUCE_PYTESTS  
         do  
             echo "Running python test: $pytest"  
             python $pytest  
             if [ $? != 0 ]  
             then  
               echo Python Testing FAILED for $pytest in module $module  
               echo "bruce py_test: $pytest failed - see autotest-scons logfile" | mail -s "esys autotest-scons results" $MAIL_RECIPIENTS  
               FAIL=1  
             fi  
         done  
     fi  
     cd ../../..  
118  done  done
119    cd ../../..
120    
121  if [ $FAIL == 0 ]  if [ $FAIL == 0 ]
122  then  then

Legend:
Removed from v.344  
changed lines
  Added in v.463

  ViewVC Help
Powered by ViewVC 1.1.26