diff --git a/verification/local_verify.sh b/verification/local_verify.sh new file mode 100644 index 0000000..75d1aaa --- /dev/null +++ b/verification/local_verify.sh @@ -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" diff --git a/verification/update_verification_images.sh b/verification/update_verification_images.sh new file mode 100644 index 0000000..8b9a0b1 --- /dev/null +++ b/verification/update_verification_images.sh @@ -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/