4 |
# An explicit testing script for esys using the scons build system |
# An explicit testing script for esys using the scons build system |
5 |
|
|
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" |
|
MAIL_RECIPIENTS="jgs@esscc.uq.edu.au" |
|
8 |
|
|
9 |
# the python tests to run |
# the python tests to run |
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 escriptTest.py newEscriptTests.py DataVariableTests.py test_xml.py" |
ESCRIPT_PYTESTS="ImportTest.py BinaryOps.py UnaryOps.py SliceGetting.py SliceSetting.py MiscTests.py ArchiveTests.py newEscriptTests.py DataVariableTests.py test_xml.py" |
12 |
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" |
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" |
13 |
|
|
14 |
echo "===> cd $1" |
echo "===> cd $1" |
76 |
FAIL=1 |
FAIL=1 |
77 |
fi |
fi |
78 |
|
|
|
echo "===> running python tests for escript" |
|
79 |
cd escript/test/python |
cd escript/test/python |
80 |
for pytest in $ESCRIPT_PYTESTS |
for pytest in $ESCRIPT_PYTESTS |
81 |
do |
do |
82 |
echo "running python test: $pytest" |
echo "===>running escript python test: $pytest" |
83 |
python $pytest |
python $pytest |
84 |
if [ $? != 0 ] |
if [ $? != 0 ] |
85 |
then |
then |
90 |
done |
done |
91 |
cd ../../.. |
cd ../../.. |
92 |
|
|
|
echo "===> running python tests for finley" |
|
93 |
cd finley/test/python |
cd finley/test/python |
94 |
for pytest in $FINLEY_PYTESTS |
for pytest in $FINLEY_PYTESTS |
95 |
do |
do |
96 |
echo "running python test: $pytest" |
echo "running finley python test: $pytest" |
97 |
python $pytest |
python $pytest |
98 |
if [ $? != 0 ] |
if [ $? != 0 ] |
99 |
then |
then |
104 |
done |
done |
105 |
cd ../../.. |
cd ../../.. |
106 |
|
|
|
echo "===> running python tests for bruce" |
|
107 |
cd bruce/test/python |
cd bruce/test/python |
108 |
for pytest in $BRUCE_PYTESTS |
for pytest in $BRUCE_PYTESTS |
109 |
do |
do |
110 |
echo "running python test: $pytest" |
echo "running bruce python test: $pytest" |
111 |
python $pytest |
python $pytest |
112 |
if [ $? != 0 ] |
if [ $? != 0 ] |
113 |
then |
then |