7 |
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" |
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" |
8 |
|
|
9 |
# the python tests to run |
# the python tests to run |
10 |
BRUCE_PYTESTS="ImportTest.py BruceTest.py test_utilOnBruce.py" |
BRUCE_PYTESTS="ImportTest.passed BruceTest.passed test_utilOnBruce.py" |
11 |
ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py ArchiveTests.py newEscriptTests.py test_xml.py insituTests.py s2.py" |
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" |
12 |
FINLEY_PYTESTS="ImportTest.py finleyTest.py SimpleSolve.py RecTest.py test_linearPDEsOnFinley.py test_generators.py test_visualization_interface.py test_utilOnFinley.py" |
FINLEY_PYTESTS="ImportTest.passed finleyTest.passed SimpleSolve.passed RecTest.passed test_linearPDEsOnFinley.passed test_generators.passed test_visualization_interface.passed test_utilOnFinley.passed" |
13 |
|
|
14 |
echo "===> cd $1" |
echo "===> cd $1" |
15 |
cd $1 |
cd $1 |
23 |
PWD=`pwd` |
PWD=`pwd` |
24 |
echo "===> working in: $PWD" |
echo "===> working in: $PWD" |
25 |
|
|
26 |
# define compiler executable and library locations |
# Setup the environment |
27 |
export PATH=/opt/intel/cmplrs/80.058/intel_cc_80/bin:$PATH |
. ${MODULESHOME}/init/sh |
28 |
export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib |
module load intel_cc.9.0.026 |
29 |
|
export MODULEPATH=${MODULEPATH}:/data/raid2/toolspp4/modulefiles/gcc-3.3.6 |
30 |
# define python location |
module load boost/1.33.0/python-2.4.1 |
31 |
export PATH=/raid2/tools/python-2.3.4/bin:$PATH |
module load python/2.4.1 |
32 |
|
module load numarray/1.3.3 |
|
# set library and python paths |
|
|
export LD_LIBRARY_PATH=$PWD/lib:/raid2/tools/boost/lib:$LD_LIBRARY_PATH |
|
|
export PYTHONPATH=$PWD |
|
33 |
|
|
34 |
# set openmp settings |
# set openmp settings |
35 |
export OMP_SCHEDULE="dynamic" |
export OMP_SCHEDULE="dynamic" |
75 |
FAIL=1 |
FAIL=1 |
76 |
fi |
fi |
77 |
|
|
|
cd escript/test/python |
|
78 |
for pytest in $ESCRIPT_PYTESTS |
for pytest in $ESCRIPT_PYTESTS |
79 |
do |
do |
80 |
echo "===>running escript python test: $pytest" |
echo "===>running escript python test: $pytest" |
81 |
python $pytest |
scons build/posix/escript/test/python/$pytest |
82 |
if [ $? != 0 ] |
if [ $? != 0 ] |
83 |
then |
then |
84 |
echo "python testing failed for $pytest in module $module" |
echo "python testing failed for $pytest in module $module" |
86 |
FAIL=1 |
FAIL=1 |
87 |
fi |
fi |
88 |
done |
done |
|
cd ../../.. |
|
89 |
|
|
|
cd finley/test/python |
|
90 |
for pytest in $FINLEY_PYTESTS |
for pytest in $FINLEY_PYTESTS |
91 |
do |
do |
92 |
echo "running finley python test: $pytest" |
echo "running finley python test: $pytest" |
93 |
python $pytest |
scons build/posix/finley/test/python/$pytest |
94 |
if [ $? != 0 ] |
if [ $? != 0 ] |
95 |
then |
then |
96 |
echo "python testing failed for $pytest in module $module" |
echo "python testing failed for $pytest in module $module" |
98 |
FAIL=1 |
FAIL=1 |
99 |
fi |
fi |
100 |
done |
done |
|
cd ../../.. |
|
101 |
|
|
|
cd bruce/test/python |
|
102 |
for pytest in $BRUCE_PYTESTS |
for pytest in $BRUCE_PYTESTS |
103 |
do |
do |
104 |
echo "running bruce python test: $pytest" |
echo "running bruce python test: $pytest" |
105 |
python $pytest |
scons build/posix/bruce/test/python/$pytest |
106 |
if [ $? != 0 ] |
if [ $? != 0 ] |
107 |
then |
then |
108 |
echo "python testing failed for $pytest in module $module" |
echo "python testing failed for $pytest in module $module" |
110 |
FAIL=1 |
FAIL=1 |
111 |
fi |
fi |
112 |
done |
done |
|
cd ../../.. |
|
113 |
|
|
114 |
if [ $FAIL == 0 ] |
if [ $FAIL == 0 ] |
115 |
then |
then |