Commit 8d704d61 authored by James Willis's avatar James Willis
Browse files

Make sure that bash script creates a FAIL in Jenkins.

parent e5e905bd
...@@ -71,9 +71,29 @@ cd examples/SedovBlast_3D/ ...@@ -71,9 +71,29 @@ cd examples/SedovBlast_3D/
mv sedov_0000.hdf5 sedov_vec.hdf5 mv sedov_0000.hdf5 sedov_vec.hdf5
# Compare outputs # Compare outputs
python ../check_ngbs.py sedov_naive.hdf5 sedov_serial.hdf5 if python ../check_ngbs.py sedov_naive.hdf5 sedov_serial.hdf5
python ../check_ngbs.py sedov_naive.hdf5 sedov_vec.hdf5 then
python ../check_ngbs.py sedov_serial.hdf5 sedov_vec.hdf5 echo "SedovBlast_3D comparison between naive and serial passed"
else
echo "SedovBlast_3D comparison between naive and serial failed"
exit 1
fi
if python ../check_ngbs.py sedov_naive.hdf5 sedov_vec.hdf5
then
echo "SedovBlast_3D comparison between naive and vectorised passed"
else
echo "SedovBlast_3D comparison between naive and vectorised failed"
exit 1
fi
if python ../check_ngbs.py sedov_serial.hdf5 sedov_vec.hdf5
then
echo "SedovBlast_3D comparison between serial and vectorised passed"
else
echo "SedovBlast_3D comparison between serial and vectorised failed"
exit 1
fi
cd ../EAGLE_12/ cd ../EAGLE_12/
...@@ -82,6 +102,27 @@ cd ../EAGLE_12/ ...@@ -82,6 +102,27 @@ cd ../EAGLE_12/
mv eagle_0000.hdf5 eagle_12_vec.hdf5 mv eagle_0000.hdf5 eagle_12_vec.hdf5
# Compare outputs # Compare outputs
python ../check_ngbs.py eagle_12_naive.hdf5 eagle_12_serial.hdf5 if python ../check_ngbs.py eagle_12_naive.hdf5 eagle_12_serial.hdf5
python ../check_ngbs.py eagle_12_naive.hdf5 eagle_12_vec.hdf5 then
python ../check_ngbs.py eagle_12_serial.hdf5 eagle_12_vec.hdf5 echo "EAGLE_12 comparison between naive and serial passed"
else
echo "EAGLE_12 comparison between naive and serial failed"
exit 1
fi
if python ../check_ngbs.py eagle_12_naive.hdf5 eagle_12_vec.hdf5
then
echo "EAGLE_12 comparison between naive and vectorised passed"
else
echo "EAGLE_12 comparison between naive and vectorised failed"
exit 1
fi
if python ../check_ngbs.py eagle_12_serial.hdf5 eagle_12_vec.hdf5
then
echo "EAGLE_12 comparison between serial and vectorised passed"
exit 0
else
echo "EAGLE_12 comparison between serial and vectorised failed"
exit 1
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment