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

Annotation of /trunk/autotest-scons

Parent Directory Parent Directory | Revision Log Revision Log


Revision 319 - (hide annotations)
Tue Dec 6 04:25:37 2005 UTC (13 years, 9 months ago) by jgs
File size: 2182 byte(s)
temporary unit tests scripts
1 jgs 318 #!/bin/bash
2    
3     # $Id: autotest 162 2005-11-11 00:09:59Z svn $
4     # An explicit testing script for esys using the scons build system
5    
6     # 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"
8    
9     # define compiler executable and library locations
10     export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH
11     export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib
12    
13     echo cd $1
14     cd $1
15     if [ $? != 0 ]
16     then
17     echo couldnt cd $1
18     echo "couldnt cd $1" | mail -s "esys autotest results" $MAIL_RECIPIENTS
19     exit 1
20     fi
21    
22     echo loading esys setup
23     . ~jgs/bin/scons_setup
24     if [ $? != 0 ]
25     then
26     echo couldnt load scons setup
27     echo "couldnt load scons setup" | mail -s "esys autotest results" $MAIL_RECIPIENTS
28     exit 2
29     fi
30    
31 jgs 319 #echo running svn update
32     #svn update
33     #if [ $? != 0 ]
34     #then
35     # echo svn update failed
36     # echo "svn update failed" | mail -s "esys autotest results" $MAIL_RECIPIENTS
37     # exit 3
38     #fi
39     ##
40     #echo running scons debug=1
41     #scons debug=1
42     #if [ $? != 0 ]
43     #then
44     # echo scons failed
45     # echo "scons failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
46     # exit 5
47     #fi
48    
49     echo running bruce unit_tests
50     cd bruce/test
51     ./unit_test
52 jgs 318 if [ $? != 0 ]
53     then
54 jgs 319 echo bruce unit_test failed
55     echo "bruce unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
56     exit 6
57 jgs 318 fi
58 jgs 319 cd ..
59 jgs 318
60 jgs 319 echo running escript unit_tests
61     cd escript/test
62     ./unit_test
63 jgs 318 if [ $? != 0 ]
64     then
65 jgs 319 echo escript unit_test failed
66     echo "escript unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
67     exit 6
68 jgs 318 fi
69 jgs 319 cd ..
70 jgs 318
71 jgs 319 echo running finley unit_tests
72     cd finley/test
73     ./unit_test
74     if [ $? != 0 ]
75     then
76     echo finley unit_test failed
77     echo "finley unit_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
78     exit 6
79     fi
80     cd ..
81 jgs 318
82     #echo running mk py_test
83     #./mk py_test
84     #if [ $? != 0 ]
85     #then
86     # echo ./mk py_test failed
87     # echo "./mk py_test failed - see autotest logfile" | mail -s "esys autotest results" $MAIL_RECIPIENTS
88     # exit 7
89     #fi
90    
91     echo "success" | mail -s "esys autotest results" $MAIL_RECIPIENTS
92     exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26