Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
8d704d61
Commit
8d704d61
authored
Dec 12, 2017
by
James Willis
Browse files
Make sure that bash script creates a FAIL in Jenkins.
parent
e5e905bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/check_interactions.sh
View file @
8d704d61
...
...
@@ -71,9 +71,29 @@ cd examples/SedovBlast_3D/
mv
sedov_0000.hdf5 sedov_vec.hdf5
# Compare outputs
python ../check_ngbs.py sedov_naive.hdf5 sedov_serial.hdf5
python ../check_ngbs.py sedov_naive.hdf5 sedov_vec.hdf5
python ../check_ngbs.py sedov_serial.hdf5 sedov_vec.hdf5
if
python ../check_ngbs.py sedov_naive.hdf5 sedov_serial.hdf5
then
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/
...
...
@@ -82,6 +102,27 @@ cd ../EAGLE_12/
mv
eagle_0000.hdf5 eagle_12_vec.hdf5
# Compare outputs
python ../check_ngbs.py eagle_12_naive.hdf5 eagle_12_serial.hdf5
python ../check_ngbs.py eagle_12_naive.hdf5 eagle_12_vec.hdf5
python ../check_ngbs.py eagle_12_serial.hdf5 eagle_12_vec.hdf5
if
python ../check_ngbs.py eagle_12_naive.hdf5 eagle_12_serial.hdf5
then
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment