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

Diff of /branches/windows_from_1456_trunk_1544_merged_in/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 331 by svn, Wed Dec 7 06:46:24 2005 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    
9    #modules to test
10    TESTS="escript bruce finley"
11    
12    # the python tests to run
13    FINLEY_PYTESTS="ImportTest.py SimpleSolve.py GradTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py test_symbolsOnFinley.py"
14    #ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py test_xml.py"
15    ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py newEscriptTests.py DataVariableTests.py"
16    BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py test_symbolsOnBruce.py"
17    
18    
19  # define compiler executable and library locations  # define compiler executable and library locations
20  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH  export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
21  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib  export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
# Line 46  then Line 56  then
56    exit 5    exit 5
57  fi  fi
58    
59  #echo running mk unit_test  echo running bruce unit_tests
60  #./mk unit_test  cd bruce/test
61  #if [ $? != 0 ]  ./unit_test-scons
62  #then  if [ $? != 0 ]
63  #  echo ./mk unit_test failed  then
64  #  echo "./mk unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS    echo bruce unit_test failed
65  #  exit 6    echo "bruce unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
66  #fi    exit 6
67    fi
68  #echo running mk py_test  cd ../..
69  #./mk py_test  
70  #if [ $? != 0 ]  echo running escript unit_tests
71  #then  cd escript/test
72  #  echo ./mk py_test failed  ./unit_test-scons
73  #  echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS  if [ $? != 0 ]
74  #  exit 7  then
75  #fi    echo escript unit_test failed
76      echo "escript unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
77      exit 6
78    fi
79    cd ../..
80    
81    echo running finley unit_tests
82    cd finley/test
83    ./unit_test-scons
84    if [ $? != 0 ]
85    then
86      echo finley unit_test failed
87      echo "finley unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
88      exit 6
89    fi
90    cd ../..
91    
92    export LD_LIBRARY_PATH=/raid2/tools/python-2.3.4/lib:$LD_LIBRARY_PATH
93    export PYTHON_INCLUDE=/raid2/tools/python-2.3.4/include/python2.3
94    export PYTHON_LIB_PATH=/raid2/tools/python-2.3.4/lib
95    export PATH=/raid2/tools/python-2.3.4/bin:$PATH
96    
97    for module in $TESTS
98    do
99        echo "running python tests for: $module"
100        cd $module/test/python
101        if [ "$module" == "finley" ]
102        then
103            for pytest in $FINLEY_PYTESTS
104            do
105                echo "Running python test: $pytest"
106                python $pytest
107                if [ $? != 0 ]
108                then
109                  echo Python Testing FAILED for $pytest in module $module
110                  echo "finley py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
111                  exit 1
112                fi
113            done
114        elif [ "$module" == "escript" ]
115        then
116            for pytest in $ESCRIPT_PYTESTS
117            do
118                echo "Running python test: $pytest"
119                python $pytest
120                if [ $? != 0 ]
121                then
122                  echo Python Testing FAILED for $pytest in module $module
123                  echo "escript py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
124                  exit 1
125                fi
126            done
127        elif [ "$module" == "bruce" ]
128        then
129            for pytest in $BRUCE_PYTESTS
130            do
131                echo "Running python test: $pytest"
132                python $pytest
133                if [ $? != 0 ]
134                then
135                  echo Python Testing FAILED for $pytest in module $module
136                  echo "bruce py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
137                  exit 1
138                fi
139            done
140        fi
141        cd ../../..
142    done
143    
144  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS  echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
145  exit 0  exit 0

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

  ViewVC Help
Powered by ViewVC 1.1.26