Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelegissi committed Aug 17, 2023
2 parents 5bb3080 + 5a5a63c commit f9530f5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions verification/local_verify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Note fds and smv must already be sourced and imagemagick installed
bash headless_verify.sh
rm -rf tests/test_out
rm -rf tests/test_diff
rm -rf tests/test_err
mkdir -p tests/test_out
mkdir -p tests/test_diff
mkdir -p tests/test_err
cp tests/*/output/*.png tests/test_out/
cp ../../qgis2fds.figures/baseline/*/*.png ../../qgis2fds.figures/baseline/
bash compare_images.sh
NUMBER_OF_ERR_FILES=$(ls tests/test_err/ -1 | wc -l)
echo "NUMBER_OF_ERR_FILES=$NUMBER_OF_ERR_FILES"
19 changes: 19 additions & 0 deletions verification/update_verification_images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
#BASE_DIR=../../qgis2fds.figures/baseline
#NEW_DIR=tests/test_out
#
#cd tests
#for TEST_NAME in *;
#do
# if [ -d "${TEST_NAME}" ]; then
# echo "${TEST_NAME}/output/*_s*.png"
# echo "../${BASE_DIR:5}/TEST_NAME/"
# cp ${TEST_NAME}/output/*_s*.png ../${BASE_DIR}/${TEST_NAME:5}/
# fi
#done
cp tests/test_*/output/cern_meyrin_geom*_s*.png ../../qgis2fds.figures/baseline/cern_meyrin_geom/
cp tests/test_*/output/cern_meyrin_obst*_s*.png ../../qgis2fds.figures/baseline/cern_meyrin_obst/
cp tests/test_*/output/golden_gate_local_geom*_s*.png ../../qgis2fds.figures/baseline/golden_gate_local_geom/
cp tests/test_*/output/golden_gate_local_obst*_s*.png ../../qgis2fds.figures/baseline/golden_gate_local_obst/
cp tests/test_*/output/golden_gate_remote_geom*_s*.png ../../qgis2fds.figures/baseline/golden_gate_remote_geom/
cp tests/test_*/output/golden_gate_remote_obst*_s*.png ../../qgis2fds.figures/baseline/golden_gate_remote_obst/

0 comments on commit f9530f5

Please sign in to comment.